Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a wonderful running Maverick Meerkat install going on right now. I want to move my /home to another partition as per many suggestions.

How can I go about doing this without reinstalling the entire Ubuntu system? Can I simply create the partition with gparted and then change the mount point of /home in fstab to reflect it or is it a bit more difficult?

share|improve this question

3 Answers 3

up vote 7 down vote accepted

Yes, it is only a matter of adding a new entry to /etc/fstab and then copying the files over.

I suggest using UUIDs for the partition identifier in fstab, the syntax similar to this:

UUID=abcdabcd-acbd-abcd-abcd-abcdabcd /home ext4 defaults 0 2

Copying is best done as root, with "-a" flag passed to cp. Also, better play safe and not remove the files immediately:

cp -a /home/* /path/to/new/partition/
mv /home /old_home
mkdir /home

Note that the user directories must be straight inside the partition, not in /partition/home/

share|improve this answer

I think it's best to follow the Ubuntu wiki guide. I used it a while ago and it worked just fine.

share|improve this answer
    
I like how that guide shows you how to find the GUID of your disks. I didn't know how to do that until now. –  djangofan Jan 13 '11 at 20:06

Are you planning on sharing your /home with windows? If so, I made a few mistakes but it is do-able. Read my learning curve here.

Also, How-To Geek has a good tutorial on merging linux and windows /home and My Documents here as well as many others (HTG is my other source of invaluable info!)

share|improve this answer

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.