Another idea:
We will just use your big new disk for your
/home partition and filesystem. The OS really does not need much space,
/home does.
I think I typed all this right, but always best to take a backup of
/home first
Buy a new disk. Install, partition and format it to a linux filesystem like ext3.
Logout (we don't want the GUI running).
<CTRL><ALT><F2>
Login as root (or as yourself and then do
sudo -i so you become root)
Mount the new disk at
/mnt/newdisk
As root:
Code:
cp -a /home/ /mnt/newdisk
All your
/home files will be copied over to the new disk.
Now unmount the new disk.
Now remount the new disk on
/home (your old
/home is still there "underneath" the new mount, but will be replaced with by home on the new disk, so do not panic).
Code:
mount -t ext3 /dev/sdb1 /home
Obviously, change
/dev/sdb1 to reflect the partition your new home is on.
<CTRL><ALT><F7> Log in as yourself.
Does everything work? (
Do not check emails or the "home"s will be out of sync).
Yes? Ok to proceed then:
Take the time to do a
touch NEWHOME as the presence of this file will let you know which "home" you are using, later....
Logout from the GUI.
<CTRL><ALT><F2>
You are back at your root login.
Edit
/etc/fstab to mount your new disk as
/home with a line like this:
Code:
/dev/sdb1 /home ext3 defaults 0 2
<CTRL><ALT><F7> Log in as yourself.
Do you see the file NEWHOME ?
If so, your home has been migrated.
Do a
mount and then
df -h to see all the extra room you have in
/home
If you are happy, now is the time to delete the old "home".
So logout from the GUI (you must not be logged in to the GUI for these steps).
<CTRL><ALT><F2>
You are back at your root login.
Unmount the new home on the new disk
Now the "old" home is again visible. Check that the file NEWHOME is
not there, then
Code:
cd /home
pwd #just to double-check
rm -rF *
Now remount the new home
<CTRL><ALT><F7> Log in as yourself.
You should be done.
df -h to see the extra space on your / directory