Bug#681691: os-prober and linux-boot-prober fail to mount alternate partition
Package: os-prober
Version: 1.54
Severity: important
Hello,
very recently, I noticed that update-grub didn't discover Linux Debian
installed on other partitions (/dev/sda2) than the current one (/dev/sda1),
and I brought the issue down to os-prober which somehow fails to mount
/dev/sda2 in order to properly discover it:
root@hdvdr:/usr/src# os-prober
umount: /var/lib/os-prober/mount: not mounted
root@hdvdr:/usr/src# mount /dev/sda2 /mnt
root@hdvdr:/usr/src# os-prober
/dev/sda2:Debian GNU/Linux (wheezy/sid):Debian:linux
root@hdvdr:/usr/src# linux-boot-prober /dev/sda2
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.4-trunk-amd64:/boot/vmlinuz-3.4-trunk-amd64:/boot/initrd.img-3.4-trunk-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro quiet
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.4-trunk-amd64 (Wiederherstellungsmodus):/boot/vmlinuz-3.4-trunk-amd64:/boot/initrd.img-3.4-trunk-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro single
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.2.0-3-amd64:/boot/vmlinuz-3.2.0-3-amd64:/boot/initrd.img-3.2.0-3-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro quiet
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.2.0-3-amd64 (Wiederherstellungsmodus):/boot/vmlinuz-3.2.0-3-amd64:/boot/initrd.img-3.2.0-3-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro single
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.1.8+vdr1:/boot/vmlinuz-3.1.8+vdr1:/boot/initrd.img-3.1.8+vdr1:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro quiet
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.1.8+vdr1 (Wiederherstellungsmodus):/boot/vmlinuz-3.1.8+vdr1:/boot/initrd.img-3.1.8+vdr1:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro single
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.1.0-1-amd64:/boot/vmlinuz-3.1.0-1-amd64:/boot/initrd.img-3.1.0-1-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro quiet
/dev/sda2:/dev/sda2:Debian GNU/Linux, mit Linux 3.1.0-1-amd64 (Wiederherstellungsmodus):/boot/vmlinuz-3.1.0-1-amd64:/boot/initrd.img-3.1.0-1-amd64:root=UUID=4d1901af-273e-4fdf-8128-b014f0b88e30 ro single
root@hdvdr:/usr/src# umount /dev/sda2
root@hdvdr:/usr/src# linux-boot-prober /dev/sda2
umount: /var/lib/os-prober/mount: not mounted
I've done an 'fsck -f' prior to the above test and I've also tried to
mkdir /var/lib/os-prober/mount
prior to similar tests, but it didn't make any difference.
The report was set to important as it is impacting greatly its usage.
Thanks, Eric
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.8+vdr1 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages os-prober depends on:
ii libc6 2.13-33
os-prober recommends no packages.
os-prober suggests no packages.
-- no debconf information
Reply to: