Thats it for now, all files are on our new disk.1. Boot a livecd (archlinux install iso will do ("loadkeys de" to switch keyboard layout)) 2. mount /dev/sdOLD /mnt/old (ex. /dev/sda1) (fdisk -l) 3. mount /dev/sdNEW /mnt/new
(ex. /dev/sdb1)
4. cp -rav /mnt/old/* /mnt/new 4.1 Or you can use rsync: rsync -avH
/mnt/old/
/mnt/new/ rsync can exclude directories:
rsync -avH
--exclude '
5. umount /mnt/old
/mnt/old/home/porn
' /mnt/old/
/mnt/new/
(If you are on archlinux and use syslinux as your bootloader of choice you can skip 6.1 - 6.5)
We now have to chroot into our new copy to be able to install grub.
Grub installation:6.1. mount -o bind /dev /mnt/new/dev 6.2. mount -t proc none /mnt/new/proc 6.3. chroot /mnt/new /bin/bash
Syslinux installation:6.4. grub-install /dev/sdNEW 6.5. exit
(make sure you are not in a chroot environment. The archlinux syslinux script supports installing syslinux in a mounted linux environment.)
7.1. syslinux-install_update -a -i -m -c /mnt/newThats it, we are done.
Make sure to remove your old harddrive and put the new one to the same SATA port, so it will get the same device name in linux.8. Exit and reboot
No comments:
Post a Comment