You are not logged in.

#1 2012-04-06 12:17:55

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

os-prober can't find Arch

Hi,
I have this setup:
/dev/sda1 -> /boot (first Arch installation)
/dev/sda2 -> /boot (second Arch installation)
(They both are ext4 formatted partitions)
/dev/sda3 -> contains three encrypted lvm volumes (dm-crypt/LUKS on top of LVM), one for the root of the first arch installation, one for the second and the other one for /home.
The problem is that os-prober doesn't detect the second Arch installation in /dev/sda2. I also tried mounting both /boot and / of the second arch installation, with no luck: the output of os-prober still remains blank.
I found it strange that

$ /usr/lib/os-probes/mounted/90linux-distro /dev/sda2 /mnt/root-rt

outputs

/dev/sda2::Arch1:linux

Besides,

$ linux-boot-prober /dev/sda2
/dev/sda2:/dev/sda2::/vmlinuz-linux:/initramfs-linux.img:root=/dev/sda2
/dev/sda2:/dev/sda2::/vmlinuz-linux-rt:/initramfs-linux-rt.img:root=/dev/sda2

but it should run after os-prober has detected a Linux OS, so it's not so relevant.

Here's os-prober debug output:

Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda1
Apr  6 14:11:50 localhost 10freedos: debug: /dev/sda1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda1
Apr  6 14:11:50 localhost 10qnx: debug: /dev/sda1 is not a QNX4 partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda1
Apr  6 14:11:50 localhost macosx-prober: debug: /dev/sda1 is not an HFS+ partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda1
Apr  6 14:11:50 localhost 20microsoft: debug: /dev/sda1 is not a MS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda1
Apr  6 14:11:50 localhost 30utility: debug: /dev/sda1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda1
Apr  6 14:11:50 localhost 83haiku: debug: /dev/sda1 is not a BeFS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda2
Apr  6 14:11:50 localhost 10freedos: debug: /dev/sda2 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda2
Apr  6 14:11:50 localhost 10qnx: debug: /dev/sda2 is not a QNX4 partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda2
Apr  6 14:11:50 localhost macosx-prober: debug: /dev/sda2 is not an HFS+ partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda2
Apr  6 14:11:50 localhost 20microsoft: debug: /dev/sda2 is not a MS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda2
Apr  6 14:11:50 localhost 30utility: debug: /dev/sda2 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda2
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda2
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda2
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda2
Apr  6 14:11:50 localhost 83haiku: debug: /dev/sda2 is not a BeFS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda2
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda2
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda3
Apr  6 14:11:50 localhost kernel: [ 8750.373266] blockdev: sending ioctl 125d to a partition!
Apr  6 14:11:50 localhost kernel: [ 8750.373270] blockdev: sending ioctl 125d to a partition!
Apr  6 14:11:50 localhost kernel: [ 8750.380120] blockdev: sending ioctl 125d to a partition!
Apr  6 14:11:50 localhost kernel: [ 8750.380123] blockdev: sending ioctl 125d to a partition!
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sdb1
Apr  6 14:11:50 localhost 10freedos: debug: /dev/sdb1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sdb1
Apr  6 14:11:50 localhost 10qnx: debug: /dev/sdb1 is not a QNX4 partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sdb1
Apr  6 14:11:50 localhost macosx-prober: debug: /dev/sdb1 is not an HFS+ partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sdb1
Apr  6 14:11:50 localhost 20microsoft: debug: /dev/sdb1 is not a MS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sdb1
Apr  6 14:11:50 localhost 30utility: debug: /dev/sdb1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdb1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sdb1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sdb1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sdb1
Apr  6 14:11:50 localhost 83haiku: debug: /dev/sdb1 is not a BeFS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdb1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sdb1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sdc1
Apr  6 14:11:50 localhost 10freedos: debug: /dev/sdc1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sdc1
Apr  6 14:11:50 localhost 10qnx: debug: /dev/sdc1 is not a QNX4 partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sdc1
Apr  6 14:11:50 localhost macosx-prober: debug: /dev/sdc1 is not an HFS+ partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sdc1
Apr  6 14:11:50 localhost 20microsoft: debug: /dev/sdc1 is not a MS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sdc1
Apr  6 14:11:50 localhost 30utility: debug: /dev/sdc1 is not a FAT partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdc1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sdc1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sdc1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sdc1
Apr  6 14:11:50 localhost 83haiku: debug: /dev/sdc1 is not a BeFS partition: exiting
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdc1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sdc1
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/lvm-home
Apr  6 14:11:50 localhost 50mounted-tests: debug: /dev/mapper/lvm-home is a LUKS partition; skipping
Apr  6 14:11:50 localhost os-prober: debug: os detected by /usr/lib/os-probes/50mounted-tests
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/lvm-root
Apr  6 14:11:50 localhost 50mounted-tests: debug: /dev/mapper/lvm-root is a LUKS partition; skipping
Apr  6 14:11:50 localhost os-prober: debug: os detected by /usr/lib/os-probes/50mounted-tests
Apr  6 14:11:50 localhost os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/lvm-root--rt
Apr  6 14:11:50 localhost 50mounted-tests: debug: /dev/mapper/lvm-root--rt is a LUKS partition; skipping
Apr  6 14:11:50 localhost os-prober: debug: os detected by /usr/lib/os-probes/50mounted-tests

It looks like it runs the 90linux-distro script on mounted /dev/sda2 but still ignores it...

I could always edit /etc/grub.d/40_custom, I know, but I would like this tool to work.
Any hint?

Thanks!

Last edited by hermes (2012-04-06 12:21:05)


Linux Registered User #362737

Offline

Board footer

Powered by FluxBB