https://bugzilla.novell.com/show_bug.cgi?id=750897
https://bugzilla.novell.com/show_bug.cgi?id=750897#c6
--- Comment #6 from Michael Chang 2012-03-09 04:32:42 UTC ---
The error returning :
/usr/sbin/grub2-probe: error: cannot find a GRUB drive for /dev/sda2.
Check your device.map.
was due to extended partition is neglected in msdos partition iteration
intentionally (not treated as normal partition), hooks would not trigger for it
thus it wouldn't get any chance be added to internal structure, which leads to
above error due to it's absent in it(and unfortunately the message is a bit
misleading).
Simply get rid of the extended partition check would make it be iterated, but
got a lot of seek error. After checking the size of extended partition block
device I realized why :
$ dd if=/dev/sda2 of=/dev/null
2+0 records in
2+0 records out
1024 bytes (1.0kB) copied, 0.0107428 s, 95.3 kB/s
We have to trim it's partition size to 2 (the size in partition table covers
all logical partition).. it's not a disk block device like /dev/sda but a
partition device which should not overlap others .. otherwise some tools may
accidentally overwrites it.
The test now works for me ..
$ /usr/sbin/grub2-probe --device-map=/boot/grub2/device.map --target=drive
--device /dev/sda2
(hd0,msdos2)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.