Bug#567437: [grub-common] grub-probe uses a wrong grub partition number ((hd0, 5) for /dev/hda5, correct:(hd0, 4))

Lutz Lehmann llehmann at mathematik.hu-berlin.de
Mon Jul 12 15:44:59 UTC 2010


Package: grub-common
Version: 1.98+20100706-1

--- Please enter the report below this line. ---
Per specification, grub partitions are counted from 0, in the /dev system, 
counts start with 1. So the correct translation is

/dev/hda1 --> (hd0,0)
/dev/hdb5 --> (hd1,4)

etc.

grub-probe seems to translate first the dev partition name to a grub name, 
/dev/hda5 to (hd0,5), and then uses this wrong partition name to access 
the partition properties. Which gives a problem if there is only one 
partition.

Worst, this wrong partition is then also used in grub.cfg, rendering the 
system unbootable.

Regards, Lutz Lehmann

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.34-0.slh.11-sidux-686

Debian Release: squeeze/sid
   990 unstable        mrene
   500 stable          mrene

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-===============
base-files                (>= 4.0.1~) | 5.8
dpkg                     (>= 1.15.4)  | 1.15.7.2
  OR install-info                      | 4.13a.dfsg.1-5
  OR dpkg                 (<= 1.14.25) | 1.15.7.2
libc6                        (>= 2.3) | 2.11.2-2
libdevmapper1.02.1     (>= 2:1.02.36) | 2:1.02.48-2
libfreetype6               (>= 2.2.1) | 2.3.11-1
zlib1g                   (>= 1:1.1.4) | 1:1.2.3.4.dfsg-3
gettext-base                          | 0.18.1.1-1


Recommends      (Version) | Installed
=========================-+-===========
os-prober       (>= 1.33) |


Suggests                (Version) | Installed
=================================-+-================
multiboot-doc                     | 
grub-emu                          | 
xorriso           (>= 0.5.6.pl00) |










More information about the Pkg-grub-devel mailing list