Bug#475718: update-grub fails; grub-probe cannot find device -- disk device is in device.map

Chris Knadle Chris.Knadle at coredump.us
Sun Apr 13 00:21:58 UTC 2008


On Saturday 12 April 2008, Robert Millan wrote:
> On Sat, Apr 12, 2008 at 09:47:05AM -0400, Chris Knadle wrote:
> > However, with both grub 0.97-36 and grub 0.97-32 running
> > grub-probe manually to detect /dev/hde2 seems to fail
> > (identical output from both):
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > anon7# grub-probe -d /dev/hde2 -v
>
> Please try with -vv
>
> Thanks

   Okay, it's attached.  Apparently grub-probe is finding an Apple partition 
map on the first drive; we do have a few Apple machines here and there is a 
small chance that at one time this disk was in an Apple.  The only reliable 
way I've found of removing Apple partitions is to use 'wipe' on them, 
although I don't know if that was done on this disk.  I have a duplicate of 
the same make + size that I can use to back this disk up with if something 
risky needs to be done to try to get rid of the Apple map if there is one.  
If you know of a better or less intrusive way of removing Apple maps, I'd 
like to know.

   -- Chris

-- 

Chris Knadle
Chris.Knadle at coredump.us
-------------- next part --------------
This file made via:
anon7# grub-probe -d /dev/hde2 -vv > grub-probe_0.97-32.txt 2>&1

grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `fd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `fd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `fd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `fd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `fd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `fd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd1' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd1'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd1' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd1'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd2' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd2'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `hd2' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd2'.
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `fd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `fd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `fd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `fd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:299: Opening `fd0' failed.
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `fd0'.
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting gpt_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: gpt_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting apple_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/partition.c:119: apple_partition_map detection succeeded.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,1'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:371: Read out of range: sector 0xffffffffffffff80 (out of partition).
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0,1'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/applgrub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: opening the device `/dev/hde'
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd1 is 976773168
e.c:137: partition 1: name , type Apple_Free, start 0x40, len 0x40000
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0,2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,2'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,2'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 1: name , type Apple_Free, start 0x40, len 0x40000
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0,2'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 2: name Apple_HFS_Untitled_2, type Apple_HFS, start 0x40040, len 0x129d9e60
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0,3'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,3'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,3'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,3'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 1: name , type Apple_Free, start 0x40, len 0x40000
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,3'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 2: name Apple_HFS_Untitled_2, type Apple_HFS, start 0x40040, len 0x129d9e60
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,3'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0,3'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 3: name , type Apple_Free, start 0x12a19ea0, len 0x10
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0,4'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 1: name , type Apple_Free, start 0x40, len 0x40000
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 2: name Apple_HFS_Untitled_2, type Apple_HFS, start 0x40040, len 0x129d9e60
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 3: name , type Apple_Free, start 0x12a19ea0, len 0x10
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0,4'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:371: Read out of range: sector 0xffffffffffffff80 (out of partition).
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0,4'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 4: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0'.
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd1'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd1'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting gpt_partition_map...
/build/buildd/grub2-grub-probe: info: opening the device `/dev/hdg'
grub-probe: info: the size of hd1 is 976773168
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: opening the device `/dev/hdg1'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/hdh'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/hdh'
grub-probe: info: the size of hd2 is 976773168
1.96+20080408/kern/disk.c:364: Reading `hd1'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: gpt_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting apple_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: apple_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting pc_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1'...
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/kern/partition.c:119: pc_partition_map detection succeeded.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1'...
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd1,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1,1'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1,1'...
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd1,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd1,1'.
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd1'.
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd2'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd2'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting gpt_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: gpt_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting apple_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: apple_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting pc_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2'...
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/kern/partition.c:119: pc_partition_map detection succeeded.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2'...
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/disk/raid.c:359: Scanning for RAID devices
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd2,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2,1'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2,1'...
/build/buildd/grugrub-probe: info: opening the device `/dev/hdh1'
grub-probe: info: opening the device `/dev/hdh1'
grub-probe: info: /dev/hde2 starts from 80084025
grub-probe: info: opening the device hd0
grub-probe: info: the size of hd0 is 312581808
grub-probe: info: Partition 0 starts from 1
grub-probe: info: Partition 1 starts from 64
grub-probe: info: Partition 2 starts from 262208
grub-probe: info: Partition 3 starts from 312581792
grub-probe: error: Cannot find a GRUB drive for /dev/hde2.  Check your device.map.

b2-1.96+20080408/partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x3a384c02
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd2,1'...
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd2,1'.
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd2'.
/build/buildd/grub2-1.96+20080408/kern/disk.c:220: Opening `hd0'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting gpt_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/kern/partition.c:114: gpt_partition_map detection failed.
/build/buildd/grub2-1.96+20080408/kern/partition.c:108: Detecting apple_partition_map...
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/partition.c:119: apple_partition_map detection succeeded.
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 0: name Apple, type Apple_partition_map, start 0x1, len 0x3f
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 1: name , type Apple_Free, start 0x40, len 0x40000
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 2: name Apple_HFS_Untitled_2, type Apple_HFS, start 0x40040, len 0x129d9e60
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:137: partition 3: name , type Apple_Free, start 0x12a19ea0, len 0x10
/build/buildd/grub2-1.96+20080408/kern/disk.c:364: Reading `hd0'...
/build/buildd/grub2-1.96+20080408/partmap/apple.c:124: partition 4: bad magic (found 0x0; wanted 0x504d
/build/buildd/grub2-1.96+20080408/kern/disk.c:312: Closing `hd0'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080412/7a0b684b/attachment-0001.pgp 


More information about the Pkg-grub-devel mailing list