Bug#604155: Windows 7 not in grub menu

Daniel Pocock daniel at pocock.com.au
Tue Jan 4 22:14:14 UTC 2011



Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 01/04/2011 10:02 PM, Daniel Pocock wrote:
>   
>> Colin Watson wrote:
>>     
>>> On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
>>>  
>>>       
>>>> # /etc/grub.d/30_os-prober
>>>> Found Windows 7 (loader) on /dev/sda1
>>>> menuentry "Windows 7 (loader) (on /dev/sda1)" {
>>>>    insmod part_msdos
>>>>    insmod ntfs
>>>>    set root='(hd0,msdos1)'
>>>>    search --no-floppy --fs-uuid --set a23821f33821c6df
>>>>    chainloader +1
>>>> }
>>>>
>>>> and this is update-grub:
>>>>
>>>> # update-grub
>>>> Generating grub.cfg ...
>>>> Found background image: moreblue-orbit-grub.png
>>>> Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
>>>> Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
>>>> Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
>>>> Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
>>>> Found linux image: /boot/vmlinuz-2.6.32-5-amd64
>>>> Found initrd image: /boot/initrd.img-2.6.32-5-amd64
>>>> done
>>>>     
>>>>         
>>> Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
>>> just 'set -x' near the top, and then run update-grub again and send us
>>> the output.  (You should revert the change to
>>> /usr/lib/grub/grub-mkconfig_lib afterwards.)
>>>
>>>   
>>>       
>> + GRUB_DISABLE_OS_PROBER=true
>>     
> You disabled os_probe in etc/default/grub. So this was the correct behavior
>
>   

Thanks for this feedback - but I never remember disabling that.  It is a 
fresh install to a clean HDD from the beta1 CD.

Looking at the comments in the file, I think that one of the Xen 
packages may have done something to it (see below).  I installed Xen so 
that I could run Win7 in a VM.

I think I understand the reason why Xen packages may be doing this - 
I've had incidents on other boxes where update-grub has found VM boot 
partitions that should not be used in dom0.



$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to 
Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

# Disable OS prober to prevent virtual machines on logical volumes from 
appearing in the boot menu.
GRUB_DISABLE_OS_PROBER=true






More information about the Pkg-grub-devel mailing list