LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-14-2019, 09:06 AM   #1
poetgrant
LQ Newbie
 
Registered: Feb 2019
Distribution: Slackware 14.2
Posts: 24

Rep: Reputation: 12
UEFI Problems


I have been trying for months to get Slackware on my desktop computer, which uses a new-ish ASUS motherboard with an Intel chip. All I can really say is that I hate UEFI.

So here's the problem.

I found the install instructions from the Slack Docs site, which is quite limited at the moment. (I plan on adding my two cents to it if I ever figure this out) Those instructions simply say to skip LILO installation and use ELILO. Easy right? Well, not so much.

Let's back up. Yes, I did make a 100M EFI partition. Everything is according to the instructions I have gleaned from various sites. However, when I reboot after doing it the ELILO way, it boots to GRUB for some reason. Now, I don't have much knowledge of GRUB because other distros figures all that out for me and I have almost never had to interact with the GRUB BASH-like environment.

So! After failing to install almost every week for the past 6 weeks, trying different things each time, I am at my wit's end. I am about to install something like PureOS and just grit my teeth until something fries my computer and I can justify throwing it out.

If you can't tell, I am extremely frustrated.

Any help would be wonderful!
 
Old 08-14-2019, 09:18 AM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,266

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
was there another Linux system installed at one time and/or are there two efi partitions on this drive or is there more than one drive on this system? Post the output of
Code:
fdisk -l
and
Code:
ls /sys/firmware/efi

Last edited by colorpurple21859; 08-14-2019 at 09:20 AM.
 
Old 08-14-2019, 09:37 AM   #3
poetgrant
LQ Newbie
 
Registered: Feb 2019
Distribution: Slackware 14.2
Posts: 24

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by colorpurple21859 View Post
was there another Linux system installed at one time and/or are there two efi partitions on this drive or is there more than one drive on this system? Post the output of
Code:
fdisk -l
and
Code:
ls /sys/firmware/efi
Code:
fdisk -l
Code:
Device            Start         End           Sectors       Size    Type
/dev/nvme0n1p1    2048          206847        204800        100M    EFI System
/dev/nvme0n1p2    206848        990062591     989855744     472G    Linux filesystem
/dev/nvme0n1p3    990062592     1000215182    10152591      3.9G    Linux swap

Disk /dev/sda: 4.6 TiB, 5000981078016 bytes, 9767541168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/sdb: 7.6 GiB, 8166703104 bytes, 15950592 sectors
Unites: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5f274497

Device        Boot    Start        End         Sectors        Size    Id    Type
/dev/sdb1     *       0            5416959     5416960        2.6G    0     Empty
/dev/sdb2             2948         5827        2880           1.4M    ef    EFI (FAT-12/16/32)
Code:
ls /sys/firmware/efi
It cannot find /sys/firmware/efi

I am in the installation shell.
 
Old 08-14-2019, 09:50 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, KDE Neon, Arch, Fedora
Posts: 3,076

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
Also, check your UEFI firmware to see if legacy mode/compatibility support/CSM is enabled. If so, disable it (if you want UEFI to work like it's really supposed to). That feature allows the firmware to still boot from MBR (in theory), so if there IS something in the MBR, it will see it and attempt to boot it instead of the EFI System Partition, thus completely screwing up UEFI.
 
Old 08-14-2019, 09:54 AM   #5
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,144
Blog Entries: 9

Rep: Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670
If you don't like GRUB (and I don't like it either), why not install elilo, then uninstall GRUB? Afterwards you can use the eliloconfig script to set up your boot.
 
Old 08-14-2019, 10:04 AM   #6
poetgrant
LQ Newbie
 
Registered: Feb 2019
Distribution: Slackware 14.2
Posts: 24

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by hazel View Post
If you don't like GRUB (and I don't like it either), why not install elilo, then uninstall GRUB? Afterwards you can use the eliloconfig script to set up your boot.
I would love to just use ELILO. How do I get rid of GRUB? Do I do it before I restart after install?
 
Old 08-14-2019, 10:13 AM   #7
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,144
Blog Entries: 9

