Friday, February 25, 2011

Update-grub : Dual Boot - Grub Load

Hi,

 From last 2days I was trying to upgrade my laptop from Debian Lenny 5.0 to Debian Squeeze 6.0, As there was some problem with my internet connection I was not able to do it.

After 24hrs I was able to connect to internet. Now my machine is upgraded with Debian Squeeze 6.0 finally and thought of sharing a small issue faced with boot loader after the upgradation.

When upgradation was proceeding it asked to select the partition to install the boot-loader. It showed the two partition /dev/sda (Ubuntu partition) & /dev/sda2 (Debian Partition) as I was not sure, installed the boot-loader on /dev/sda. After the complication the laptop rebooted and I was not able to find the Ubuntu 10.04 in my grub. I found only the debian kernel boot loader. After some try I figured it out, if it needs to updated run the command update-grub.  Run this command on live machine. Also check where the master boot record is pointed and run the update command.

By this the grub will read the partition table re-generate the grub.cfg as below.

cyclotron:~# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.26-2-686
Found initrd image: /boot/initrd.img-2.6.26-2-686
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found Ubuntu 10.04.2 LTS (10.04) on /dev/sda5
done

No comments: