You are not logged in.

#1 2021-12-03 07:35:53

Breizh29
Member
Registered: 2021-08-04
Posts: 68

GRUB does not detect another OS [SOLVED]

Hello,

I just installed arch next to fedora on a laptop.
I first deleted the efi partition from fedora and created a new one when installing arch. I was thinking (maybe stupidly) that fedora would be recognized by the arch grub.
Unfortunately it is not.
Would there be a solution so that I can do an arch/fedora dualboot?

[armand@arch-laptop-armand ~]$ lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
sda      8:0    0 931.5G  0 disk  
|-sda1   8:1    0   600M  0 part /boot 
|-sda2   8:2    0     1G  0 part  
|-sda3   8:3    0   100G  0 part /fedora 
|-sda4   8:4    0     4G  0 part [SWAP] 
`-sda5   8:5    0   200G  0 part / 

fedora is on partition sda3, arch on partition sda5, efi partition is sda1

[armand@arch-laptop-armand ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg 
Generating grub configuration file ... 
Found linux image: /boot/vmlinuz-linux 
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img 
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img 
Warning: os-prober will be executed to detect other bootable partitions. 
Its output will be used to detect bootable binaries on them and create new boot entries. 
Adding boot menu entry for UEFI Firmware Settings ... 
done 
[armand@arch-laptop-armand ~]$ 
[armand@arch-laptop-armand ~]$ journalctl -f
Dec 03 13:37:42 arch-laptop-armand audit[2981]: USER_AUTH pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock ac
ct="armand" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'                                                                                
Dec 03 13:37:42 arch-laptop-armand kernel: kauditd_printk_skb: 12 callbacks suppressed                                                                               
Dec 03 13:37:42 arch-laptop-armand kernel: audit: type=1100 audit(1638513462.288:188): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_faillo
ck,pam_permit,pam_faillock acct="armand" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:42 arch-laptop-armand kernel: audit: type=1101 audit(1638513462.288:189): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_p
ermit,pam_time acct="armand" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:42 arch-laptop-armand kernel: audit: type=1110 audit(1638513462.288:190): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_
permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:42 arch-laptop-armand kernel: audit: type=1105 audit(1638513462.288:191): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,p
am_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:42 arch-laptop-armand audit[2981]: USER_ACCT pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="armand" 
exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'          
Dec 03 13:37:42 arch-laptop-armand audit[2981]: CRED_REFR pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="roo
t" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'       
Dec 03 13:37:42 arch-laptop-armand audit[2981]: USER_START pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="roo
t" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'       
Dec 03 13:37:42 arch-laptop-armand dbus-daemon[392]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' re
quested by ':1.78' (uid=0 pid=2981 comm="sudo grub-mkconfig -o /boot/grub/grub.cfg ") 
Dec 03 13:37:42 arch-laptop-armand dbus-daemon[392]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.ho
me1.service not found. 
Dec 03 13:37:42 arch-laptop-armand sudo[2981]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.    
Dec 03 13:37:42 arch-laptop-armand sudo[2981]:   armand : TTY=pts/1 ; PWD=/home/armand ; USER=root ; COMMAND=/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg 
Dec 03 13:37:42 arch-laptop-armand sudo[2981]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000) 
Dec 03 13:37:46 arch-laptop-armand os-prober[3681]: debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 05efi[3683]: debug: /dev/sda1 is a FAT32 partition 
Dec 03 13:37:46 arch-laptop-armand 05efi[3691]: debug: /dev/sda1 partition scheme is gpt 
Dec 03 13:37:46 arch-laptop-armand 05efi[3692]: debug: /dev/sda1 partition type is c12a7328-f81f-11d2-ba4b-00a0c93ec93b 
Dec 03 13:37:46 arch-laptop-armand 05efi[3696]: debug: running subtest /usr/lib/os-probes/mounted/efi/10elilo 
Dec 03 13:37:46 arch-laptop-armand 05efi[3699]: debug: running subtest /usr/lib/os-probes/mounted/efi/20microsoft 
Dec 03 13:37:46 arch-laptop-armand os-prober[3704]: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 10freedos[3706]: debug: /dev/sda1 is a FAT32 partition 
Dec 03 13:37:46 arch-laptop-armand os-prober[3709]: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 10qnx[3711]: debug: /dev/sda1 is not a QNX4 partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3712]: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand macosx-prober[3714]: debug: /dev/sda1 is not an HFS+ partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3715]: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 20microsoft[3717]: debug: Skipping legacy bootloaders on UEFI system 
Dec 03 13:37:46 arch-laptop-armand os-prober[3718]: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 30utility[3720]: debug: /dev/sda1 is a FAT32 partition 
Dec 03 13:37:46 arch-laptop-armand os-prober[3725]: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand os-prober[3727]: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand os-prober[3729]: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand os-prober[3731]: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand 83haiku[3733]: debug: /dev/sda1 is not a BeFS partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3734]: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand os-prober[3739]: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda1 
Dec 03 13:37:46 arch-laptop-armand os-prober[3745]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda2 
Dec 03 13:37:46 arch-laptop-armand os-prober[3769]: debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 05efi[3771]: debug: /dev/sda3 is btrfs partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3772]: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 10freedos[3774]: debug: /dev/sda3 is not a FAT partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3775]: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 10qnx[3777]: debug: /dev/sda3 is not a QNX4 partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3778]: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand macosx-prober[3780]: debug: /dev/sda3 is not an HFS+ partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3781]: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 20microsoft[3783]: debug: Skipping legacy bootloaders on UEFI system 
Dec 03 13:37:46 arch-laptop-armand os-prober[3784]: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 30utility[3786]: debug: /dev/sda3 is not a FAT partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3787]: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand os-prober[3789]: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand os-prober[3791]: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand os-prober[3793]: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand 83haiku[3795]: debug: /dev/sda3 is not a BeFS partition: exiting 
Dec 03 13:37:46 arch-laptop-armand os-prober[3796]: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand os-prober[3801]: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sda3 
Dec 03 13:37:46 arch-laptop-armand os-prober[3806]: debug: /dev/sda4: is active swap 
Dec 03 13:37:46 arch-laptop-armand sudo[2981]: pam_unix(sudo:session): session closed for user root 
Dec 03 13:37:46 arch-laptop-armand audit[2981]: USER_END pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root
" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'        
Dec 03 13:37:46 arch-laptop-armand audit[2981]: CRED_DISP pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="roo
t" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'       
Dec 03 13:37:46 arch-laptop-armand kernel: audit: type=1106 audit(1638513466.578:192): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,
pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:46 arch-laptop-armand kernel: audit: type=1104 audit(1638513466.578:193): pid=2981 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_
permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' 
Dec 03 13:37:55 arch-laptop-armand plasmashell[567]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:15:1: QML Panel: Binding loop dete
cted for property "state"                                                                                                                                              

Last edited by Breizh29 (2021-12-21 11:59:05)

Offline

#2 2021-12-03 07:45:47

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: GRUB does not detect another OS [SOLVED]

I first deleted the efi partition from fedora

When you did this, the bootloader files for fedora went with it.
I would think the way is to boot a fedora live disk and regenerate the fedora bootloader files from there into the shared arch/fedora efi partition.
A quick search gave me this: https://www.hyperborea.org/journal/2021/01/fix-uefi/

Last edited by d_fajardo (2021-12-03 07:46:58)

Offline

#3 2021-12-04 05:43:28

Breizh29
Member
Registered: 2021-08-04
Posts: 68

Re: GRUB does not detect another OS [SOLVED]

I removed fedora from the machine. So I no longer have this problem.

But I believe that a fedora/arch dual boot in UEFI mode is not obvious.
See all unanswered questions on the internet.

Offline

#4 2021-12-04 08:16:46

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: GRUB does not detect another OS [SOLVED]

But I believe that a fedora/arch dual boot in UEFI mode is not obvious.

Yes it's probably not obvious. It's best to understand UEFI and the role of the EFI partition.
https://wiki.archlinux.org/title/Unifie … _Interface
https://wiki.archlinux.org/title/EFI_system_partition

Offline

#5 2021-12-04 10:03:06

Breizh29
Member
Registered: 2021-08-04
Posts: 68

Re: GRUB does not detect another OS [SOLVED]

d_fajardo wrote:

But I believe that a fedora/arch dual boot in UEFI mode is not obvious.

Yes it's probably not obvious. It's best to understand UEFI and the role of the EFI partition.
https://wiki.archlinux.org/title/Unifie … _Interface
https://wiki.archlinux.org/title/EFI_system_partition

Thanks for answer.

Offline

#6 2021-12-05 03:11:02

linux411
Member
From: Batavia, NY, USA
Registered: 2011-01-22
Posts: 14

Re: GRUB does not detect another OS [SOLVED]

Boot your live USB. When you get to where you arch-chroot into your new system, make sure os-prober is installed. If not, run 'pacman -S os-prober'. Edit the file in /etc/default named 'grub'. Add 'GRUB_DISABLE_OS_PROBER=false' anywhere in the script. Run grub install, 'grub-install --target=x86_64-efi --bootloader-id=ARCHLINUX --efi-directory=/boot/efi'  (make sure you mount your efi partition in the new system you chrooted into. In the previous example, I have my FAT32 bootable partition mount to /boot/efi) and grub-mkconfig, 'grub-mkconfig -o /boot/grub/grub.cfg'. Any bootable distro installed should show up on your boot options after reboot.

Offline

#7 2021-12-11 08:12:46

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 104

Re: GRUB does not detect another OS [SOLVED]

Just chiming in...the GRUB os probing functionality was recently disabled under Debian Unstable because the functionality supposedly opens you up to potential security issues; something to do with secure boot. I don't use secure boot, so I'm not that worried.  Additionally, the GRUB os prober still functions under Debian Stable (Bullseye), so it must not be that bad of a security issue.

@linux411...love the username.

Last edited by walkingstickfan (2021-12-11 08:13:55)


Arch Linux with Openbox & Tint2

Offline

#8 2021-12-21 11:58:22

Breizh29
Member
Registered: 2021-08-04
Posts: 68

Re: GRUB does not detect another OS [SOLVED]

Hi,

I managed to install arch in dual boot with fedora. My mistake was stupid: I forgot to mount the fedora partition when installing arch. After correction I now have in arch grub the entries for arch and fedora. The launch of the 2 distributions is executed correctly.

I close...

Offline

Board footer

Powered by FluxBB