[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Package: src:grub2
Version: 1.99-23
Severity: grave
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd@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@pyro.eu.org
# grub-probe -vd /dev/da1s5
grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: scanning hd1 for LVM.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos2.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos1.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd1,msdos5.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd1,msdos1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos2.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos1.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd1,msdos5.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd1,msdos1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: scanning hd0,msdos2 for LVM.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: scanning hd0,msdos1 for LVM.
grub-probe: info: the size of hd0 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: scanning hd1 for LVM.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: scanning hd1,msdos5 for LVM.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: scanning hd1,msdos1 for LVM.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: no LVM signature found.
grub-probe: info: following geom 'da1s5'.
grub-probe: info: geom 'da1s5' has parent 'da1s2'.
grub-probe: info: following geom 'da1s2'.
grub-probe: info: geom 'da1s2' has parent 'da1'.
grub-probe: info: following geom 'da1'.
grub-probe: info: geom 'da1' has no parent.
grub-probe: info: following geom 'da1s5'.
grub-probe: info: geom 'da1s5' has parent 'da1s2'.
grub-probe: info: following geom 'da1s2'.
grub-probe: info: geom 'da1s2' has parent 'da1'.
grub-probe: info: following geom 'da1'.
grub-probe: info: geom 'da1' has no parent.
grub-probe: info: following geom 'da1s5'.
grub-probe: info: geom 'da1s5' has parent 'da1s2'.
grub-probe: info: following geom 'da1s2'.
grub-probe: info: geom 'da1s2' has parent 'da1'.
grub-probe: info: following geom 'da1'.
grub-probe: info: geom 'da1' has no parent.
grub-probe: info: following geom 'da1s5'.
grub-probe: info: geom 'da1s5' has parent 'da1s2'.
grub-probe: info: following geom 'da1s2'.
grub-probe: info: geom 'da1s2' has parent 'da1'.
grub-probe: info: following geom 'da1'.
grub-probe: info: geom 'da1' has no parent.
grub-probe: info: /dev/da1s5 starts from 393214.
grub-probe: info: opening the device hd1.
grub-probe: info: the size of hd1 is 35565080.
grub-probe: info: Partition 0 starts from 2048.
grub-probe: info: Partition 4 starts from 393216.
grub-probe: error: cannot find a GRUB drive for /dev/da1s5.  Check your device.map.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: