I'm running
out of disk space on my laptop and the new disk arrived today.
Old setup; 60 gig drive;
/dev/hda1 = /home (used to be
windows, hence the partition
number)
/dev/hda2 = swap
/dev/hda3 = /
New setup; 250 gig drive
/dev/hda1 = /
(including /home)
/dev/hda2 = swap
Here's my plan;
- make a new lilo.conf entry to boot off /dev/hda1,
then run 'lilo -v'
- boot knoppix
- dump /dev/hda3 (/) to USB external
drive with 'mount /dev/hda3 /mnt/root ; rsync -a /mnt/root
/usbdrive/'
- dump /dev/hda1
(/home) to USB drive with 'mount /dev/hda1 /mnt/home ; rsync -a
/mnt/home /usbdrive/'
- dump MBR to USB drive with 'dd if=/dev/hda
of=/usbdrive/mbr_backup bs=512 count=1'
- power
down, swap hda to new drive, boot knoppix again
- add boot record without
partition table, 'dd if=/whatever/mbr_backup of=/dev/hda bs=446 count=1'
-
'fdisk /dev/hda', create one linux partition using most of the disk and one
linux swap partition
- put filesystem on /dev/hda1 with 'mkreiserfs
/dev/hda1'
- dump old / to /dev/hda1 with 'mount /dev/hda1 /mnt/root ; rsync
-a /usbdrive/root/* /mnt/root'
- dump old /home onto /dev/hda1 with 'rsync -a
/usbdrive/home /mnt/root'
- create swap 'mkswap
/dev/hda2'
then reboot and use the new lilo entry that points to /dev/hda1.
Will it
work?
tnx