Saturday, May 29, 2010

Ubuntu: Migrate Disk

Ups Bad PBR sig..
I got this message after migrate my Ubuntu disk to the new and bigger disk capacity.(Migrate using partimage by partition, new disk from windows and have existing data on d:). It solved by using Ubuntu live cd and doing some trick:
  1. Mount the Disk ( mount /dev/sda1 /mnt )
  2. Chroot to /mnt ( chroot /mnt )
  3. inside chroot ( mount /dev /proc )
  4. inside chroot ( update-grub  )
  5. inside chroot ( grub-install /dev/sda )
  6. inside chroot ( grub-install --recheck /dev/sda )
  7. exit from chroot ; umount /mnt ; then reboot
Done! Everything back to normal again.

0 comments:

Post a Comment