LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-22-2020, 03:45 PM   #16
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled

Quote:
Originally Posted by quickbreakfast View Post
So I suggest you open parted and ensure the boot flag is where it should be.
This doesn't apply to EFI booting.
 
Old 06-22-2020, 04:29 PM   #17
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
This doesn't apply to EFI booting.
I would not know about whether EFI does not require a boot flag.

All I know is that my system requires an EFI partition, yet, apparently Slackware 14.2, ignores the EFI partition. So until I put a boot flag in place my system would not boot without the assistance of a usb.

I put the suggestion there because I figured it is worth trying.
 
Old 06-22-2020, 05:17 PM   #18
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Since I have been recently playing rather hard with learning both EFI boot and SSDs and in fact have the 1TB version of the superb EVO drive I have some questions and observations that may help you.

How is your EVO physically attached to your motherboard? Does your Motherboard have an .M2 slot or are you using a sled? If you're using a sled are you connecting via PCIe or through SATA?

The above questions can have crucial answers especially in my experience with sleds but to not waste time I'll ask the last question even though it may depend on those of the first set.

If your OpSys install is completely new did you boot the install media via UEFI? or from MBR? They will boot both ways and things go MUCH better and way simpler if you boot the installer in EFI mode. I suspect you didn't do this or you would have seen the elilo option and not installed MBR era LILO. You might consider reinstalling via EFI boot selected from your BIOS/UEFI Boot Order Menu.
 
Old 06-22-2020, 05:17 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by quickbreakfast View Post
I would not know about whether EFI does not require a boot flag.

All I know is that my system requires an EFI partition, yet, apparently Slackware 14.2, ignores the EFI partition. So until I put a boot flag in place my system would not boot without the assistance of a usb.

I put the suggestion there because I figured it is worth trying.
You system is not the OP's system. What you did looks like a workaround because you didn't succeed booting in EFI mode, so probably you use LILO instead of eLILO to boot. But the OP wants to boot in EFI mode. As an aside even when using lilo, a boot flag on the root partition is only needed if you install LILO on the root partition, not on the MBR.

In EFI mode you install the OS loader in an EFI system partition, that does not need a boot flag and using it won't help.

Last edited by Didier Spaier; 06-23-2020 at 01:09 AM.
 
Old 06-22-2020, 06:12 PM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
try this again
Code:
gdisk /dev/nvme0n1
for any warning messages, then q to quit.

As has already been suggested, you may have to use grub as the bootloader.

Last edited by colorpurple21859; 06-22-2020 at 07:37 PM.
 
Old 06-23-2020, 06:23 AM   #21
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I have a look at web page of laptop provider. I am litlle terrified. I am sorry to say this but I would never buy their laptops. What essentially is systemd-boot? Here on this picture https://support.system76.com/articles/pop-recovery/? Does it kind of supervisor over common EFI boot? I feel completely ignorant here. Do you still have recovery partition? So how many boot stages are there?

Edit: Let me be clear. Hardware of laptop is beyond my dreams. But I see this there is level of complexity which makes life not easy.

Last edited by igadoter; 06-23-2020 at 06:48 AM.
 
Old 06-23-2020, 06:43 AM   #22
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by igadoter View Post
I have a look at web page of laptop provider. I am litlle terrified. I am sorry to say this but I would never buy their laptops. What essentially is systemd-boot? Here on this picture https://support.system76.com/articles/pop-recovery/? Does it kind of supervisor over common EFI boot? I feel completely ignorant here. Do you still have recovery partition? So how many boot stages are there?
Did you actually read the information on that web site?
Systemd-boot is a EFI boot manager, part of systemd but can be used standalone. A recovery partition is exactly what is being discussed there. What is a "common EFI boot" in your idea?
 
Old 06-23-2020, 07:01 AM   #23
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by Alien Bob View Post
Did you actually read the information on that web site?
Systemd-boot is a EFI boot manager, part of systemd but can be used standalone. A recovery partition is exactly what is being discussed there. What is a "common EFI boot" in your idea?
My point is how these two things systemd-boot and elilo can coexist? I have no idea what is common EFI boot. If I have choice I always go with standard partition table and lilo code put into MBR. Where is systemd-boot placed on? Does it piece of code loaded somehow from somewhere? If it is where is this somewhere? Kind of ROM attached to motherboard?

Last edited by igadoter; 06-23-2020 at 07:04 AM.
 
Old 06-23-2020, 08:49 AM   #24
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
There are some notes regarding the open-source UEFI implementations and CoreBoot, which is used on the laptop owned by OP.

Disclaimer: those information are just from my own and my friends experiences, then may or may be not correct.

So, the CoreBoot is an open-source "BIOS" which uses some blobs for initializing the low level hardware and "payloads" for frontends - aka bootloaders. There are tons of CoreBoot payloads, but usually are used one of those two:

SeaBIOS : which is like the BIOS - the one from QEMU, it is 32bit only and can boot 32bit and 64bit OSes, but does NOT support NVME drives.

TianCore : which is an open-source EFI implementation, and it is like the EFI support from VirtualBox, it have also a variant named UEFI DUET which I use to make some of my BIOS-only motherboards to have UEFI support. It have support also for NVME drives as any proprietary EFI. It can be 32bit or 64bit, BUT the 64bit builds has no CSM, then it can boot only 64bit EFI capable operating systems.

