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
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Jquery & JavaScript
    • Git
    • 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, 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/
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

Tìm hiểu về việc cài đặt và cấu hình DNS trên windows server. BareMetal
[VMware ESXI] Làm sao để Máy ảo trên vmware vừa add card rời(GTX) – vừa enable Virtualization Ảo Hoá BareMetal
[Nextcloud] Install and Upgrade new version for Nextcloud Docker. BareMetal
[Command] Hướng dẫn command xoá file cũ theo ngày trong linux BareMetal
[windows]Shutdown máy tính client bằng Domain controller BareMetal
[Jenkins] Install Jenkins in VM or Physical Server 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

  • Protected: My Assignment  June 24, 2022
  • [Spinnaker] Spinnaker writes too many logs – Reduce spinnaker log level June 22, 2022
  • [Jenkins] Jobs will be created automatically by Jenkins Job Builder June 20, 2022
  • [Postgresql] Install postgresql client and trying a few command postgresql. June 20, 2022
  • [Mount/Nextcloud] How do you mount a hard disk that was used windows into Linux. June 19, 2022

Archives

  • 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
    • Jenkins
    • Spinnaker
  • Coding
    • Git
    • Golang
    • Jquery & JavaScript
    • Laravel
    • 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 © 2022 NimTechnology.