Boot menu not matching grub.cfg
I had debian squeeze already installed, then installed win 7. Windows overwrote by MBR, as I expected it to, so I used an ubuntu live cd to reinstall grub2 to debian root.
I rebooted, and sure enough I had grub back. The boot menu has debian on it. Just debian (crunchbang actually, but its the same thing). So I added a script in /etc/grub.d (called Windows_11) to create a windows chainloader entry in grub.cfg, and ran update-grub. Update-grub picks up my /etc/grub.d/Windows_11 script, and adds an appropriate chainloader entry to /boot/grub/grub.cfg. So I would expect this new chainloader entry to show up in my boot menu when I boot up. But it doesn't; on booting I only have the option to select debian. Here is my /boot/grub/grub.cfg - Code:
### BEGIN /etc/grub.d/10_linux ### So the boot menu is not reflecting the content of grub.cfg. I tried moving the chainloader section into the same section as the debian entries but it still didn't show up in the boot menu. How is this even possible? Any help gratefully accepted. Spoov |
Grub2 is different
http://www.dedoimedo.com/computers/grub.html commands "os-prober" "update-grub" You may have to use "su" or "sudo" |
I am well aware that i'm using grub2 thanks.
|
You don't edit grub.cfg
you run command os-prober then update-grub |
If it doesn't work open disk manger and mount windows partition and rerun commands.
|
Read my post please. I never said anywhere that I edited grub.cfg.
And isn't os-prober part of grub1? I don't have an os-prober binary anyway on this squeeze box. |
os-prober is a debian tool.
|
aha I did not realise that. i'll try it, thanks.
|
That worked. Thanks EDDY, I had always assumed that the os probing functionality was built into grub2 itself.
Cheers again |
You're welcome
Check out the last post on this thread http://www.linuxquestions.org/questi...-grub2-706272/ |
Don't forget to mark as solved.
|
All times are GMT -5. The time now is 07:06 AM. |