Friday, 5 September 2008

Automounting NTFS Partitions (Ubuntu)

To find out the UUID of a particular partition type in:

sudo blkid | grep sdb1

Remember to change the sbd1 part to whichever partition you want the UUID number of. Then set yourself a mount point in /media:

sudo mkdir /media/sdb1

Again, sdb1 can be whatever you want it to be, as long as it matches your fstab entry. Then backup and edit fstab:

cp /etc/fstab /etc/fstab.bak
gksu gedit /etc/fstab

Add this line - insert UUID and change /media/sda1 to whatever your mount point is. GID 100 is group users, 46=plugdev, 1000 is normally your group:

UUID=enterUUIDnumberhere /media/sdb1 ntfs-3g uid=1000,gid=100,umask=022 0 0

Remount /dev/sdb1, if it's already mounted:

sudo umount /dev/sdb1
sudo mount /dev/sdb1