Skip to content

Instantly share code, notes, and snippets.

@pftg
Created March 28, 2012 20:21
Show Gist options
  • Save pftg/2230188 to your computer and use it in GitHub Desktop.
Save pftg/2230188 to your computer and use it in GitHub Desktop.
Move /home to it’s own partition
/dev/hda5 /home ext3 nodev,nosuid 0 2
mkdir /mnt/newhome
sudo mount -t ext3 /dev/hda5 /mnt/newhome
cd /home/
find . -depth -print0 | cpio –null –sparse -pvd /mnt/newhome/
sudo umount /mnt/newhome
sudo mv /home /old_home
sudo mkdir /home
sudo mount /dev/hda5 /home
sudo rm -r /old_home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment