mounting a partition on boot

Andrew Farris flyindragon1 at
Mon Sep 7 19:39:22 UTC 2009

On Mon, 2009-09-07 at 06:22 -0600, Karl F. Larsen wrote:
> John R. Sowden wrote:
> > I recently installed ubunti 9.04 over Suse 11.1.  I had the home drirectory as 
> > a separate partition.  For some reason, the /dev/sda6 did not mount as part of 
> > the boot process.  I tried to umount the existing /home and mount /dev/sda6 
> > but it doesn't work consistantly.
> > 
> > Is ther a file that lists the mount commands that I can edit, or ...
> > 
> > Thanks, John
> > 
> > 
>     Hi, you need to add a line to /etc/fstab that loads /dev/sda6 to your 
> /home/ directory. I do what your doing and here is my fstab:
> # /dev/sda5       /home       ext3     defaults        1   2
> UUID=40cb6175-3c6e-4a7f-ae57-083cccbbba63 /home  ext3 defaults 1  2
> karl at Hardy:~$
> the first line is what you want to try first. It will be:
> /dev/sda6   /home   ext3  defaults  1  2
> Good luck'

As Karl's post points out, you can also list the partition by it's UUID
in your fstab file, which in my opinion is better, since the drives
could change paths (i.e. you pull them out, put them back in in a
different order) and your system will still boot properly, because it's
looking for the partition's UUID, rather than for a specific path. From
the 'Computer' view while in ubuntu, you can see that the UUID of the
partition you want to automount by right-clicking on the drive icon,
then go to "Properties > Volume > UUID". Alternatively, you can get it
from the terminal with the command "blkid /dev/sda6". 

Sorry I didn't include this before, as I was really tired when I wrote
my last email and wanted to go to sleep :)

Hope that helps!

Registered Linux User: 473690
Registered Ubuntu User: 22747

More information about the ubuntu-users mailing list