Bug#536727: grub2 changes partition info in legacy menu.lst

blaz bdl at fwr.on.ca
Sun Jul 12 22:05:25 UTC 2009


Package: grub2
Version: 1.96+20090709-1
Severity: critical
Justification: breaks the whole system

grub2 installed fine, but the resulting menu.list had all the partitions
off by 2. what should have been (hd0,4) was (hd0,6) and /dev/sda5 was
turned into /dev/sda7. As this is my swap partition, nothing would boot.

Perhaps my drive is strange as it has no primary partition, just:
sda5  Logical   Linux ext3       [debian]       289192.59*
sda6  Logical   NTFS             []              10174.68
sda7  Logical   Linux swap / Solaris               715.60


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/root / ext3 rw,relatime,errors=remount-ro,data=writeback 0 0
/dev/sdb1 /home/blaz/media xfs rw,relatime,attr2,noquota 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/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 ###
set default=0
set timeout=5
set root=(hd0,5)
search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
if loadfont /usr/share/grub/ascii.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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,5)
search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
insmod png
if background_image /usr/share/images/desktop-base/moreblue-orbit-grub.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_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30.1" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30.1 root=/dev/sda5 ro  quiet
}
menuentry "Debian GNU/Linux, Linux 2.6.30.1 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30.1 root=/dev/sda5 ro single 
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=02285f57-35d3-4c62-8baa-0c299b88bcf9 ro  quiet
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30-1-686 root=UUID=02285f57-35d3-4c62-8baa-0c299b88bcf9 ro single 
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.29.5" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.29.5 root=/dev/sda5 ro  quiet
}
menuentry "Debian GNU/Linux, Linux 2.6.29.5 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.29.5 root=/dev/sda5 ro single 
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.26-2-686 root=UUID=02285f57-35d3-4c62-8baa-0c299b88bcf9 ro  quiet
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.26-2-686 root=UUID=02285f57-35d3-4c62-8baa-0c299b88bcf9 ro single 
	initrd	/boot/initrd.img-2.6.26-2-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/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: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub2 depends on:
ii  grub-pc                  1.96+20090709-1 GRand Unified Bootloader, version 

grub2 recommends no packages.

grub2 suggests no packages.

-- no debconf information





More information about the Pkg-grub-devel mailing list