LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2014, 11:37 AM   #1
Richy_T
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Rep: Reputation: Disabled
Lost UEFI boot entry.


So I managed to get 14.1 installed on a UEFI box using LVM. So far so good. Not had a lot of time to get to it so the other day, I uninstalled sendmail, powered off and unplugged the SATA drive.

Today I tried to boot but forgot to plug in the drive. No biggie. Power off, replug and boot, right? But I start getting errors about rebooting and selecting proper boot device.

Investigation reveals that the drive is good, partitions appear to be good. Eventually I conclude that apparently the bios is supposed to keep boot entries and apparently mine has become lost.

From what I have read so far, efibootmgr can install one. But that is not anywhere I can see when I boot from the DVD. Does Slackware use something else or do I have to mount my partitions? Apparently some bioses, this can be done with a bcfg command but my uefi shell does not have this command.

I guess another important question is whether this can be prevented from happening again? It seems dumb to throw away config information simply because a drive was unplugged. This was a FM2-A55M-E33 motherboard if that helps.

I'll be updating this thread as I work out what's going on but helpful information provided would be much appreciated.
 
Old 02-07-2014, 11:56 AM   #2
Richy_T
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Hmm. Tried using efibootmgr from a mounted partition and no go. It looks like efibootmgr can only be used from a UEFI boot which booting from the DVD is not. So how does Slackware do it?
 
Old 02-07-2014, 12:43 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I have a gigabyte board that does this kind of stuff, which is annoying. Here's what I did to prevent such issues. There is a default boot location at '/EFI/boot/bootx64.efi' (/boot/efi/EFI/boot/bootx64.efi). Slackware installs elilo.efi to '/EFI/Slackware/elilo.efi' (/boot/efi/EFI/Slackware/elilo.efi). So you could just copy or move the 'Slackware' directory to 'boot' and rename 'elilo.efi' to 'bootx64.efi' and it should be able to boot without any registered boot options.

Also see:
http://docs.slackware.com/howtos:sla...uefi_and_elilo
 
Old 02-07-2014, 12:48 PM   #4
Richy_T
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
So eventually I have found my way to /mnt/usr/sbin/eliloconfig which apparently *does* use efibootmgr. So the question becomes, how to use that from a boot without getting that modprobe message. ???

At this stage, I have done a full reinstall but I will not feel safe moving forward unless I know for sure I can reinsert this UEFI entry.

I am thinking this option might be depending on whether the USB CD drive is started in UEFI or legacy mode. I will have to play with things.

Last edited by Richy_T; 02-07-2014 at 01:19 PM.
 
Old 02-08-2014, 07:04 PM   #5
Richy_T
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Also thinking that when the Slackware installer suggested skipping LILO, I should have gone ahead and installed it anyway as the motherboard supports both UEFI and legacy booting.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Grub2 and Boot Strange Boot Issues zombieno7 Linux - General 1 03-21-2013 01:09 PM
LXer: Now You Can Boot Any Linux Distro On UEFI Secure Boot PCs LXer Syndicated Linux News 2 12-16-2012 06:47 AM
UEFI boot Zimo Linux - Laptop and Netbook 13 10-03-2012 12:57 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration