On Mon, Jul 12, 2010 at 05:44:59PM +0200, Lutz Lehmann wrote: > 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.
No, GRUB 2 counts from 1, not 0. GRUB Legacy counted from 0, but the GRUB Legacy packaging in Debian sets the environment variable GRUB_LEGACY_0_BASED_PARTITIONS=1 when calling grub-probe, and this causes it to count from 0. I am happy to debug your broken system, but your diagnosis is incorrect. Please could you give me full details of the problem you're encountering, including all relevant configuration files and a description of your disk layout? Please file a *new* bug report about this problem rather than continuing to send messages to this bug (#567437), as this doesn't seem to have anything to do with the original report here. -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

