[SOLVED] Problems booting Slackware 14.1 fresh install with UEFI
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Problems booting Slackware 14.1 fresh install with UEFI
So I managed to get an installed Slackware64 14.1 system installed today, but I have some problems wiht regards to UEFI that I'd like help resolving.
First off, I had to make a USB stick with the Slackware tree, using the included usbimg2disk.sh script available within the Slackware tree. However, I wasn't able to boot this install media using UEFI for some reason, but I booted it using the BIOS emulation on my motherboard (I think... the two options I had were "UEFI: Kingston..." and "USB: Kingston..."; the UEFI didn't work but the USB one did). So I got everything set up, the installer correctly detected and mounted my EFI system partition, and packages were installed. I made the USB boot disk as recommended. LILO comes up for installation, but there's nothing on it about "not being recommended" as is suggested in README_UEFI.TXT and I never got a menu prompt for ELILO or GRUB2 or anything after skiping the normal LILO install.
So, my install is completed and the USB boot disk does work using UEFI boot, so I can get into my Slackware install and as far as I can tell, everything works fine. So how go about installing GRUB2 or ELILO to the EFI system partition so I can dual boot Slackware and Windows? And is the usbimg2disk.sh actually intended to make a UEFI bootable USB disk?
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
The installer proposes to run ELILO only if it finds an EFI firmware. As that was not the case it proposed you to run LILO instead, even though you had an EFI partition. This is not caused by using usbimg2disk.sh as the installer it puts on the USB stick is exactly the same as if you make an USB stick with 'dd' or use an installer on CD/DVD . Only difference between CD/DVD and USB installation in case of EFI firmware is that GRUB is used to boot the installer if CD/DVD media is used, elilo if USB (unless you make an hybrid installer with the DVD ISO image, then grub will be used even if you burn the ISO image on an USB stick :-)
Last edited by Didier Spaier; 11-16-2013 at 04:33 PM.
So I did a quick reinstall and it seems that the EFI firmware isn't there when I boot from USB, which I assumed is because I'm not booting the USB using UEFI (because the UEFI boot on it doesn't work for some reason). So I have to figure out what's wrong with my USB media, because the USB boot disk made during the install works fine in UEFI mode, and I have UEFI firmware when I boot my Slackware install from it.
Anyways, I did manage to get grub installed using the directions from Arch Linux. And I'm keeping all of my grub files within /boot/grub/ rather than on the EFI partition. I looked at this section to create a Windows entry, but I get an error saying that -hint-bios=hd1,gpt2 is not correct and /EFI/Microsoft/Boot/efibootmgfw.egi can't be found, which confuses me a little. hd1 = sdb, which is the disk I'm using for my install of both OS's, and gpt2 = sdb2 (second partition on disk) which is the EFI partition (though as I typing this, I'm wondering if the gpt numbering starts at 0 like the hd numbering... because if it does then I have to fix it).
As it's late where I am, I'm going to continue working on it tomorrow. I am going to attempt to install all of the grub files to the EFI partition instead of just /boot/grub/ and see if it makes a difference, along with that numbering change I mentioned earlier.
Ah, I will definitely keep this in mind in the future. I was a little curious that usbimg2disk.sh didn't write the EFI directory to the root of the drive because I thought it was nessecary... turns out I was right.
In the meantime, I deleted all the grub stuff I had in /boot and /boot/efi/EFI and did a grub-install to the EFI partition directly instead of /boot, and it worked! Slackware boots, Windows boots (it still complains that one of my hint lines are wrong, but at least it still boots Windows). Now I'm running into other problems though. When I boot Windows and restart, it automatically boots Windows again and it won't boot GRUB2 from the UEFI boot menu. The only way I can get back to GRUB is to entry to UEFI setup and change the boot order for GRUB to be first. Unless there's a known issue with Windows severely screwing with the UEFI setup when it does it's thing, I beleive it's my motherboard not implementing UEFI correctly (as I had this exact problem when using Arch Linux and EFISTUB).
Anyways, I'm going to try what you said to make a UEFI bootable USB stick and probably do a reinstall, encrpyting the partition this time. Thanks for the help!
I'll be quite impressed if this works out for me. I killed a good chunk of a weekend a couple months back working on the exact same problem with Arch Linux and figured it was my motherboard being screwy.
@jtsn: It worked, and I couldn't be happier! I'll definitely be saving this in my box of tricks.
@Didier Spaier: Apparently you can't create symlinks on vfat filesystems. Editing lilo.conf also didn't work out for me. However, I figured if the directory struture was the same, except for it all being in /syslinux (since UEFI can't find the EFI folder in there), it would work. So I copied the entire contents of /syslinux to the root of the flash drive and the EFI boot now works properly! So thanks for pointing me in the right direction, I wouldn't have been able to figure it out otherwise.
Now that I'm confident that I have this whole EFI dual-boot-with-Windows thing figured out, time to reinstall to and encrpyted LVM. But I've done that before, so how bad can it be...