Automatically mount at startup: Difference between revisions
From WickyWiki
mNo edit summary |
m typo |
||
| Line 50: | Line 50: | ||
For more info on the possible options: | For more info on the possible options: | ||
* https://help.ubuntu.com/community/AutomaticallyMountPartitions | * https://help.ubuntu.com/community/AutomaticallyMountPartitions | ||
See also: | See also: | ||
Latest revision as of 07:10, 14 May 2016
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: