[Bug 903125] [NEW] 50mounted-tests incorrectly handles lvm partition

Paolo Pisati 903125 at bugs.launchpad.net
Mon Dec 12 10:29:30 UTC 2011


Public bug reported:

I hit this problem while reinstalling grub:

[flag at newluxor ~]$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin

ls: reading directory /var/lib/os-prober/mount: Software caused
connection abort

[here came the kill -9 - see below]

Found Microsoft Windows XP Professional on /dev/sda1
Found unknown Linux distribution on /dev/sdc1
Found Microsoft Windows XP Professional on /dev/sdc2
Found Windows NT/2000/XP (loader) on /dev/sdc5
Found unknown Linux distribution on /dev/sdc6
done

Environment:

[flag at newluxor ~]$ uname -a
Linux newluxor 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[flag at newluxor ~]$ dpkg -l | grep grub
ii  grub-common                            1.99-12ubuntu5                               GRand Unified Bootloader (common files)
ii  grub-gfxpayload-lists                  0.5                                          GRUB gfxpayload blacklist
ii  grub-pc                                1.99-12ubuntu5                               GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                            1.99-12ubuntu5                               GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common                           1.99-12ubuntu5                               GRand Unified Bootloader (common files for version 2)

[flag at newluxor ~]$ sudo fdisk -l /dev/sdd

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa7591a3d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1              63  1953520064   976760001   8e  Linux LVM
...

and here is the guilty script:

[flag at newluxor ~]$ sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
[STUCK HERE!!!]

on another shell (watch for grub-mount below):

[flag at newluxor ~]$ ps -auxwww | grep mount
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13245  102 21.1 1078388 802808 ?      Rs   11:15   0:26 grub-mount /dev/sdd1 /var/lib/os-prober/mount
root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
flag     13255  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
[flag at newluxor ~]$ ps -auxwww | grep mount
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13245  100 25.3 1078388 961208 ?      Rs   11:15   0:32 grub-mount /dev/sdd1 /var/lib/os-prober/mount
root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
flag     13257  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
[flag at newluxor ~]$ ps -auxwww | grep mount
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13245  100 32.5 2126964 1236804 ?     Rs   11:15   0:41 grub-mount /dev/sdd1 /var/lib/os-prober/mount
root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
flag     13259  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
[flag at newluxor ~]$ ps -auxwww | grep mount
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
root     13245  100 38.7 2126964 1470180 ?     Rs   11:15   0:49 grub-mount /dev/sdd1 /var/lib/os-prober/mount
root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
flag     13261  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
[flag at newluxor ~]$ sudo kill -9 13245

since it was sucking all my cpu and my box started trashing, i had to
kill -9 it.

[/var/log/syslog]
...
Dec 12 11:15:47 newluxor 50mounted-tests: debug: mounted using GRUB
Dec 12 11:15:47 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos
Dec 12 11:15:47 newluxor 10freedos: debug: /dev/sdd1 is a FUSE partition
[here comes the kill -9]
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx
Dec 12 11:16:42 newluxor 10qnx: debug: /dev/sdd1 is not a QNX4 partition: exiting
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx
Dec 12 11:16:42 newluxor macosx-prober: debug: /dev/sdd1 is a FUSE partition
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
Dec 12 11:16:42 newluxor 20microsoft: debug: /dev/sdd1 is a FUSE partition
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility
Dec 12 11:16:42 newluxor 30utility: debug: /dev/sdd1 is a FUSE partition
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku
Dec 12 11:16:42 newluxor 83haiku: debug: /dev/sdd1 is a FUSE partition
Dec 12 11:16:42 newluxor 83haiku: debug: Stage 1 bootloader not found: exiting
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/903125

Title:
  50mounted-tests incorrectly handles lvm partition

Status in “grub2” package in Ubuntu:
  New

