LinuxQuestions.org
Help answer threads with 0 replies.
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 03-25-2020, 04:56 PM   #1
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,478

Rep: Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632
Unable to delete UEFI boot entry, I/O error.


I get an I/O error when trying to delete Boot0006 with efibootmgr.
First of all, here is the output from efibootmgr:

Code:
efibootmgr
Skipping unreadable variable "Boot0006": Input/output error
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0006,0007,0002,0003,0004,0005
Boot0000* Slackware	HD(1,GPT,b2ebd023-9462-4851-b11a-ce338b85ed1d,0x800,0x32000)/File(\EFI\Slackware\elilo.efi)
Boot0002  UEFI: HTTP IP4 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()..BO
Boot0003  UEFI: PXE IP4 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0004  UEFI: HTTP IP6 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv6([::]:<->[::]:,0,0)/Uri()..BO
Boot0005  UEFI: PXE IP6 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0007* CD/DVD Drive	BBS(CDROM,,0x0)..GO..NO........u.H.L.-.D.T.-.S.T. .D.V.D.R.A.M. .G.H.2.4.N.S.C.0....................A.................................>..Gd-.;.A..MQ..L.M.K.J.8.O.9.3
and the results from trying to delete Boot0006.

Code:
efibootmgr -b 6 -B
Skipping unreadable variable "Boot0006": Input/output error
Could not delete variable: Input/output error
Some background. I installed a new system board, cpu, ram, and kept my two spinning rust drives, and 1 256 gig SSD drive. Each drive was bootable on the old BIOS system. I did not convert anything to GPT partitioning. EFI BIOS has CSM ( comparability mode ) set. I could boot off all three drives.

I was happy with new system. I bought a 1 tera byte NVME drive, and installed it. I installed current on it, using Live Slackware iso. That worked great.

I had a need for a drive elsewhere, and was not going to use the 500 gig disk, so I removed it. It was re-formatted and installed in another device.

So, now I have 1 spinning rust drive with current ( not GPT ) , one 256 Gig drive with Slackware 14.2, ( not GPT ) and one NVME drive with current. All three boot, this was a bit of a surprise to me, since I have one drive that will only work in UEFI mode, and two that need CSM mode to function.

When Slack 15 is released, I would like to remove the spinning rust drive, ( just not needed ) and reformat the 256 gig drive to GPT and install 15.

So, I decided it was time I learned something about UEFI. I have looked on this forum, there are a ton of posts on UEFI, I have not found out how to remove the stale entry, that I'm thinking was caused by my removing the 500 gig drive.

When I proceed with removing the one drive, and reformatting the SSD, how do I change these boot entries? How do I fix the error I have now?

The system board is a Gigabyte B450 Aorus Elite.
 
Old 03-26-2020, 12:29 PM   #2
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Nixos, Arch
Posts: 234

Rep: Reputation: 123Reputation: 123
Quote:
Originally Posted by camorri View Post
I get an I/O error when trying to delete Boot0006 with efibootmgr
efibootmgr --help shows the arguments for quick reference. -A makes an entry inactive and -o lets you move the offending entry last (you set the order manually). I generally type in all the numbers (e.g. "0006") as a habit, but that may be irrelevant to the problem you're having.

Is the old entry causing an issue with booting?
 
Old 03-26-2020, 12:38 PM   #3
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,478

Original Poster
Rep: Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632
Quote:
Is the old entry causing an issue with booting?
No, not now.

With that said, I was spending some time with the current covid-19 restrictions to fix up and issues I have, even though they are not causing immidate problems. Part of this exercise is to learn something about UEFI. I avoided it like the plague for close to 10 years. It won't go away, ( just like pulse audio ) so I thought it was time to learn how to live with it.

Much of my concern is the other two disks that are not GPT, and removing and or repartitioning them. I want to know how to deal with UEFI and the boot entries in NVRAM.

I'm not thrilled that I followed the man page for efibootmgr to remove an entry, it fails.

So, the tool we are supposed to use doesn't work as advertised. Now what else won't work?
 
Old 03-26-2020, 12:58 PM   #4
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Nixos, Arch
Posts: 234

Rep: Reputation: 123Reputation: 123
Quote:
Originally Posted by camorri View Post
I thought it was time to learn how to live with it.
efibootmgr won't teach much, but this guy's site will:

https://www.rodsbooks.com/efi-bootloaders/index.html
 
Old 03-26-2020, 01:04 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,392

Rep: Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014Reputation: 2014
(sorry, noise)

