Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been running Ubuntu 9.04 since it's release and on my last install adventure I took the plunge and created a seperate partition for my /home directory. For reasons not important here I needed to reinstall Ubuntu. So I went through the motions and selected the root partition to be deleted and used as the install point and not thinking I needed to do anything else I went forward with the install.

After getting up and running I installed and ran gparted and see that my partition I had previously setup for /home isn't mounted, and doesn't have a mount point defined so I guess I just set up my root to have /home included.

Can I fix this without reinstalling?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

I'm guessing you know the name of your partition from gparted. (lets use /dev/sda3 for this example)

All you need to do is edit your fstab and add and entry this partition to have it mount as /home: (make a backup of the fstab first)

$ sudo cp /etc/fstab /etc/fstab.bak
$ sudo gedit /etc fstab

Add a line:

/dev/sda3 /home ext3 defaults 0 2

A reboot should bring this drive up at the /home mount like you are looking for. If the UIDs of your user on the original installation and new installation are different you may encounter isses... but that is for another question.

share|improve this answer
    
frakkin awesome answer! thanks. –  codeLes Jul 24 '09 at 13:54
    
just followed your steps and it worked. thanks again! –  codeLes Jul 24 '09 at 22:08
    
No need to reboot, "mount -a" does the trick. –  Eroen Dec 11 '11 at 20:08

would it be possible to mount that partition and use /home as the mount point?

Edit: i'm not sure about this though. i have no real way of trying it.

share|improve this answer
    
this is my thinking, I'll try it with my liveUSB, but I'm not home right now... –  codeLes Jul 24 '09 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.