Bug#694370: [kfreebsd] grub-probe -d fails on msdos logical partitions

Steven Chamberlain steven at pyro.eu.org
Sun Nov 25 21:24:24 UTC 2012


Package: src:grub2
Version: 1.99-23
Severity: grave
User: debian-bsd at lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd at lists.debian.org

Hi,

While testing #651720 I think I've found a more serious problem.

If I create /boot in the GNU/kFreeBSD installer as a Logical partition
(i.e. ada0s5, within an msdos extended partition ada0s2) formatted with
ufs, GRUB install fails because grub-probe doesn't understand it.

It worked fine when I created it as a Primary partition (ada0s2)
instead.  (GRUB install succeeds, installed system is bootable.)


Here's another example where grub-probe fails, this time where the
partitions are ZFS physical volumes, and on SCSI devices:

> # zpool status
>   pool: tank
>  state: ONLINE
>  scan: scrub repaired 0 in 0h9m with 0 errors on Sun Nov 25 03:04:32 2012
> config:
> 
> 	NAME        STATE     READ WRITE CKSUM
> 	tank        ONLINE       0     0     0
> 	  da0s2     ONLINE       0     0     0
> 	  da1s5     ONLINE       0     0     0
> 
> errors: No known data errors

i.e. da0s2 is an msdos primary partition, da1s5 is an msdos logical
partition, and both contain ZFS physical volumes belonging to the same pool.

> # grub-probe -d /dev/da0s2
> zfs

> # grub-probe -d /dev/da1s5
> grub-probe: error: cannot find a GRUB drive for /dev/da1s5.  Check your device.map.

> # cat /boot/grub/device.map 
> (hd0)	/dev/da0
> (hd1)	/dev/da1

Verbose output, partition layout and output of fdisk -l are attached.

Thanks,
Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grub-probe.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20121125/540f72f5/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20121125/540f72f5/attachment.pgp>


More information about the Pkg-grub-devel mailing list