[Bug 475157] [NEW] grub2 / os-prober doesn't see my Windows partition

Derkjan de Haan haanjdj at gmail.com
Thu Nov 5 08:09:48 UTC 2009


Public bug reported:

Binary package hint: grub2


After installing Kubuntu 9.10, I noticed 2 problems with grub2 / os-prober:

1) it apparently doesn't detect my Windows partition, and doesn't allow me to boot from it. I had to add it manually in the 40_custom section.
2) during boot, right after 'Loading GRUB' gets displayed, the message 'Error: no such disk' is briefly displayed.

parted -l (running this command takes forever BTW):

Model: ATA WDC WD5001ABYS-0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size    Type      File system  Flags
 1      32.3kB  210GB  210GB   primary   ntfs         boot
 2      210GB   419GB  210GB   primary   ntfs
 3      419GB   500GB  80.7GB  extended
 5      419GB   500GB  80.7GB  logical                lvm


Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptswap1: 5679MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system     Flags
 1      0.00B  5679MB  5679MB  linux-swap(v1)


Error: /dev/mapper/VG0-SWAP: unrecognised disk label

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VG0-Data: 75.0GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  75.0GB  75.0GB  ext4


grub.cfg:

#                                       
# DO NOT EDIT THIS FILE                 
#                                       
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub                    
#                                                                         

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then 
  have_grubenv=true                
  load_env                         
fi                                 
set default="4"                    
if [ ${prev_saved_entry} ]; then   
  saved_entry=${prev_saved_entry}  
  save_env saved_entry             
  prev_saved_entry=                
  save_env prev_saved_entry        
fi
insmod lvm
insmod ext2
set root=(VG0-Data)
search --no-floppy --fs-uuid --set 46395fea-76bf-482d-a146-be189608d5b6
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod lvm
        insmod ext2
        set root=(VG0-Data)
        search --no-floppy --fs-uuid --set 46395fea-76bf-482d-a146-be189608d5b6
        linux   /boot/vmlinuz-2.6.31-14-generic root=/dev/mapper/VG0-Data ro   quiet splash
        initrd  /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod lvm
        insmod ext2
        set root=(VG0-Data)
        search --no-floppy --fs-uuid --set 46395fea-76bf-482d-a146-be189608d5b6
        linux   /boot/vmlinuz-2.6.31-14-generic root=/dev/mapper/VG0-Data ro single
        initrd  /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Microsoft Windows XP" {
        set root=(hd0,1)
        chainloader +1
}
### END /etc/grub.d/40_custom ###

Please let me know if I can assist in solving this.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
grub2 / os-prober doesn't see my Windows partition
https://bugs.launchpad.net/bugs/475157
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list