Last edited by rknichols; 03-26-2020 at 01:06 PM. Reason: Overlooked something important
 
Old 03-26-2020, 07:56 PM   #6
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,411
Blog Entries: 14

Rep: Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235Reputation: 3235
edit: oops, nm, looks like it's already been answered.

Last edited by GazL; 03-26-2020 at 07:58 PM.
 
Old 03-28-2020, 09:24 AM   #7
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 198

Rep: Reputation: 97
Did you try removing Boot0006 from the boot order by setting a new boot order using efibootmgr -o option?
Quote:
Originally Posted by camorri View Post
Code:
efibootmgr
Skipping unreadable variable "Boot0006": Input/output error
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0006,0007,0002,0003,0004,0005
..
....
If not try this;
Code:
# efibootmgr -o 0000,0007,0002,0003,0004,0005
Maybe this will make the input/output error to go away.
 
Old 03-28-2020, 09:29 AM   #8
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 198

Rep: Reputation: 97
Oops, duplicate post

Last edited by laprjns; 03-28-2020 at 11:10 AM.
 
Old 03-28-2020, 09:35 AM   #9
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,478

Original Poster
Rep: Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632
Quote:
Did you try removing Boot0006 from the boot order by setting a new boot order using efibootmgr -o option?
Yes I did, with no change.

To make matters more interesting, I tried booting my system from a DVD with Slackware-live, that added another Boot entry, Boot0009.

The I/O errors still appear.

Quote:
Skipping unreadable variable "Boot0006": Input/output error
Skipping unreadable variable "Boot0009": Input/output error
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0007,0009,0002,0003,0004,0005
Boot0000* Slackware HD(1,GPT,b2ebd023-9462-4851-b11a-ce338b85ed1d,0x800,0x32000)/File(\EFI\Slackware\elilo.efi)
Boot0002 UEFI: HTTP IP4 Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv4(0.0.0.00.0.0.0,0,0)/Uri()..BO
Boot0003 UEFI: PXE IP4 Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0004 UEFI: HTTP IP6 Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv6([::]:<->[::]:,0,0)/Uri()..BO
Boot0005 UEFI: PXE IP6 Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(b42e994eb18b,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0007* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........u.H.L.-.D.T.-.S.T. .D.V.D.R.A.M. .G.H.2.4.N.S.C.0....................A.................................>..Gd-.;.A..MQ..L.M.K.J.8.O.9.3.A.0.7. .0. . . . . . . . ........BO
As you can see, Boot0006 does not show, B0009 does, I'm sure it will not if I use the -o command.

I have done a lot of reading, one thing I saw, was to remove the invalid entries by going into the BIOS, and loading the "Default settings". Failing that, remove all power, remove the cmos battery, press the power button for a few seconds; to ensure the power is all drained, put the battery back in, and boot to BIOS mode and set "Default" settings.

I'm still contemplating if I want to go that far.

I have also looked into a BIOS update. Once again, there is risk involved. Not sure this will buy me anything.
 
Old 03-28-2020, 02:07 PM   #10
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,001

Rep: Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689
If it is a file on the efi partition causing the problem can't you just delete the file?
 
Old 03-28-2020, 04:11 PM   #11
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,478

Original Poster
Rep: Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632Reputation: 632
Here is the contents of the efi partition.

Quote:
ls -l /boot/efi/EFI/Slackware/
total 27M
drwxr-xr-x 2 root root 512 Mar 14 06:57 ./
drwxr-xr-x 3 root root 512 Feb 21 14:57 ../
-rwxr-xr-x 1 root root 282 Mar 17 10:49 elilo.conf*
-rwxr-xr-x 1 root root 233K Jun 12 2018 elilo.efi*
-rwxr-xr-x 1 root root 11M Mar 26 03:43 initrd.gz*
-rwxr-xr-x 1 root root 6.3M Mar 26 03:43 vmlinuz*
-rwxr-xr-x 1 root root 9.6M Mar 26 03:44 vmlinuz-huge*
As far as I know, everything here is necessary.
 
  


Reply

Tags
i/o error, uefi


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
[SOLVED] Trying to boot Ubuntu in UEFI mode, UEFI doesn't recognize boot devices Sarcutus Ubuntu 11 01-11-2019 07:14 PM
Unable to get UEFI Entry for FreeBSD in menu paracoder *BSD 2 08-30-2018 11:43 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
Can't get dual boot, win 7 uefi and elementary freya os uefi working shywolf Linux - Newbie 4 12-10-2015 06:14 PM

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

All times are GMT -5. The time now is 07:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration