Bug#488294: grub-pc: defaults existing windows installation on first partition of first hd to (hd0, 0)

Frank Ströhlein pullup at web.de
Fri Jun 27 18:16:23 UTC 2008


Package: grub-pc
Version: 1.96+20080512-1
Severity: important

When installing lenny i was asked if grub2 should be used, which i confirmed ok.
A Windows installation was found on hda1 and a corresponding menuentry was added
to grub.cfg. I had to change 'set root=(hd0,0)' to 'set root=(hd0,1)' afterwards
to succesfully boot into M$ - Mode.

As far is i know, grub2 starts counting partitions with 1, so is assume this should be taken care of.

Regards,

Frank




-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/hdb1 / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/hdb1 /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/hdb4 /home ext3 rw,data=ordered 0 0
/dev/hdb2 /usr ext3 rw,data=ordered 0 0
/dev/sda1 /media/disk vfat rw,nosuid,nodev,uid=1001,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/sdb
*********************** 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=(hd1,1)
if font (hd1,2)/share/grub/unicode.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 ###
insmod png
if background_image (hd1,2)/share/images/desktop-base/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 ###
menuentry "Debian GNU/Linux, linux 2.6.24-1-486" {
	linux	(hd1,1)/boot/vmlinuz-2.6.24-1-486 root=/dev/hdb1 ro  
	initrd	(hd1,1)/boot/initrd.img-2.6.24-1-486
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-486 (single-user mode)" {
	linux	(hd1,1)/boot/vmlinuz-2.6.24-1-486 root=/dev/hdb1 ro single 
	initrd	(hd1,1)/boot/initrd.img-2.6.24-1-486
}
### 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 Home Edition" {
	set root=(hd0,1)
	chainloader +1
}
### END /etc/grub.d/30_otheros ###
*********************** 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.24-1-486
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+20080512-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-10          GNU C Library: Shared libraries
ii  liblzo2-2                2.03-1          data compression library
ii  libncurses5              5.6+20080308-1  Shared libraries for terminal hand

grub-pc recommends no packages.

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





More information about the Pkg-grub-devel mailing list