1

I have dual boot with Ubuntu and Windows 7. I needed to reinstall W7 and after that I reinstalled grub so that I could access both Ubuntu and W7.

Unfortunately my GRUB menu doesn't show W7. I tried update-grub, I also tried os_prober and then update-grub. I also tried boot-repair, but none of these seemed to work. Here is my bootinfoscript output:

http://pastebin.com/QD8Bx0jQ

4
  • what was the output of sudo os-prober? Dec 14, 2013 at 17:02
  • You could repair your Windows boot first with a Win7 recovery DVD (it will rewrite MBR & remove GRUB), THEN do boot repair.
    – Pavel
    Dec 14, 2013 at 17:26
  • It does not look like os-prober ran? Did you delete 30_os-prober? And you have an awful lot of kernels, your grub may have more entries if you scroll down, but it does not look like it has a Windows entry at the bottom. Do you have a really tiny arrow at the bottom right corner of the grub box that the menu is in?
    – oldfred
    Dec 14, 2013 at 18:09
  • please see my solution in the post askubuntu.com/questions/448040/…
    – quique
    Nov 21, 2017 at 8:09

2 Answers 2

1

I noticed that the script lines from the os_prober are not inserted in the grub script file at all. Maybe there is an error in the file:

/etc/grub.d/30_os_prober

It normally should show itself even if no other os is detected. You could purge grub-common and reinstall it, but maybe it is more safe to download grub-common.deb and just take the file from there. If you run

sudo grub-mkconfig | grep prober

you should see the script beginning and ending. If this is not working no matter if your windows boot works or not, it will not show up.

0

So the problem was really with os_prober. Some time ago I was messing with grub configuration and I moved file 30_os_prober in the grub.d directory to another location and I don't even remember why I did so.

After moving it back to its rightful place and running sudo grub-mkconfig and then sudo update-grub it works fine :)

Thank you all for your responses!! It was very helpful!!

1
  • Always good to have a clean cause and a clean solution. Enjoy Ubuntu..
    – Requist
    Dec 15, 2013 at 10:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .