Grub2: Difference between revisions

From www.deloptes.org
Jump to navigation Jump to search
(Created page with "= 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 d...")
 
No edit summary
Line 1: Line 1:
= Data Migration =
= Data Migration =


cd /mnt && mkdir {source,target}
  cd /mnt && mkdir {source,target}


* Checking disk availability
* Checking disk availability

Revision as of 01:06, 1 June 2013

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