How to mount a NTFS disk in Debian.
Find the disk:
# fdisk -l Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors Disk model: ST3250310AS Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x84c02518 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 471801855 471799808 225G 83 Linux /dev/sda2 471803902 488396799 16592898 7.9G 5 Extended /dev/sda5 471803904 488396799 16592896 7.9G 82 Linux swap / Solaris Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: WDC WD10EZRX-00L Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x93665d93 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 1953521663 1953519616 931.5G 7 HPFS/NTFS/exFAT
So, the NTFS is disk sdb1. Find the UUID value.
sudo blkid /dev/sdb1 /dev/sdb1: LABEL="Backup" UUID="0CF88F39F88F2056" TYPE="ntfs" PTTYPE="atari" PARTUUID="93665d93-01"
Install NTSF-3G:
# sudo apt-get install ntfs-3g
Create the /mnt/ntfs/ directory
# sudo mkdir -p /mnt/ntfs/
Add to fstab.
# nano /etc/fstab # UUID="YOUR-UID-HERE" /mnt/ntfs/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0 UUID="0CF88F39F88F2056" /mnt/ntfs/ ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0
Test it
# sudo mount -a
# df -h /dev/sdb1 932G 295G 638G 32% /mnt/ntfs
# cd /mnt/ntfs/ # ls -l