Grub2
Data Migration
cd /mnt && mkdir {source,target}
- Checking disk availability
fdisk -l /dev/sdb
- Check if Grub2 installed
dd if=/dev/sda bs=512 count=1 | xxd dd if=/dev/sdb bs=512 count=1 | xxd
- mount source and target
mount /dev/sdb1 /mnt/target mount /dev/sda1 /mnt/source
- copy data
/mnt/source tar cf - . | (cd /mnt/target/; tar xvf -)
- umount source
cd .. umount /mnt/source
- install grub2
grub-install --force --no-floppy --root-directory=/mnt/target/ /dev/sdb