Monday, March 23, 2015

Mount drives on startup by editing /etc/fstab


  • Say, you want to mount a NTFS drive located on '/dev/sda2' at '/mnt/nt' on startup with your username and group. 
  • First find your user-id and group-id by using the command "id" in a terminal.
  • Say your user-id and group-id are both 1000, then the line in '/etc/fstab' will be the following:
/dev/sda2 /mnt/nt    ntfs    defaults,uid=1000,gid=1000,rw    0    0