Bug description:
  I hit this problem while reinstalling grub:

  [flag at newluxor ~]$ sudo update-grub
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.0.0-14-generic
  Found initrd image: /boot/initrd.img-3.0.0-14-generic
  Found linux image: /boot/vmlinuz-3.0.0-13-generic
  Found initrd image: /boot/initrd.img-3.0.0-13-generic
  Found linux image: /boot/vmlinuz-3.0.0-12-generic
  Found initrd image: /boot/initrd.img-3.0.0-12-generic
  Found linux image: /boot/vmlinuz-2.6.38-11-generic
  Found initrd image: /boot/initrd.img-2.6.38-11-generic
  Found linux image: /boot/vmlinuz-2.6.38-8-generic
  Found initrd image: /boot/initrd.img-2.6.38-8-generic
  Found memtest86+ image: /boot/memtest86+.bin

  ls: reading directory /var/lib/os-prober/mount: Software caused
  connection abort

  [here came the kill -9 - see below]

  Found Microsoft Windows XP Professional on /dev/sda1
  Found unknown Linux distribution on /dev/sdc1
  Found Microsoft Windows XP Professional on /dev/sdc2
  Found Windows NT/2000/XP (loader) on /dev/sdc5
  Found unknown Linux distribution on /dev/sdc6
  done

  Environment:

  [flag at newluxor ~]$ uname -a
  Linux newluxor 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
  [flag at newluxor ~]$ dpkg -l | grep grub
  ii  grub-common                            1.99-12ubuntu5                               GRand Unified Bootloader (common files)
  ii  grub-gfxpayload-lists                  0.5                                          GRUB gfxpayload blacklist
  ii  grub-pc                                1.99-12ubuntu5                               GRand Unified Bootloader, version 2 (PC/BIOS version)
  ii  grub-pc-bin                            1.99-12ubuntu5                               GRand Unified Bootloader, version 2 (PC/BIOS binaries)
  ii  grub2-common                           1.99-12ubuntu5                               GRand Unified Bootloader (common files for version 2)

  [flag at newluxor ~]$ sudo fdisk -l /dev/sdd

  Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
  255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disk identifier: 0xa7591a3d

     Device Boot      Start         End      Blocks   Id  System
  /dev/sdd1              63  1953520064   976760001   8e  Linux LVM
  ...

  and here is the guilty script:

  [flag at newluxor ~]$ sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
  [STUCK HERE!!!]

  on another shell (watch for grub-mount below):

  [flag at newluxor ~]$ ps -auxwww | grep mount
  Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
  root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13245  102 21.1 1078388 802808 ?      Rs   11:15   0:26 grub-mount /dev/sdd1 /var/lib/os-prober/mount
  root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
  root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
  flag     13255  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
  [flag at newluxor ~]$ ps -auxwww | grep mount
  Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
  root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13245  100 25.3 1078388 961208 ?      Rs   11:15   0:32 grub-mount /dev/sdd1 /var/lib/os-prober/mount
  root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
  root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
  flag     13257  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
  [flag at newluxor ~]$ ps -auxwww | grep mount
  Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
  root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13245  100 32.5 2126964 1236804 ?     Rs   11:15   0:41 grub-mount /dev/sdd1 /var/lib/os-prober/mount
  root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
  root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
  flag     13259  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
  [flag at newluxor ~]$ ps -auxwww | grep mount
  Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
  flag      2212  0.0  0.0 250520  2308 ?        Sl   09:33   0:00 /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
  root     13236  0.0  0.0  27168  1316 pts/2    S+   11:15   0:00 sudo /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13237  0.0  0.0   4264   740 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/50mounted-tests /dev/sdd1
  root     13245  100 38.7 2126964 1470180 ?     Rs   11:15   0:49 grub-mount /dev/sdd1 /var/lib/os-prober/mount
  root     13249  0.0  0.0   4264   728 pts/2    S+   11:15   0:00 /bin/sh /usr/lib/os-probes/mounted/10freedos /dev/sdd1 /var/lib/os-prober/mount fuseblk
  root     13252  0.0  0.0  25056   680 pts/2    S+   11:15   0:00 ls -1 /var/lib/os-prober/mount
  flag     13261  0.0  0.0  14564   888 pts/3    S+   11:16   0:00 grep mount
  [flag at newluxor ~]$ sudo kill -9 13245

  since it was sucking all my cpu and my box started trashing, i had to
  kill -9 it.

  [/var/log/syslog]
  ...
  Dec 12 11:15:47 newluxor 50mounted-tests: debug: mounted using GRUB
  Dec 12 11:15:47 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos
  Dec 12 11:15:47 newluxor 10freedos: debug: /dev/sdd1 is a FUSE partition
  [here comes the kill -9]
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx
  Dec 12 11:16:42 newluxor 10qnx: debug: /dev/sdd1 is not a QNX4 partition: exiting
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx
  Dec 12 11:16:42 newluxor macosx-prober: debug: /dev/sdd1 is a FUSE partition
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft
  Dec 12 11:16:42 newluxor 20microsoft: debug: /dev/sdd1 is a FUSE partition
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility
  Dec 12 11:16:42 newluxor 30utility: debug: /dev/sdd1 is a FUSE partition
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku
  Dec 12 11:16:42 newluxor 83haiku: debug: /dev/sdd1 is a FUSE partition
  Dec 12 11:16:42 newluxor 83haiku: debug: Stage 1 bootloader not found: exiting
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
  Dec 12 11:16:42 newluxor 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/903125/+subscriptions




More information about the foundations-bugs mailing list