Your message dated Mon, 18 Oct 2010 00:14:00 +0200
with message-id <[email protected]>
and subject line Re: grub-probe: hangs when reading a corrupt partition table
has caused the Debian Bug report #519223,
regarding grub-probe: hangs when reading a corrupt partition table
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
519223: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519223
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grub-common
Version: 1.96+20080724-16
Severity: normal
Hello,
If one of the disks in /boot/grub/device.map has the attached partition
table, grub-probe will get stuck in an infinite loop in the
pc_partition_map_iterate() function (in partmap/pc.c). I discovered
this while installing to a system with several external SAS disks -- if
I disconnected the SAS enclosure, the install worked; otherwise it would
hang at the grub-install stage. Several of my disks had the same
corrupt table, but I'm not really sure where it came from. In any case,
grub-probe should just give up on the corrupt partition table, rather
than getting into an infinite loop.
Steps to reproduce:
1. Copy the partition table to a scratch disk:
# dd if=corrupt-table.dat of=/dev/sdb
2. Make sure the scratch disk is in /boot/grub/device.map (or create
one to use in the next step).
3. Run grub-probe:
# grub-probe --device-map=/boot/grub/device.map -t device / -v -v
Expected results:
It quickly finishes, spitting out the device that root is on.
Actual results:
It gets stuck doing the same thing over and over, something like
/tmp/grub/grub2-1.96+20080724/kern/disk.c:368: Reading `hd2'...
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 0: flag 0x0, type
0x5, start 0x0, len 0x11177330
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 1: flag 0x0, type
0x0, start 0x0, len 0x0
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 2: flag 0x0, type
0x0, start 0x0, len 0x0
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 3: flag 0x0, type
0x0, start 0x0, len 0x0
/tmp/grub/grub2-1.96+20080724/kern/disk.c:368: Reading `hd2'...
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 0: flag 0x0, type
0x5, start 0x0, len 0x11177330
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 1: flag 0x0, type
0x0, start 0x0, len 0x0
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 2: flag 0x0, type
0x0, start 0x0, len 0x0
/tmp/grub/grub2-1.96+20080724/partmap/pc.c:143: partition 3: flag 0x0, type
0x0, start 0x0, len 0x0
[ ... ]
--
John Wright <[email protected]>
corrupt-table.dat
Description: Binary data
--- End Message ---
--- Begin Message ---
This bug was fixed upstream and fixed version uploaded
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
--- End Message ---