Rep: Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670Reputation: 1670
That depends on whether your GRUB actually gets you into Slackware or dumps you at a GRUB shell. And on whether you are in native UEFI mode or legacy/csm. GRUB will work in both systems if correctly installed for that system but elilo only works in native mode.

The first thing I would do is use the "magic key" to get into your UEFI at boot time and explore it. Find out what boot mode it is using.
 
Old 08-14-2019, 11:42 AM   #8
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: SLACKWARE 14.2 64bit
Posts: 232

Rep: Reputation: 52
Which motherboard have you got?
 
Old 08-14-2019, 01:16 PM   #9
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 35

Rep: Reputation: Disabled
Are you installing 14.2 or current? 14.2 does not support installing to NVMe.

Edit: This post (Didier Spaier) has a solution that worked for me on a new Dell. (if you are trying to install 14.2).

Last edited by SpacePlod; 08-14-2019 at 01:22 PM.
 
Old 08-14-2019, 02:03 PM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,315

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
@ poetgrant - I know that sooner or later I will be forced into dealing with UEFI but, like you, my attempts to learn it now have been extremely frustrating and I hate it, too. In my case my solution is to go Legacy Mode (CSM) and just use good ol' LILO on my main Slackware install of 14.2. Then I have another partition on this machine with Current as well as a testbed separate PC to workout the whole UEFI thing among a few other issues that are in flux.

Is there some reason you desire or are forced to use UEFI mode right now on this box?
 
Old 08-14-2019, 02:24 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 8,917

Rep: Reputation: Disabled
As SpacePlod alluded, the genuine Slackware installer version 14.2 doesn't handle NVMe devices.
 
Old 08-14-2019, 02:39 PM   #12
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-current
Posts: 66

Rep: Reputation: 49
You have to get the installer to recognize your EFI partition and make it prompt you to skip LILO and install ELILO, if it doesnt something is wrong.

There are a few BIOS settings like fast boot, secure boot, legacy vs uefi boot and the way you partition your drive.

You can make the slackware installation disk recognize your nVME drive's if you have those either with patching or using slacklive usb, if you have that I can give you a link to the patches if you want to.
 
Old 08-14-2019, 02:49 PM   #13
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,266

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Did you use 32 or 64 bit iso? For efi mode need to use 64bit iso.
 
Old 08-14-2019, 03:06 PM   #14
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 555

Rep: Reputation: 150Reputation: 150
No need to hate uefi. It's only not so straightforward to get it all right;
Quote:
It cannot find /sys/firmware/efi
is an indicator that something is not properly set up.

Apart from the mentioned requirements (1. Efi partition? 2. correctly formatted?; -and mounted in fstab as /boot/efi?- 3. nvme-hack as developed by Didier Spanier mentioned above; 4. the turning off of anything 'legacy boot' in the 'bios' as well as 'secure boot') did you set the nvme card (with gdisk) to 5. a GPT type partition table ('with protective MBR')?

Did your 'fdisk -l' output mention "Disklabel type: gpt" in the blurb before the partition table you showed us?

Last edited by brobr; 08-14-2019 at 03:10 PM.
 
Old 08-14-2019, 04:40 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,363

Rep: Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720Reputation: 1720
Chicken and the egg.

You have to boot via UEFI for the /sys/firmware/efi directory to show up. I did that by using the 14.2 install DVD with the motherboard set to boot via UEFI; you'll pretty much act as if your boot was fouled up and you are performing an emergency boot with the installation DVD.
 
  


Reply

Tags
asus, elilo, grub 2, lilo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't get dual boot, win 7 uefi and elementary freya os uefi working shywolf Linux - Newbie 4 12-10-2015 06:14 PM
how to install linux mint side by side windows into an uefi machine without uefi partition valgalsan Linux - Newbie 2 11-03-2015 12:25 PM
Can't install LM 32bit with UEFI disabled on UEFI Asus X200MA laptop dblaisde Linux Mint 3 10-15-2015 05:37 AM
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 12:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration