Bug#578201: grub-common: grub-probe reports incorrect fs type
Aravind Gottipati
aravind at freeshell.org
Sun Apr 18 05:42:04 UTC 2010
My hypothesis that it was simply listing the fs type of the bootable
partition is incorrect. I changed sda4 to be bootable, but its still
listing the fstype of sda1. Also, I happen to have another
installation of debian thats not quite so up to date and grub-probe
seems to be working okay there. Here is the output from the grub2
1.97+20091115-1, and following that is the output from the latest
grub2 1.98-1.
(this is the output from the older grub2)
root at dogmatrix:~# dpkg-query -s grub-common
Package: grub-common
Status: install ok installed
Priority: extra
Section: admin
Installed-Size: 2444
Maintainer: GRUB Maintainers <pkg-grub-devel at lists.alioth.debian.org>
Architecture: amd64
Source: grub2
Version: 1.97+20091115-1
Replaces: grub-coreboot (<< 1.97+20091114-1), grub-efi (<<
1.96+20080831-1), grub-ieee1275 (<< 1.96+20080831-1), grub-linuxbios
(<< 1.96+20080831-1), grub-pc (<< 1.97+20091114-1)
Depends: libc6 (>= 2.3), libfreetype6 (>= 2.2.1), zlib1g (>= 1:1.1.4),
base-files (>= 4.0.1~)
Recommends: os-prober (>= 1.33)
Suggests: multiboot-doc, grub-emu
Conflicts: grub-doc (<< 0.97-32), grub-legacy-doc (<< 0.97-59), mdadm
(<< 2.6.7-2)
Conffiles:
/etc/grub.d/README be58f42dfe74feb6eeb98c6a843c743f
/etc/grub.d/10_linux ef73bcd6544dc221f68fbe9c359411eb
/etc/grub.d/00_header 7eadb1c796713b39f03a8bf6d9c31c62
/etc/grub.d/40_custom babe7de352fe18de5a238569cf4b8a11
/etc/grub.d/30_os-prober 42c94154d1830d3945a427e18877f4ca
Description: GRand Unified Bootloader, version 2 (common files)
This package contains common files shared by the distinct flavours of GRUB.
Homepage: http://www.gnu.org/software/grub/grub-2.en.html
root at dogmatrix:~#
root at dogmatrix:~# grub-probe --device /dev/sda4 --target=fs
ext2
root at dogmatrix:~#
root at dogmatrix:~# grub-probe --verbose --device /dev/sda4 --target=fs
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: /dev/sda4 starts from 370228320
grub-probe: info: opening the device hd0
grub-probe: info: the size of hd0 is 390721968
grub-probe: info: DOS partition 0 starts from 63
grub-probe: info: BSD partition 0,a starts from 63
grub-probe: info: BSD partition 0,f starts from 48821535
grub-probe: info: BSD partition 0,g starts from 370228320
grub-probe: info: opening hd0,1,g
grub-probe: info: the size of hd0 is 390721968
ext2
root at dogmatrix:~#
A few reboots and some cursing later.. (what follows is from the latest grub2).
root at dogmatrix:~#
root at dogmatrix:~# /usr/sbin/grub-probe --verbose --device /dev/sda4
/usr/sbin/grub-probe: info: cannot open `/boot/grub/device.map'.
/usr/sbin/grub-probe: info: /dev/sda4 starts from 370228320.
/usr/sbin/grub-probe: info: opening the device /dev/sda.
/usr/sbin/grub-probe: info: the size of /dev/sda is 390721968.
/usr/sbin/grub-probe: info: DOS partition 0 starts from 63.
/usr/sbin/grub-probe: info: BSD partition 0,a starts from 63.
/usr/sbin/grub-probe: info: BSD partition 0,f starts from 48821535.
/usr/sbin/grub-probe: info: BSD partition 0,g starts from 370228320.
/usr/sbin/grub-probe: info: opening /dev/sda,1,a.
/usr/sbin/grub-probe: info: the size of /dev/sda is 390721968.
ufs1
root at dogmatrix:~#
root at dogmatrix:~# dpkg-query -s grub-common
Package: grub-common
Status: install ok installed
Priority: extra
Section: admin
Installed-Size: 4192
Maintainer: GRUB Maintainers <pkg-grub-devel at lists.alioth.debian.org>
Architecture: amd64
Source: grub2
Version: 1.98-1
Replaces: grub-coreboot (<< 1.97+20091114-1), grub-efi (<<
1.96+20080831-1), grub-ieee1275 (<< 1.96+20080831-1), grub-linuxbios
(<< 1.96+20080831-1), grub-pc (<< 1.97+20091114-1)
Depends: base-files (>= 4.0.1~), dpkg (>= 1.15.4) | install-info |
dpkg (<= 1.14.25), libc6 (>= 2.3), libfreetype6 (>= 2.2.1), zlib1g (>=
1:1.1.4), gettext-base
Recommends: os-prober (>= 1.33)
Suggests: multiboot-doc, grub-emu
Conflicts: grub-doc (<< 0.97-32), grub-legacy-doc (<< 0.97-59), mdadm
(<< 2.6.7-2)
Conffiles:
/etc/grub.d/10_linux c9e493e3bcf41b4abef3e2d1c1927e7d
/etc/grub.d/README be58f42dfe74feb6eeb98c6a843c743f
/etc/grub.d/30_os-prober 543b8f6ec0bab559ac3117cff1f1271d
/etc/grub.d/40_custom babe7de352fe18de5a238569cf4b8a11
/etc/grub.d/00_header 577b1b6075f5e8ed8bba8b5dd62ed46a
Description: GRand Unified Bootloader, version 2 (common files)
This package contains common files shared by the distinct flavours of GRUB.
Homepage: http://www.gnu.org/software/grub/grub-2.en.html
root at dogmatrix:~#
root at dogmatrix:~#
More information about the Pkg-grub-devel
mailing list