depth -print0 | cpio -null -sparse -pvd /mnt/newhome/ ![]() Therefore, we use something we learn from the Debian archiving guide: Since the “/home” directory will have hardlinks, softlinks, files and nested directories, a regular copy (cp) may not do the job completely. Change the “ext3” to whatever filesystem the drive is formatted to.) Also, the above assumes that the new partition you created is formatted as an ext3 partition. (You have to change the “hda5” in the above to the correct partition label for the new partition. $sudo mount -t ext3 /dev/hda5 /mnt/newhome You may have to use that new hard drive, or adjust/resize the existing partition on your current hard-drive to do this. Despair not, it is really simple to move “/home” to its own partition.įirst, create a partition of sufficient size for your “/home” directory. You can do this by keeping the /home partition unchanged and reinstalling the OS which goes in the “ /” (root) directory, which can be on a seperate partition.īut you, like me, did not know this when you first installed Ubuntu, and have not created a new partition for “/home” when you first installed Ubuntu. Having the “/home” directory tree on it’s own partition has several advantages, the biggest perhaps being that you can reinstall the OS (or even a different distro of Linux) without losing all your data. ![]() Move /home to it’s own partition JanuPosted by Carthik in administration, guides, ubuntu.
0 Comments
Leave a Reply. |