Grub2

From www.deloptes.org
Revision as of 01:06, 1 June 2013 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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