Bug#501942: grub-pc: grub selected wrong partition number

clue spamfang1199 at yahoo.de
Sat Oct 11 18:57:36 UTC 2008


Package: grub-pc
Version: 1.96+20080724-10
Severity: important

Description:
I used the lenny beta 2 installer. It made the entires for Lenny and Xp. But
when trying to start Xp (on /dev/hda1) grub says:

error: no such partition
press any key to continue

Afer hitting any key i get back to the main-screen. When i now try to start
Lenny it says:

error: you need to load the kernel first
Press any key to continue

And i get back to the main screen. I cannot boot into any Os until i have
made a restart. But if i select Lenny first however, it boots up correctly -
everytime.

Workaround: I changed the entry from

menuentry "Microsoft Windows XP Professional" {
   set root=(hd0,0)
   chainloader +1

to

menuentry "Microsoft Windows XP Professional" {
   set root=(hd0,1)
   chainloader +1

Expected behaviour: Grub should make the entries correctly, without any user
intervention.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/hda9_crypt / ext2 rw,noatime,relatime,errors=remount-ro,user_xattr 0 0
/dev/hda8 /boot ext2 rw,noatime,errors=continue,user_xattr 0 0
/dev/hda5 /data vfat rw,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8,utf8 0 0
/dev/mapper/privat /privat ext2 rw,noatime,errors=continue,user_xattr 0 0
/dev/mapper/home /home ext2 rw,noatime,errors=continue,user_xattr 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,8)
search --fs-uuid --set d0bdfcfa-90cf-43a6-9c3c-f456fcdff9f0
if font /grub/ascii.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,8)
search --fs-uuid --set d0bdfcfa-90cf-43a6-9c3c-f456fcdff9f0
insmod png
if background_image /grub/debian-blueish-wallpaper-640x480.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
set root=(hd0,8)
search --fs-uuid --set d0bdfcfa-90cf-43a6-9c3c-f456fcdff9f0
menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
	linux	/vmlinuz-2.6.26-1-686 root=/dev/mapper/hda9_crypt ro  
	initrd	/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (single-user mode)" {
	linux	/vmlinuz-2.6.26-1-686 root=/dev/mapper/hda9_crypt ro single 
	initrd	/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	/vmlinuz-2.6.24-1-686 root=/dev/mapper/hda9_crypt ro  
	initrd	/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	/vmlinuz-2.6.24-1-686 root=/dev/mapper/hda9_crypt ro single 
	initrd	/initrd.img-2.6.24-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_otheros ###

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
menuentry "Microsoft Windows XP Professional" {
	set root=(hd0,1)
	chainloader +1
}
### END /etc/grub.d/30_otheros ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]   1.5.22           Debian configuration management sy
ii  grub-common             1.96+20080724-10 GRand Unified Bootloader, version 
ii  libc6                   2.7-13           GNU C Library: Shared libraries
ii  liblzo2-2               2.03-1           data compression library
ii  libncurses5             5.6+20080830-1   shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.1      common files for the Debian Deskto
pn  os-prober                     <none>     (no description available)

-- debconf information:
  grub-pc/linux_cmdline: fillme
  grub-pc/chainload_from_menu.lst: true






More information about the Pkg-grub-devel mailing list