Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
  • Toggle search form

[Mount/Nextcloud] How do you mount a hard disk that was used windows into Linux.

Posted on June 19, 2022September 2, 2022 By nim No Comments on [Mount/Nextcloud] How do you mount a hard disk that was used windows into Linux.

Hôm này thì mình mới mua thê 1 ô cứng và định gắn thêm cho server nextcloud của mình.

usecase của mình như thế này:
Mình có 1 ổ cứng di động đã lưu trữ dữ liệu và lắp trên windows.
Giờ mình muốn cắm vào linux thông qua công usb mà phải format ổ cứng nhưng server linux vẫn nhận.

Đây là 1 server nextcloud.

Mình thực hiện kiểm tra data của nextcloud đang chạy với user gì?

cd /home/usb_nim/

ls -la
total 3612498
drwxrwxrwx 1 www-data root      16384 Apr 17 07:16  .
drwxr-xr-x 8 root     root       4096 Aug  3  2021  ..
drwxrwxrwx 1 www-data root       8192 Feb 19  2020 '$RECYCLE.BIN'
drwxrwxrwx 1 www-data root          0 Jan 28 11:13 'App Android'
drwxrwxrwx 1 www-data root          0 Dec 18 12:35  Camera-VNG
-rwxrwxrwx 1 www-data root      16470 Mar  1  2019  Ceph-Openstack-Integration-Block-storage-service.docx
-rwxrwxrwx 1 www-data root      14334 Mar  1  2019  Ceph-Openstack-Integration-Image-service.docx
drwxrwxrwx 1 www-data root       4096 Jul  7  2020  DevOps
drwxrwxrwx 1 www-data root       4096 Apr  8 01:28  English
drwxrwxrwx 1 www-data root       4096 Aug 23  2019  found.000
drwxrwxrwx 1 www-data root       4096 Dec 20 00:09  Game

cat /etc/passwd | grep www-data
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin

Mình đã lấy được id của user www-data là 33 và id của group root là 0.

mkdir /home/usb_nim_2tb
chmod -R 777 /dev/sdc1
mount -t ntfs -o umask=000,gid=0,uid=33 /dev/sdc1 /home/usb_nim_2tb/
>>>
>>>
mount -t ntfs -o umask=000,gid=0,uid=33 /dev/sda1 /home/usb_nim_1tb/
mount -t ntfs -o umask=000,gid=0,uid=33 /dev/sdc1 /home/usb_nim_2tb/
>>>>>
BareMetal

Post navigation

Previous Post: [Lenses] Insert data or Push messages to Kafka via Lenses.
Next Post: [Postgresql] Install postgresql client and trying a few command postgresql.

More Related Articles

[Fortigate] Cấu hình firewall fortigate gửi syslog sang Logstash BareMetal
[Ubuntu 20.4] You need to note A few problems when Installing Ubuntu. BareMetal
[windows]Shutdown máy tính client bằng Domain controller BareMetal
[Smartctl] Instruction check the health disk of Raspberry. BareMetal
[Postgresql] Install postgresql client and trying a few command postgresql. BareMetal
[OpenVPN] Why is not Android working with the DNS of the OpenVPN? BareMetal

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Smartctl] Instruction check the health disk of Raspberry. January 16, 2023
  • [kubectl/Argocd] How to create a kubectl config file for serviceaccount or from the cluster secret of Argocd January 12, 2023
  • [Helm/Github] Create a public Helm chart repository with GitHub Pages January 8, 2023
  • [AWS] How to increase the disk size of a Windows EC2 machine? January 4, 2023
  • [Redis] ElastiCache-Redis Cross-Region Replication|Global DataStore January 3, 2023

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.