Automount NTFS Drive in UBUNTU
Posted on 29 November 2007 by admin
Due to popular demand we have posted some instructions on how to automount an NTFS drive in UBUNTU 7.10 at boot up. This way you don’t have to manually mount the drive each time you restart.
The command to manually mount a NTFS filesystem from command line is;
sudo mount -t ntfs /dev/sda1 /media/sda1
Of course /dev/sda1 refers to the NTFS filesystem you want to mount and it most likely is different for different installations.
To automount the same drive you would have to edit your /etc/fstab file and add the entry;
/dev/sda1 /mnt/sda1 ntfs users,defaults,umask=000 0 0
You obviously have to have mounted the NTFS Filesystem once before to identify the proper drive number sdax – assuming it’s a SATA drive, if it’s IDE it will show up as hdax.
The "users" option allows anyone to mount/unmount the drive and overrides the default , which is that only root is allowed to mount/unmount.
The value of the permission bits used with umask are the opposite of those used with the chmod command. For example, the following pairs are equivalent:
umask=000 and chmod 777
umask=022 and chmod 755
If you restarted windows uncleanly, meaning you will need to run scandisk at the next startup, the NTFS Filesystem drive won’t automount. Run this command;
sudo ntfsfix /dev/sda1
Tags | General, Linux, Microsoft, Ubuntu, Windows Vista, Windows XP
