My /etc/fstab file. This is how I mount my NTFS drives every time I boot my machine.

This is my /etc/fstab file.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdh1 during installation
UUID=bc5b19b4-1674-42f6-9508-08b7b37f3645 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=a87281f5-c64c-40dc-a3c4-5b10f475296e none            swap    sw              0       0
UUID=F824FD9424FD565A /mnt/Elements ntfs-3g	rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0

UUID=1323B2B1180C1879 /mnt/MyMedia ntfs-3g	rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0
UUID=4AD44F236B9F5FEA /mnt/MoreMedia ntfs-3g	rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0

This is how I mounted my ntfs drive in Linux Mint. This line will mount the drive on boot and then you will have all of your Windows file easily accessible from within Linux.

Another way to get the ID of the drive is below. Just get the UUID of the drive and then add it to your /etc/fstab file. This command below will do the trick. Just find the UUID of the drive you wish to add.

bash 12:21:00 Fri Jul 12 [homer@deep-thought $ ls -hula /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 300  12-07-13 12:21 pm .
drwxr-xr-x 6 root root 120  12-07-13 12:21 pm ..
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 1323B2B1180C1879 -> ../../sdi2
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 167E04017E03D7FF -> ../../sda2
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 416810AC7F17BD81 -> ../../sdb3
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 4282F11082F10965 -> ../../sda1
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 4AD44F236B9F5FEA -> ../../sdi3
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 52d826a6-7de5-45db-b693-dd7c7e82af37 -> ../../sda5
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am 802d4588-a1dd-4cbd-ac29-8e227b50402c -> ../../sdg1
lrwxrwxrwx 1 root root  10  12-07-13 09:25 am a87281f5-c64c-40dc-a3c4-5b10f475296e -> ../../sdb5
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am b1e29c2d-865c-4b81-a151-9a3c0db72e19 -> ../../sdb2
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am bc5b19b4-1674-42f6-9508-08b7b37f3645 -> ../../sdi1
lrwxrwxrwx 1 root root  10  12-07-13 09:25 am defb8794-934f-4a50-a606-522452258f64 -> ../../sdg5
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am e01436e0-4aa5-420b-94aa-0b35bd00020e -> ../../sdb1
lrwxrwxrwx 1 root root  10  12-07-13 09:17 am F824FD9424FD565A -> ../../sdh1

Then add it to the /etc/fstab using this syntax. This is for an NTFS drive and will allow them to be automatically mounted upon booting Linux.

UUID=F824FD9424FD565A /mnt/Elements ntfs-3g rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0

This is better than mounting the drives manually every time you want to use them.

You can also use the mount command after mounting the drives manually in Nautilus, this will tell you which drive is mounted on which folder.

bash 12:23:43 Fri Jul 12 [homer@deep-thought $ mount
/dev/sdg1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
gvfsd-fuse on /run/user/homer/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=homer)
/dev/sr0 on /media/homer/CFORDUMMIES5E type iso9660 (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)
/dev/sdh1 on /media/homer/Elements type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdi3 on /media/homer/More Media type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdi2 on /media/homer/My Media type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdi1 on /media/homer/bc5b19b4-1674-42f6-9508-08b7b37f3645 type ext4 (rw,nosuid,nodev,uhelper=udisks2)

Post a Comment

Your email is kept private. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>