- Open Terminal, (you can use Ctrl + Alt + T shortcut to start terminal in ubuntu)
- Create a backup for fstab file, just in case
 sudo cp /etc/fstab /etc/fstab.old
- Get UUID for the partition for automount
 sudo blkid
- Open fstab file for editing
 sudo gedit /etc/fstab
- 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
- Restart and check if the partition is automounted
<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