Great!
I now have achieved my goal.
I was a bit nervous at first but it all worked out fine.
I started off using the quoted guide, but found that the guide on the wiki that it links to was more successful
https://help.ubuntu.com/community/Pa...ng/Home/Moving
First I booted to a LiveUSB.
Then I mounted my current home to /old (remember my current home is in its own partition in this case) and my current / to /new
Code:
sudo mkdir /old
sudo mount -t ext4 /dev/sda8 /old
sudo mkdir /new
sudo mount -t ext4 /dev/sda7 /new
I then created my username in the home dir
Code:
cd /new/home
sudo mkdir myUser
I then copied the contents to this directory and renamed the old home dir to make sure it wasn't accidentally picked up when I logged back in .
Code:
sudo rsync -axS /old/myUser/. /new/home/myUser/.
sudo mv myUser/ myUser_b
For the next bit I needed to know the UUIDs
I then modified my fstab to make sure that /home was no longer mounted on the separate partition and that the separate partition was now a data partition.
Code:
sudo mkdir /new/media/data
sudo cp /new/etc/fstab /new/etc/fstab.20100630
gksu gedit /new/etc/fstab
It used to say
Code:
# /home was on /dev/sda8 during installation.
UUID=9893d323-5290-4aba-aa72-7c79ebd4e14a /home ext4 defaults 0 2
So I changed it to
Code:
# /home was on /dev/sda8 during installation. moved it back to sda8 and put in a data partition
UUID=9893d323-5290-4aba-aa72-7c79ebd4e14a /media/data ext4 defaults 0 2
I then logged out of the LiveUSB and rebooted back in to my usual account.
I didn't like the way it was labelling the partition though so I modified it.
Code:
sudo umount /media/data
sudo e2label /dev/sda8 data
sudo mount /media/data
Since everything was working I renamed my folder back on the old home (now data) partition.
Code:
mv /media/data/myUser_b /media/data/myUser
Then I created the symlinks.
Code:
rm -rf Documents/
rm -rf Downloads/
rm -rf Music/
rm -rf Pictures/
rm -rf Videos/
ln -s /media/data/myUser/Documents/ Documents
ln -s /media/data/myUser/Downloads/ Downloads
ln -s /media/data/myUser/Music/ Music
ln -s /media/data/myUser/Pictures/ Pictures
ln -s /media/data/myUser/Videos/ Videos
Top Stuff!
Bookmarks