Bug#533898: grub-common: "grub-probe --device /dev/hda4 --target=drive" returns (hd0, 4), should return (hd0, 3)
Lutz Lehmann
llehmann at mathematik.hu-berlin.de
Mon Jul 12 15:35:54 UTC 2010
Package: grub-common
Version: 1.97~beta3-1~bpo50+1
Followup-For: Bug #533898
Hello,
see subject. Perhaps too trivial, but in the opening post the grub-probe command should return (hd0,3) instead of (hd0,4). Grub counts from 0, the dev system from 1, so /dev/hda1 translates to (hd0,0) etc.
================================================================
# fdisk -l /dev/hda
Disk /dev/hda: 41.1 GB, 41110142976 bytes
16 heads, 63 sectors/track, 79656 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x28683b66
Device Boot Start End Blocks Id System
/dev/hda1 1 388 195520+ 6 FAT16
/dev/hda2 389 58517 29297016 5 Extended
/dev/hda3 58518 60455 976752 82 Linux swap / Solaris
/dev/hda4 * 60456 79656 9677304 83 Linux
/dev/hda5 389 58517 29296984+ 83 Linux
===============================================================
On another computer with Debian unstable in a current version, /dev/sda4 is translatet into (hd0, msdos4), obviously comming from the succeeding fat32 partition. The partition table there is
==============================================================
fdisk -l /dev/sda
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xedecedec
Device Boot Start End Blocks Id System
/dev/sda1 1 1306 10490413+ 7 HPFS/NTFS
/dev/sda2 1307 6170 39070080 f W95 Ext'd (LBA)
/dev/sda3 6171 6536 2939895 82 Linux swap / Solaris
/dev/sda4 * 6537 9729 25647772+ 83 Linux
/dev/sda5 1307 4954 29302528+ c W95 FAT32 (LBA)
/dev/sda6 4955 6170 9767488+ 83 Linux
==============================================================
-- System Information:
Debian Release: 5.0.5
APT prefers stable
APT policy: (990, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-bpo.3-686 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-common depends on:
ii base-files 5lenny6 Debian base system miscellaneous f
ii libc6 2.7-18lenny4 GNU C Library: Shared libraries
ii libfreetype6 2.3.7-2+lenny1 FreeType 2 font engine, shared lib
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages grub-common recommends:
pn os-prober <none> (no description available)
Versions of packages grub-common suggests:
pn multiboot-doc <none> (no description available)
-- no debconf information
More information about the Pkg-grub-devel
mailing list