Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
Just got a new work laptop. Acer Aspire E15. I've turned off secure boot and have managed to add an elilo entry to the boot menu using the settings within the UEFI.
One very frustrating thing about this laptop is that it will not boot from USB or CD, no matter what boot order is set.
Another frustrating thing is that any changes made using efibootmgr do not survive a reboot.
Well, I figured out a solution to problem #1... The drive you want to boot off has to have an EFI system partition. I made one on my usb stick and now it automatically appears in the boot menu.
Another frustrating thing is that any changes made using efibootmgr do not survive a reboot.
Try create from the first block of the booted disk an EFI Partition. Usually about 200Mb in size formatted to FAT16 or FAT32. Actually it only house some volume records needed when the bootloader points to the disk.
Compliant UEFI firmware should find and allow you to boot an EFI image on a removable media, but only if located in a an EFI System Partition on that media.
Such a partition including an EFI image is provided a Slackware64-14.1 ISO but not in a Slackware-14.1 ISO.
The firmware (BIOS) scans for an EF00 GUID partition code and will create a new NVRAM entry for each device that contains such a partition.
In this case the firmware is UEFI not BIOS. And the spec actually says about removable devices:
Quote:
If FilePathList[0] points to a device that supports the EFI_SIMPLE_FILE_SYSTEM_PROTOCOL, then the system firmware will attempt to boot from a removable media FilePathList[0] by adding a default file name in the form \EFI\BOOT\BOOT{machine type short-name}.EFI. Where machine type short-name defines a PE32+ image format architecture.
It is nowhere specified AFAIK that the firmware should create NVRAM entries, just where it should look for images in the PE32+ format that could be used to boot an OS, and the format of the NVRAM variables
It is up to the firmware designer to decide how the user can interact with it to create entries in its boot menu, that can also be done by software like efibotmgr.
Also, do not forget that not all firmwares (if any) are fully compliant with some version of the specification, and generally the target version is not even known of the user
Last edited by Didier Spaier; 07-31-2015 at 04:25 PM.
Another frustrating thing is that any changes made using efibootmgr do not survive a reboot.
Try create from the first block of the booted disk an EFI Partition. Usually about 200Mb in size formatted to FAT16 or FAT32. Actually it only house some volume records needed when the bootloader points to the disk.
Hope that helps.
Thanks for your reply. As I mentioned in post #2, I figured out how to boot from USB.
Perhaps I should mention that this machine came pre-installed with W8, which I need for work (the industry-specific software I use for work only runs on Windows), so it already has an EFI system partition on the hard drive.
I've installed Slackware and been able to add it to the boot menu using some trickery in the UEFI. Basically, I had to re-enable secure boot, then add elilo as a "trusted" efi file. Then I disabled secure boot again, and elilo appeared in the boot menu.
The big problem I've found is that boot entries which are added with efibootmgr do not survive a reboot. Changes made to the boot order with efibootmgr do not survive a reboot either. How can I fix this?
Also, do not forget that not all firmwares (if any) are fully compliant with some version of the specification, and generally the target version is not even known of the user
That's the scary part. I read last night that as of W10, Microsoft is no longer requiring that users have the ability to turn off secure boot.
The big problem I've found is that boot entries which are added with efibootmgr do not survive a reboot. Changes made to the boot order with efibootmgr do not survive a reboot either. How can I fix this?
If you use the -n option in the efibootmgr command you specify that the boot entry given as argument be taken, but only on next boot. Is that what you mean by Changes made to the boot order with efibootmgr do not survive a reboot?
Anyhow posting the full command you used could help to investigate, and would allow to try to reproduce this behavior.
If you use the -n option in the efibootmgr command you specify that the boot entry given as argument be taken, but only on next boot. Is that what you mean by Changes made to the boot order with efibootmgr do not survive a reboot?
No. I mean that any settings changed with efibootmgr do not persist. I'm not using the -n switch.
could be a bug in efibootmgr itself or in efivars.
I did a little experiment, changing the boot order within the UEFI, and it worked.
So, using the same trick I used to add elilo, I added rEFInd (in it's own subdir, not touching anything else) and then put it first in the boot order... and now that's the end of my booting troubles on this laptop. rEFInd can boot it from CD, USB or any ".efi" file on the EFI partition.
I'm not sure why efibootmgr doesn't work properly on this one, but thanks for all of your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.