October 23, 2013

Mount Data Partition At Boot Time

I've created a large Data partition using Gparted. ( filesystem : ext4, label Data ).


Create mountpoint :
sudo mkdir /media/Data

Change ownership to user :
sudo chown $USER:$USER /media/Data

Data partition will be shown in left pane in Files, and manually mounted by clicking on Data.


In Terminal the command mount will show ( among other lines ) :
/dev/sda3 on /media/Data type ext4 (rw,nosuid,nodev,uhelper=udisks)

Adding this line to the file /etc/fstab will mount the partition at boottime :
sudo nano /etc/fstab

Add the line :
/dev/sda3 /media/Data ext4 rw,nosuid,nodev,uhelper=udisks 0 0

Get it mounted without reboot :
sudo mount -a

https://help.ubuntu.com/community/Fstab

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.