Automatically mount at startup

From WickyWiki


To find the correct UUID of your drive:

blkid

Returns:

...
/dev/sda2: LABEL="Ubuntu" UUID="12312312312312312" TYPE="ext4" 
/dev/sda3: LABEL="Data" UUID="45645645645645645" TYPE="ntfs" 
...

To get your user-id:

id -u $USERNAME

Or:

echo $UID

Now edit fstab:

sudo gedit /etc/fstab

Add the following line:

...
UUID=45645645645645645 /media/Data auto defaults,uid=1000,nosuid,nodev,nofail,x-gvfs-show 0 0
...

For more info on the possible options:

See also: