Friday, June 11, 2010

UBUNTU: Add missing OS title to GRUB


When you install Windows on your Linux box, GRUB (GRand Unified Bootloader) is washed away from the MBR, because windows writes its own bootloader to MBR. (Here I assume that no windows was installed before Linux installation). If you are successful to write GRUB to MBR (how?), it does not contain the entry for your new Operating System (Windows). Now you need to edit the GRUB configuration file. And if you are a newbie to Linux, you don't know what commands to write in order to  create the entry for Windows. For Ubuntu users, I've found an easy method to do that, and it requires no command.

  1. Start Synaptic Packet Manager (Go to "System -> Administration -> Synaptic Package Manager" or press 'alt+f2' and enter "sudo synaptic").
  2. Now search "grub"  and you will find a package that has already been installed (grub-pc).














  3. Mark it for 'Reinstallation'.
  4. Apply the changes, and rest it will do itself.
When grub-pc reinstalls itself, it looks for all Operating Systems present on the system and rewrites the configuration file of GRUB.
Reboot your system and log into your new operating system...:-)

1 comment: