[SOLVED] Slackware current installed does not boot on UEFI computer
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware current installed does not boot on UEFI computer
Hello!
I managed to install Slackware current on a dual boot computer with UEFI. The problem is that it goes straight into windows. I have to use the DVD iso and huge.s root=/dev/sda7 rdinit= ro in the initial prompt to boot linux.I have created a partition with gdisk and disabled UEFI to legacy and disabled secure boot. Lastly here is my partition table:
I suppose the answer to why does it go straight to Windows is 'why wouldn't it?'
It's a long time since I set up dual booting on my PC but at that time, nine years ago early days of EFI I found it quite challenging. There should be more help online now. You will need to set up a boot manager (my favoured one is reFINnd, but GRUB and eLILO are other possibilities) edit the comfiguration for that and get your BIOS to choose the boot manager as default.
Last time I did a dual boot on a single drive in legacy mode I found grub to be pretty easy to setup, so I'd probably use that since you've disabled UEFI.
I suppose the answer to why does it go straight to Windows is 'why wouldn't it?'
It's a long time since I set up dual booting on my PC but at that time, nine years ago early days of EFI I found it quite challenging. There should be more help online now. You will need to set up a boot manager (my favoured one is reFINnd, but GRUB and eLILO are other possibilities) edit the comfiguration for that and get your BIOS to choose the boot manager as default.
Is this correct? I guess you do not want 'legacy'; in my memory that allows for lilo booting; that's not what you aim to do..
That is correct, i just got confused, thanks for pointing out this. I forgot legacy was to allow lilo to boot. Years ago i did an install where i had to do just that, go figure...
However enabling CSM (legacy boot) does not disable UEFI boot. so that shouldn't be a problem while Secure Boot definitely can be a problem (not only for some Linux distros but even for Windows <read up on bitlocker>) . All you need do to boot Slackware in EFI mode, assuming you allowed eliloconfig to complete, is to enter BIOS/UEFI and adjust in the "Boot" section for default selection - OR - hit whatever keystroke gets you to Boot Order menu upon initial startup and select which you wish to boot. FWIW I always multiboot and like rEFInd as default which I have setup to display several Linux installs and old Windows as well, all on one bootloader.
your disk label is dos not gpt. A gpt type disk doesn't have an extended partition and there is no efi partition. Even though you have a uefi computer windows was installed in legacy mode. It would be better to have slackware boot in the same mode as windows, legacy mode. Boot into slackware install lilo. If for some reason your not able to install lilo because you booted in uefi mode, install grub with this
Once booted to slackware in legacy mode then if you prefer install lilo.
If you want to install slackware in uefi mode, the 100Mb partition will need to be formatted as fat32 and flagged as esp/efi, not sure if it needs to be on a primary partition or not.
Last edited by colorpurple21859; 04-23-2021 at 04:44 AM.
bash-5.1# mount | grep efi
/dev/sda1 on /boot/efi type vfat (rw)
Code:
bash-5.1$ ls
Boot Microsoft Slackware refind tools
bash-5.1$ pwd
/boot/efi/EFI
As you can see the efi partition is mounted and it has Microsoft folder, a Slackware folder (eliloconfig), and refind folder. If Windows is using efi then that partition already exists. It just needs elilo or grub installed on it via the Slackware folder.
My Slackware EFI folder contains.
Code:
/boot/efi/EFI/Slackware
bash-5.1# ls
elilo.conf elilo.efi initrd.gz vmlinuz
Install elilo once and just copy the new vmlinuz and initrd.gz into the folder after each kernel update.
I also recommend using UUID to identify your partitions in fstab and when creating a initrd.gz. A couple of years ago Windows 10 added partitions throwing the partition numbering off so this prevents a mess. Can find the UUID of your partitions with
Also Windows occasionally likes to set itself as the preferred bootloader. You can esc in bios and load refind and fix boot order with efibootmgr in Slackware with 0000 being whatever boot manager you want to use:
Code:
efibootmgr -o 0000
Last edited by RadicalDreamer; 04-22-2021 at 07:51 PM.
Just FTR it is possible and reasonable to convert MBR to GPT non-destructively and it's actually easier in Linux. I forget the actuall command syntax but I've done it a few times just refreshing memory with numerous sites such as this one --- https://www.explorelinux.com/convert...-gpt-on-linux/
your disk label is dos not gpt. A gpt type disk doesn't have an extended partition and there is no efi partition. Even though you have a uefi computer windows was installed in legacy mode. It would be better to have slackware boot in the same mode as windows, legacy mode. Boot into slackware install lilo. If for some reason your not able to install lilo because you booted in uefi mode, install grub with this
Once booted to slackware in legacy mode then if you prefer install lilo.
If you want to install slackware in uefi mode, the 100Mb partition will need to be formatted as fat32 and flagged as esp/efi, not sure if it needs to be on a primary partition or not.
It worked! After a fresh reinstall i chose lilo (elilo did not show up this time as in the previous install) and in legacy mode all worked out fine. Amazing response from you guys.
I know it's working to OPs satisfaction but just FTR, in order to get the prompt to skip lilo and go to elilo on Slackware Install one has to either have CSM disabled or hit the Boot Order key to select the UEFI entry for whatever device you have the installer on since it can boot several ways but will only offer elilo if it boots via UEFI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.