How do I dual boot Slackware 14.2 and Ubuntu 20.4?
When I was with lilo, I was already going straight to Slackware, but after I switched to Grub, when I click on Ubuntu, it appears: first load kernel.
|
It looks like your GRUB install went wrong. Can you boot your Slackware system from GRUB? If so, I would do that and reinstall LILO since it was working well for you. Then you can add Ubuntu to the LILO menu. It isn't difficult to do.
I wonder if you have fallen foul of the OS-prober script that comes with GRUB. I discovered some time ago, when I dual-booted Debian and Crux, that it plays up badly if it finds LILO configuration files on other partitions. |
which distro is controlling grub. slackware or ubuntu? which ever one it is post the /boot/grub/grub.cfg
|
"It sure would scare me to have two Linux distros alternately in control of ... I presume ... the same underlying system file-structure. What originally prompted you to do this?
|
Quote:
|
Quote:
|
Quote:
With EFI, for me to load Windows, I have to press F12 at boot and select Windows on a blue screen, if I don't click F12 it goes to Grub (when LILO, I went straight to Slackware) |
Aha! So it's an EFI native boot, not MBR. That should mean your LILO is actually ELILO. Now on your EFI partition, you should find a file in the EFI/Slackware directory called elilo.conf. It's a text file and you can edit it as root to add a new stanza for Ubuntu. But unlike GRUB, ELILO cannot read any filesystems except vfat, so it can only load kernels and initrds that are found on the EFI system partition.
What I would do in your position is: 1) Go to root and mount the ESP in its usual position on /boot/efi. 2) Copy over your Ubuntu kernel and initrd to somewhere on /boot/efi/EFI. You can create a Ubuntu folder if you like. 3) You will need an ELILO menu to allow you to choose between Slackware and Ubuntu. Put elilo.conf into your favorite editor and add the line Code:
chooser=textmenu Code:
image=/EFI/slack/vmlinuz-generic-5.4.25 |
Quote:
But, before trying everything you said, should I go back to lilo? Well now is the grub. If so, how do I get back to lilo? |
You'd have to use efibootmgr to make elilo the first choice, not grub. In any case, let's start by establishing which program you were actually using before you installed GRUB because there seems to be some confusion. Was it ELILO in EFI native mode or was it LILO in legacy mode?
|
Quote:
|
Quote:
|
Post the output of
lsblk -f |
Quote:
sda ├─sda1 ntfs EC90204790201B1A ├─sda2 vfat E61D-94F0 /boot/efi ├─sda3 ├─sda4 ntfs D6501AD2501AB8E7 ├─sda5 swap 880d0fc3-35c0-44a6-8db7-35588573a81d [SWAP] ├─sda6 ext4 c97facbc-9ed5-401c-9dcc-909dbca470f3 / ├─sda7 ext4 efed0885-54e8-48ab-8949-053d6cf6ef77 /home ├─sda8 ext4 3e5f18b1-3d9d-45b4-9f6a-17ca88e319e4 /usr ├─sda9 ext4 94f8b074-2746-459c-be2e-3569e07e0c93 ├─sda10 vfat FC57-D059 ├─sda11 vfat CCB7-E5F6 └─sda12 ext4 d8151bea-e18a-4ebc-a93d-7f8187e00e03 sr0 mmcblk0 └─mmcblk0p1 vfat 88B4-1905 I'm sorry, in the previous answer I said gpt11, but it is gpt12 where is Ubuntu 20.04 LTS.Still, grub says it doesn't recognize the gpt12 file system. |
Quote:
|
All times are GMT -5. The time now is 07:52 AM. |