moving data from home directory to home partition
hunguponcontent at gmail.com
Thu Feb 2 01:40:02 UTC 2012
On Wed, Feb 1, 2012 at 16:00, Liam Proven <lproven at gmail.com> wrote:
> On 1 February 2012 19:59, Default User <hunguponcontent at gmail.com> wrote:
> > Hi!
> > I run Ubuntu 11.10, home user, single user setup, no lvm, nothing exotic.
> > For simplicity I have just 2 partitions:
> > / (bootable, ext4)
> > linux-swap
> > So all of my data (except system and application-generated configuration
> > files, etc.) is in the /home directory of /. I have heard a number of
> > recommend a separate home partition, that it makes things easier when
> > updating or upgrading.
> > So could I just:
> > 1) use the Ubuntu install routine from a "live" media to create a new,
> > separate home partition
> > 2) use the Ubuntu install routine from a "live" media to mark the new
> > partition as "home"
> > 3) reboot
> > 4) move the data from /home to the new home partition
> > 5) reboot again
> > Would that work? Or should I just wait until 12.04 and do a fresh
> > with a separate home partition then?
> What Ioannis said, basically.
> I have done this before.
> In a simpler form, the steps are:
>  Back up all your stuff somewhere safe, on another drive!
>  Boot from LiveCD
>  Use Gparted to:
> [a] shrink your root partition
> [b] make a new extended partition
> [c] in there, make & format a new logical ext4 partition. Give it an
> easy name such as "home" - ideally with no spaces or punctuation.
>  Reboot.
>  Click on your new partition in "Computer". It should mount
> automatically on something like /media/home. Check it's OK.
>  Make a folder in named with your username. So if your username is
> "jsmith" make a folder called "jsmith"
>  Copy everything in your home directory into the new volume. You
> could use the LiveCD for this again.
>  Edit fstab and set the new folder to mount as /home
> Reboot and try it.
> If it works OK, boot from a LiveCD again, check the new partition has
> all your stuff in it, and if so, remove all the contents of the old
> /home folder on the root filesystem.
> If all this sounds too complicated - and I am deliberately not giving
> step-by-step instructions, as if you need them, you won't be able to
> recover if anything goes wrong and you risk breaking your system -
> then what you should do is:
>  back up everything in /home/YourUserName to an external disk
>  reformat and reinstall with a separate /home partition
>  then restore all your stuff
> Liam Proven • Profile: http://lproven.livejournal.com/profile
> Email: lproven at cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
> MSN: lproven at hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
> Tel: +44 20-8685-0498 • Cell: +44 7939-087884
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
Okay, thanks for the info. I think I'll just wait and try it on a fresh
install of 12.4.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users