Bug#578201: grub-common: grub-probe reports incorrect fs type

Aravind Gottipati aravind at freeshell.org
Sat Apr 17 19:17:53 UTC 2010


Package: grub-common
Version: 1.98-1
Severity: important
Tags: sid

Here is my FS layout as reported by sfdisk

root at dogmatrix:/etc/grub.d# sfdisk -l /dev/sda

Disk /dev/sda: 24321 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   3038    3039-  24410736   a9  NetBSD
                end: (c,h,s) expected (1023,254,63) found (1023,224,63)
/dev/sda2       3039    6270    3232   25961040    7  HPFS/NTFS
                start: (c,h,s) expected (1023,254,63) found (1023,225,1)
                end: (c,h,s) expected (1023,254,63) found (1023,224,63)
/dev/sda3       6271   23045-  16775- 134742352+   5  Extended
                start: (c,h,s) expected (1023,254,63) found (1023,225,1)
                end: (c,h,s) expected (1023,254,63) found (1023,239,63)
/dev/sda4      23045+  24320    1276-  10244272+  83  Linux
                start: (c,h,s) expected (1023,254,63) found (1023,0,1)
                end: (c,h,s) expected (1023,254,63) found (1023,14,63)
/dev/sda5       6271+   9917-   3647-  29287408+  83  Linux
                start: (c,h,s) expected (1023,254,63) found (0,16,1)
                end: (c,h,s) expected (1023,254,63) found (1023,14,63)
/dev/sda6       9917+  10646-    730-   5858968+  82  Linux swap / Solaris
                start: (c,h,s) expected (1023,254,63) found (0,1,1)
                end: (c,h,s) expected (1023,254,63) found (774,239,63)
/dev/sda7      10646+  23045-  12400-  99595408+  83  Linux
                start: (c,h,s) expected (1023,254,63) found (0,1,1)
                end: (c,h,s) expected (1023,254,63) found (1023,239,63)
/dev/sda8          0+   3038    3039-  24410736
/dev/sda9       3039    6270    3232   25961040
/dev/sda10     23045+  24320    1276-  10244272+
/dev/sda11      6271+   9917-   3647-  29287408+
/dev/sda12      9917+  10646-    730-   5858968+
/dev/sda13     10646+  23045-  12400-  99595408+
root at dogmatrix:/etc/grub.d#

And this is the output from grub-probe
root at dogmatrix:/etc/grub.d# /usr/sbin/grub-probe --device /dev/sda4 --target=fs
ufs1
root at dogmatrix:/etc/grub.d# mount
/dev/sda4 on / type ext3 (rw,relatime,errors=remount-ro,commit=0)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda7 on /home type ext2 (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
root at dogmatrix:/etc/grub.d#


sda4 is not ufs1, I do have a ufs partition on this disk (sda1), but
sda4 is not it.  This is causing grub-mkconfig to generate bogus
entries in the 10_linux (os-prober?) script and screwing up my
grub.cfg file.

It appears that grub-probe is returning the fs type of whatever
partition is marked as bootable, and not the fs type of the partition
queried.

root at dogmatrix:/etc/grub.d# /usr/sbin/grub-probe --device /dev/sda1 --target=fs
ufs1
root at dogmatrix:/etc/grub.d# /usr/sbin/grub-probe --device /dev/sda4 --target=fs
ufs1
root at dogmatrix:/etc/grub.d# /usr/sbin/grub-probe --device /dev/sda2 --target=fs
ufs1

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files              5.3              Debian base system miscellaneous f
ii  dpkg                    1.15.5.6         Debian package management system
ii  gettext-base            0.17-10          GNU Internationalization utilities
ii  install-info            4.13a.dfsg.1-5   Manage installed documentation in 
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  libfreetype6            2.3.11-1         FreeType 2 font engine, shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.36       utility to detect other OSes on a 

Versions of packages grub-common suggests:
pn  grub-emu                      <none>     (no description available)
pn  multiboot-doc                 <none>     (no description available)

-- no debconf information





More information about the Pkg-grub-devel mailing list