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

Zanna
  • 72,312
Formaiko
  • 13
  • 3

2 Answers2

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.

Zanna
  • 72,312
Requist
  • 2,439
  • 2
  • 25
  • 32
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!!

Zanna
  • 72,312
Formaiko
  • 13
  • 3