You are not logged in.

#1 2012-12-27 22:45:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

GRUB and os-prober to detect another linux distro [SOLVED]

I installed os-prober alongside of grub-bios but do not understand why it won't find and create an entry for another Arch install mounted up to /mnt/otherarch

% sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
done

I'd like to boot to the alternative Arch install (on /dev/sda5) so I can run `e2fsck -cc /dev/sda3` which is the partition on which my main install resides.  Thanks!

% ls -l /mnt/otherarch/boot 
total 18580
-rw-r--r-- 1 root root 12816472 Dec 27 17:35 initramfs-linux-fallback.img
-rw-r--r-- 1 root root  2859919 Dec 27 17:35 initramfs-linux.img
-rw-r--r-- 1 root root  3340096 Dec 11 04:28 vmlinuz-linux

EDIT: I manually edited /etc/grub/40_custom to do this but isn't that what os-prober is supposed to do?

Last edited by graysky (2012-12-27 23:55:05)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-12-27 23:03:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: GRUB and os-prober to detect another linux distro [SOLVED]

Last I read about this, os-prober was very bad at detecting Arch installations at all. I've no idea why, though.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-12-27 23:54:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: GRUB and os-prober to detect another linux distro [SOLVED]

Very odd... after a reboot, it started working!

% sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found Arch on /dev/sda5
done

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-12-28 00:16:30

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: GRUB and os-prober to detect another linux distro [SOLVED]

cfr wrote:

Last I read about this, os-prober was very bad at detecting Arch installations at all. I've no idea why, though.

Short answer, because os-prober is a Debian thing, not an Arch thing.

Longer answer: https://bbs.archlinux.org/viewtopic.php?id=145875


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#5 2012-12-28 00:21:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: GRUB and os-prober to detect another linux distro [SOLVED]

graysky wrote:

Very odd... after a reboot, it started working!

% sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found Arch on /dev/sda5
done

You mean you deleted the stuff in 40_custom and it still worked?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-12-28 00:53:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: GRUB and os-prober to detect another linux distro [SOLVED]

Yes.. Inspect the output in the code tags carefully.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2012-12-28 02:25:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: GRUB and os-prober to detect another linux distro [SOLVED]

It is a very long time since I ran grub-mkconfig on Arch (and I think Fedora gives different output) so I don't know whether that might not be part of your 40_custom or not. That was all.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2012-12-28 02:40:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: GRUB and os-prober to detect another linux distro [SOLVED]

It's not,  I commented out the lines I added.  Again, inspect the output I posted in the code tags.  You'll see that the they differ after the reboot.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2012-12-28 02:43:46

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: GRUB and os-prober to detect another linux distro [SOLVED]

graysky wrote:

It's not,  I commented out the lines I added.  Again, inspect the output I posted in the code tags.  You'll see that the they differ after the reboot.

You mean it didn't output anything when it found it using 40_custom? So what you posted originally was even with 40_custom?

Clearly being very dense here. Not that I'm sure it matters, especially smile.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-12-28 10:47:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: GRUB and os-prober to detect another linux distro [SOLVED]

cfr wrote:

You mean it didn't output anything when it found it using 40_custom? So what you posted originally was even with 40_custom?

Yes and yes.

...why would anything in 40_custom affect the output?  Look at the code for os-prober.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB