os-prober fails to find OSes on uncleanly-unmounted filesystems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
Binary package hint: os-prober
When Natty has to update-grub, it always fails to detect my Maverick installation on another partition. This problem started about two weeks ago, prior installations of Natty detected the Maverick partition, correctly. Today, I did a fresh Natty install from the Nov-30 alternate ISO image and was able to find the following in the installer syslog:
Nov 30 19:57:48 anna-install: Installing os-prober-udeb
Nov 30 19:57:48 os-prober: File descriptor 3 (pipe:[6686]) leaked on lvs invocation. Parent PID 18748: log-output
Nov 30 19:57:48 os-prober: File descriptor 4 ((unreachable)
Nov 30 19:57:48 os-prober: File descriptor 5 ((unreachable)
Nov 30 19:57:48 os-prober: File descriptor 6 ((unreachable)
Nov 30 19:57:48 os-prober: debug: /dev/sda1: is active swap
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 kernel: [ 2441.569504] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
Nov 30 19:57:48 kernel: [ 2441.569511] EXT4-fs (sda2): write access unavailable, cannot proceed
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 50mounted-tests: debug: /dev/sda3 type not recognised; skipping
Nov 30 19:57:48 os-prober: debug: os detected by /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 kernel: [ 2441.635787] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
Nov 30 19:57:48 50mounted-tests: debug: mounted as ext4 filesystem
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 10freedos: debug: /dev/sda5 is not a FAT partition: exiting
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 10qnx: debug: /dev/sda5 is not a QNX4 partition: exiting
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 macosx-prober: debug: /dev/sda5 is not an HFS+ partition: exiting
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 20microsoft: debug: /dev/sda5 is not a MS partition: exiting
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 30utility: debug: /dev/sda5 is not a FAT partition: exiting
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 50mounted-tests: debug: running subtest /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 10freedos: debug: /dev/sda6 is not a FAT partition: exiting
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 10qnx: debug: /dev/sda6 is not a QNX4 partition: exiting
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 macosx-prober: debug: /dev/sda6 is not an HFS+ partition: exiting
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 20microsoft: debug: /dev/sda6 is not a MS partition: exiting
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 30utility: debug: /dev/sda6 is not a FAT partition: exiting
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Nov 30 19:57:48 os-prober: debug: running /usr/lib/
Maverick is on sda2 and, for some reason, os-prober is unable to access it.
Release is Natty 11.04. os-prober is 1.41. grub is 1.99-20101126-
Whenever I install Natty or install a Natty kernel update, grub2 loses the ability to boot to Maverick. To workaround, I have to run the Maverick Live CD and manually grub-install. The Maverick grub2 and os-prober correctly configure both my Maverick and Natty partitions.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: os-prober 1.41
ProcVersionSign
Uname: Linux 2.6.37-7-generic i686
NonfreeKernelMo
Architecture: i386
Date: Tue Nov 30 14:34:45 2010
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101130)
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: os-prober
tags: | added: iso-testing |
Changed in os-prober (Ubuntu): | |
importance: | Medium → High |
milestone: | none → ubuntu-11.04-beta-2 |
I am starting to make some headway on my os-prober / grub2 issue.
Today, there was a new kernel for Natty. When it installed, it gave a grub2 syntax error. I got around the error by running install-grub, which ran without error, but again failed to detect Maverick on the other partition. When I rebooted to Natty, it was using the new kernel.
But, as Maverick is my main-use installation, I have to be able to boot to it. So, once again, I booted to the Maverick Live DVD and installed Maverick's grub2. That detected both Maverick and Natty. Maverick booted fine, but when I booted Natty, it was back on the previous kernel version.
So, on a hunch, I manually ran os-prober in Natty, then ran grub-install, again. That did the trick. I can now selectively boot Natty or Maverick, and when I boot to Natty, it runs the current latest kernel.
This is all to say, things are still quite a mess, but I have learned how to force them to work.