This TianCore (or UEFI DUET) is really picky about the setup of system/boot EFI partitions. They must have the FAT32 filesystem and the hidden sectors setup accordingly. Believe or not, likely the FAT16 partitions will generate strange issues.

When it is used a MSDOS label, the system/boot EFI partition must be of type EF and to be formatted with a command like:
Code:
mkdosfs -h 2048 -F32 -L ESP /dev/sda1
The "hidden sectors" value must be equal with the beginning/first sector of partition - in my example it is first partition and starts at sector 2048 . Of course, also the device should be customized as is the case.

A good size for this the system/boot partition is 512MB or 1GB.

Depending on the particular build this TianCore (and specialy UEFI DUET) may have issues with the EFI vars and specially with the boot variables - both at writing and reading.

Then, the fancy locations like those setup by the Slackware Setup: /EFI/Boot/Slackware/elilo.efi will likely NOT work, and the proper solution is to use the default boot location: /EFI/Boot/Bootx64.efi, then you can copy the elilo.efi and its config file to /EFI/Boot then rename elilo.efi as Bootx64.efi - even better (and prefered by me) is to put in this default location a boot manager like rEFInd, because you can load custom EFI drivers and detect on-fly new EFI boot devices like the plugged-in USB 3.0 hard drives.

I hope that those notes will help, considering that I managed to properly boot even Windows 10 from a NVME drive mounted in an adapter put in the PCIE x16 slot from a BIOS-only motherboard.

However, from my own experiences, booting from TianCore (or UEFI DUET) is not as simple as it looks - and I do not even started about how to setup the BIOS bootloaders (yes, you need two) for that UEFI DUET kernel named Efildr20 to be bring up and lighting as wasn't the case in this particular thread...

Last edited by LuckyCyborg; 06-23-2020 at 09:45 AM.
 
2 members found this post helpful.
Old 06-23-2020, 11:36 AM   #25
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
...ignore this sorry

Last edited by thirtySeven; 06-23-2020 at 11:39 AM. Reason: oops missed something
 
Old 06-23-2020, 05:57 PM   #26
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
is there a line in your /etc/fstab for the efi partition to be mounted at /boot/efi during boot?
 
Old 06-24-2020, 11:02 AM   #27
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Geez you guys are helpful.

Quote:
So I suggest you open parted and ensure the boot flag is where it should be.
Tried this and continue to get the same results.


Quote:
try this again
Code:
gdisk /dev/nvme0n1
This returns:

Code:
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Quote:
is there a line in your /etc/fstab for the efi partition to be mounted at /boot/efi during boot?
Looks like it:
Code:
/dev/nvme0n1p1   /boot/efi        vfat        defaults         1   0

I am not opposed to booting off usb if it will be significant effort to use another bootloader, and is not considered malpractice. If I were to boot off usb are there best practices I need to be aware of?


@LuckyCyborg
This information looks extremely promising, however I was unable to get things to work.
 
Old 06-24-2020, 12:10 PM   #28
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Copy the /boot/efi/EFI/Slackware/elilo.efi to /boot/efi/EFI/Boot/bootx64.efi and the other files in EFI/Slackware to EFI/Boot.
Then register it to the efi firmware with this
Code:
efibootmgr -c -L "Slackware-boot" -l \EFI\Boot\bootx64.efi
I used Slackware-boot to separate it from the default Slackware that elilo uses.

Last edited by colorpurple21859; 06-24-2020 at 01:06 PM.
 
Old 06-24-2020, 02:27 PM   #29
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
@colorpurple21859

For the first time I have had something different happen. I followed your instructions precisely. In BIOS I am able to select the new entry that was created. If I select it though the boot instantly fails.

When I boot back into my system and look at efibootmgr I notice that the boot entry that was created by following your instructions is present, though the entry created by eliloconfig is not.
 
Old 06-24-2020, 04:24 PM   #30
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Rep: Reputation: 44
Perhaps what is needed is an edit of elilo.conf.
What is the output for
Code:
$ ls /boot/efi/EFI/Boot
I suspect you should have: bootx64.efi, elilo.conf, vmlinuz, and initrd.gz; or something similar. The vmlinuz is the image of the Slackware "huge" kernel, which does not depend on modules. The elilo.conf file should be something like:
Quote:
chooser=simple
delay=1
timeout=1
image=vmlinuz
label=Slackware
initrd=initrd.gz
read-only
append="root=/dev/nvme0n1pX ro"
The "root=/dev/nvme0n1pX ro" needs the X to be the root partition number. The initrd.gz is perhaps unnecessary.

Try the command $ lsblk to find the root partition number, the one with the "/" only. Getting the "huge" kernel to boot is the main objective.
 
  


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
Should Slackware Live Edition on USB be able to boot in Secure Boot mode? philip0 Slackware - Installation 1 05-25-2020 05:53 AM
[SOLVED] No longer able to add multiple TC rules on same handle in current kernels (4.5.5 works, but anything current does not) herbalbert Linux - Networking 1 01-24-2019 10:08 AM
Mobo only supports uefi boot - how do I boot off a non-uefi cd? Ulysses_ Linux - Hardware 3 02-25-2016 08:06 PM
slackware64 14.1: not able to install LILO to MBR; not able to boot from USB drive. dcsst28 Slackware 1 11-17-2013 09:03 PM
What are any Good Distros that will run off off of 2.0 GB USB Drive? cjc811 Linux - Newbie 2 05-18-2011 12:09 PM

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

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration