2009年11月12日 星期四

Windows 7 upgrade and Grub2

Windows 7 upgrade destroy the grub2 boot loader.
Solution from http://www.ubuntu-inside.me/2009/06/howto-recover-grub2-after-windows.html#comment-form

In my case, Debian sid
  1. use net install CD to boot and install until partitioning hard disk.
  2. press Alt + F2 to get console
  3. use fdisk -l to check linux location (sda5 in my laptop)
  4. mount /dev/sda5 /mnt
  5. mount --bind /dev /mnt/dev
  6. mount --bind /proc /mnt/proc
  7. cp /etc/resolv.conf /mnt/etc/resolv.conf
  8. chroot /mnt
  9. grub-install /dev/sda
  10. reboot
Done!


沒有留言:

張貼留言