Replace your HDD in Linux
- Hook up your HD via USB to your Linux. Mount it to /mnt/ssdroot
- Copy your files with find . -xdev | cpio -pm /mnt/ssdroot
- Do the same for boot. Mount it to /mnt/ssdboot
- Copy your files with find . -xdev | cpio -pm /mnt/ssdboot
- Open your computer and connect it.
- Boot up from you USB stick or CD.
- Mount /dev/sda3 /mnt/gentoo/
- mknod /mnt/dev/console c 5 1 (do this now, not later)
- mknod /mnt/dev/null c 1 3 (do this now, not later)
- Delete the /boot directory from /mnt/gentoo/boot (because you copied that twice)
- Mount /dev/sda1 /mnt/gentoo/boot
- mount -o bind /dev /mn/gentoo/dev
- mount -o bind /proc /mnt/gentoo/proc
- chroot /mnt/gentoo/ /bin/bash
- cp /usr/src/linux/arch/i386/boot/bzImage /boot
- run lilo -v
- Done.
Also see: http://www.ywesee.com/pmwiki.php/Software/SoftwareRaid