Thursday, November 14, 2013

Enable Automount Harddisk on Startup

  1. Open Terminal, (you can use Ctrl + Alt + T shortcut to start terminal in ubuntu)
  2. Create a backup for fstab file, just in case
    sudo cp /etc/fstab /etc/fstab.old
  3. Get UUID for the partition for automount
    sudo blkid
  4. Open fstab file for editing
    sudo gedit /etc/fstab
  5. Add in the following line to the file, and save it
    UUID=<uuid> <pathtomount> <file system> uid=<userid>,gid=<groupid>,umask=0022,sync,auto,rw 0 0
  6. Restart and check if the partition is automounted
Examples for the <> variables:
<uuid>=3087106951D2FA7E (get this variable from step 3)
<pathtomount>=/media/Data/
<file system>=ntfs-3g (for an NTFS partition)
<userid>=1000
<groupid>=1000


No comments:

Post a Comment