view · edit · sidebar · attach · print · history

Replace your HDD in Linux

  1. Hook up your HD via USB to your Linux. Mount it to /mnt/ssdroot
  2. Copy your files with find . -xdev | cpio -pm /mnt/ssdroot
  3. Do the same for boot. Mount it to /mnt/ssdboot
  4. Copy your files with find . -xdev | cpio -pm /mnt/ssdboot
  5. Open your computer and connect it.
  6. Boot up from you USB stick or CD.
  7. Mount /dev/sda3 /mnt/gentoo/
  8. mknod /mnt/dev/console c 5 1 (do this now, not later)
  9. mknod /mnt/dev/null c 1 3 (do this now, not later)
  10. Delete the /boot directory from /mnt/gentoo/boot (because you copied that twice)
  11. Mount /dev/sda1 /mnt/gentoo/boot
  12. mount -o bind /dev /mn/gentoo/dev
  13. mount -o bind /proc /mnt/gentoo/proc
  14. chroot /mnt/gentoo/ /bin/bash
  15. cp /usr/src/linux/arch/i386/boot/bzImage /boot
  16. run lilo -v
  17. Done.

Also see: http://www.ywesee.com/pmwiki.php/Software/SoftwareRaid

view · edit · sidebar · attach · print · history
Page last modified on March 27, 2009, at 04:34 PM