17Oct/094
Restore Windows boot option in grub 2 menu after installing Ubuntu Karmic Koala 9.10
After installing Ubuntu Karmic Koala 9.10, grub 2 doesn't detect whether windows is installed or not (at least it did not for me), so you can't boot windows any more.
To fix this, there is a tool called grub-mkconfig that generates automatically a grub configuration file in /boot/grub/grub.cfg by detecting which operating systems are installed on your box.
To re-generate grub.cfg and install it as boot loader configuration, follow below instructions :
sudo grub-mkconfig -o /boot/grub/grub.cfg # edit grub.cfg and look if there is non-ascii characters (accentuated ones) in labels, if so, replace them with ascii characters sudo nano /boot/grub/grub.cfg #replace /dev/sda with the device where grub boot loader should be installed sudo grub-install /dev/sda sudo grub-install --recheck /dev/sda
Reboot your computer.
Now a line that allows you to boot your Windows installation should appear in grub's menu.
November 26th, 2009 - 06:43
Here’s a great PDF guide for Ubuntu Karmic Koala. Its something both linux newbs and experts will appreciate. http://www.makeuseof.com/tag/the-incredible-guide-to-ubuntu-karmic-koala-linux-pdf/
December 9th, 2009 - 10:10
don’t you need to do
sudo grub-mkconfig -o /boot/grub/grub.cfg
on the first line in order to save the config file? grub-mkconfig prints to stdout by default and the output is not saved to any file
December 15th, 2009 - 21:44
You’re right Guy van den berg. I updated the post. Thanks
March 28th, 2010 - 20:32
Having the same problem as OP, i tried this but it didn’t work.
When executing this: “sudo grub-mkconfig -o /boot/grub/grub.cfg ” windows is not recognized