F24 error: can't find command 'linux'?
EDITED, second time to reflect new information the problem is caused by the 30_os_prober
script which is used by Anaconda in installation. It also happens each time the grub2-mkconfig
command is used in updating Grub.
EDITED, to reflect the real nature of the problem. The original post is listed below this edit. The real problem is the Anaconda is using the commands linux
and initrd
to start any OS other than Fedora 24. The correct command are linuxefi
and initrdefi
. Now that I have identified the real problem, maybe someone can help me fix this. Each time grub is updated, the error will occur again.
Original post starts here.
Fedora 24 fresh install - After installing Fedora 24 and updating Grub files with
> sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
None of my other OS's will boot correctly. If F24 bootloader is used only F24 boots, same CentOS. I have Ubuntu 16.04, and Mint Cinnamon installed. Ubuntu had always been my "GoTo" OS until I tried the latest versions of Fedora. I prefer Fedora to all other OS's.
My HDD is partioned with 8 partitions, as follows:
sda1 /boot/efi
sda2 Ubuntu 16.04
sda3 swap
sda4 Data ##(used for symlinks to Documents, Downloads, Music and PIctures folders for all OS's
sda5 Linux Mint Cinnamon
sda7 CentOS
sda8 Fedora 24
The only bootloader that works correctly is Ubuntu but it does not support quiet boot for other OS's Fedora and CentOS bootloaders will correctly boot only F24 or CentOS depending on which one created the bootloader.
When selecting other OS's the boot process stops with two error messages:
error: can't find command 'linux'
error: can't find command 'initrd'
After examining all of the grub2
config files, they appear to be identifying the HDD and Partitions correctly.
I have spent several hours scouring the Wiki pages on Grub2 and all of the supporting files: /etc/default/grub
and all files used to make grub.cfg
including 00_headers
,10_linux
, 30_os-prober_proxy
, 40_custom
and 41_custom
.
Obviously, I do not have a clue as to why this is happening. For now, I am using the Ubuntu bootloader, but I would like to do away with Ubuntu and Mint to free of those partitions to be used for additional storage.
Can anyone help with this issue?
`
@skytux would you have any thoughts on this problem?
Hi @jvegas! Well, I never used EFI before, so not too much experience here, but why is it using
linux
instead oflinuxefi
? I see you have an EFI partition...@skytux That's part of my dilemma. It appears that when
grub.cfg
is generated for any OS other than Fedora 24, Anaconda just assumes no EFI. At least that is what it looks like to me. I think it may be a bug, but was waiting for an answer from someone who knows way more about Grub2 and Anaconda than I do. Thanks for responding.I see... well, hope you find an answer asap, and sorry for not being able to help you more. Good luck!
@skytux Your question sparked and idea. The key was that Anaconda is assuming BIOS version commands. I got it to run, won't say how here, to avoid all the conversation over methodology, risks, etc. But, the next time I update the grub file with Fedora and Anaconda, it will produce the same error. Wonder if I should file a bug?