LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-27-2020, 08:28 AM   #46
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled

efibootmgr -v:
Code:
BootCurrent: 0001
Timeout: 3 seconds
BootOrder: 0003,0002,0000,0001
Boot0000* NVMe: Samsung SSD 970 EVO Plus 500GB S58SNJ0N317189L 1        PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-53-01-41-E2-AF)
Boot0001* USB: SanDisk Cruzer U PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)
Boot0002* SLACKWARE-BOOT        HD(1,MBR,0xe0e58332,0x800,0x8000)/File(\EFI\\boot\efi\grub.efi)/boot/efi/EFI/BOOT/EFI/BOOT/BOOTX64.EFI
Boot0003* Slacware64    HD(1,MBR,0xe0e58332,0x800,0x8000)/File(\boot\efi\EFI\BOOT\BOOTX64.EFI)
edit: This did not copy great: https://pastebin.com/NaiPifst


Contents of the usb:
Code:
f1.txt
ldlinux.sys
message.txt
syslinux.cfg
vmlinuz

EFI
   BOOT
      BOOTX64.EFI
      elilo.conf
      message.txt
Quote:
At the usb boot menu, press c for the grub prompt, post the output of the following
set pager=1
set
lsmod
Unfortunately I was unable to figure out how to do this. If I select the usb
from BIOS I am put on a screen that starts with "Welcome to the Slackware
Linux custom USB boot stick!" If I hit 'c' the letter 'c' is typed to the
bottom of the screen. I can type and enter text. If I attempt to enter
anything, including the code you gave me, I get the "boot failed" screen. From BIOS I was unable to
figure out how to launch into anything related to grub. Sorry if I am missing
something.

Code:
grub-install --removable
efibootmgr -c -L "Slackware64" -l \\EFI\\Boot\\BOOTX64.EFI
No luck here. Got the usual "boot failed"


I contacted System 76 and linked them to this thread. Here is their response:
Quote:
I have opened a issue against our open firmware as I think you did
everything right to get this to work. With that said, I know that we have done
most of our testing with grub and systemd-boot. Your system will only support
a UEFI capable bootloader, which I see that you are using in elilo.
I also attempted to copy the contents from the usb into /boot/efi/EFI/Boot/
and register "BOOTX64.EFI" but I had no luck.

Last edited by thirtySeven; 06-27-2020 at 08:49 AM.
 
Old 06-27-2020, 09:20 AM   #47
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
when you did the commands from post 45 did you get a grub menu before you got the boot fail?
 
Old 06-27-2020, 09:34 AM   #48
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
when you did the commands from post 45 did you get a grub menu before you got the boot fail?
No. The moment I hit enter I got the boot failed.
 
Old 06-27-2020, 10:04 AM   #49
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
I suspect there is something wrong with the firmware/bios according to 76 website links grub is supported or there is something else that has to be done to make it work.

Last edited by colorpurple21859; 06-27-2020 at 10:17 AM.
 
Old 06-27-2020, 10:41 AM   #50
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I suspect there is something wrong with the firmware/bios according to 76 website links grub is supported or there is something else that has to be done to make it work.
Thanks for all the help. I learned a ton. Is there anything I need to know about booting off a usb? Do I need to update it, etc?
 
Old 06-27-2020, 11:17 AM   #51
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
You will need to replace the vmlinuz on the usb, when a kernel is updated by coping the huge kernel from /boot to the usb as vmlinuz before updating.

Last edited by colorpurple21859; 06-27-2020 at 11:18 AM.
 
Old 06-27-2020, 11:39 AM   #52
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
I wonder if your efi partition is formatted f32 and needs to be f16
Code:
parted -l
if it shows /dev/sda1 as fat32
run this
Code:
umount /dev/sda1
mkfs.fat -F 16 /dev/sda1
mount /dev/sda1
grub-install --removable
efibootmgr -c -L "Slackware64" -l \\EFI\\Boot\\BOOTX64.EFI
 
Old 06-27-2020, 12:33 PM   #53
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

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

Last edited by thirtySeven; 06-27-2020 at 12:35 PM.
 
Old 06-27-2020, 12:43 PM   #54
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
I believe that my EFI partition is actually /dev/nvme0n1p1. That said this partition was indeed fat32. I was able to follow your instructions but I got the same "Boot failed" as always.
 
Old 06-27-2020, 12:56 PM   #55
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
then change each instance of /dev/sda1 to /dev/nvme0n1p1
I'm out of ideas for the moment.

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

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
You will need to replace the vmlinuz on the usb, when a kernel is updated by copying the huge kernel from /boot to the usb as vmlinuz before updating.
I see in the change logs for current that the kernel was updated on June 25, meaning that my usb would be out of date. I do not want to mess this up. I would very much appreciate instructions on what I need to do here to update my system while keeping the usb in commission.
 
Old 06-27-2020, 03:41 PM   #57
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
That should have been copy huge kernel to usb as vmlinuz before rebooting after updating
Or run pkgtool and select the make bootable usb option after updating
It would be better to blacklist kernel and kernel modules in /etc/blacklist and install manually with pkginstall for slackpkg will remove the current kernel while installing the new kernel

Last edited by colorpurple21859; 06-27-2020 at 03:51 PM.
 
Old 06-30-2020, 09:26 AM   #58
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
post the ouput of
Code:
parted -l
 
Old 06-30-2020, 11:39 AM   #59
thirtySeven
LQ Newbie
 
Registered: Jun 2020
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
post the ouput of
Code:
parted -l
Code:
Model: Samsung SSD 970 EVO Plus 500GB (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: pmbr_boot

Number  Start   End    Size    File system     Name                  Flags
 1      1049kB  538MB  537MB   fat16           EFI System Partition  boot, esp
 2      538MB   498GB  497GB   ext4                                  legacy_boot
 3      498GB   500GB  2147MB  linux-swap(v1)                        swap
 
Old 06-30-2020, 11:57 AM   #60
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,435

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
Try this
Code:
parted /dev/nvme0n1
disk_set pmbr_boot off
quit
grub-install
reboot
 
1 members found this post helpful.
  


Reply


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
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 06:53 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