Hello Folks,
(Apologies for the long post, but there's a lot of circularity to follow...)
I'm finding it difficult to understand the relationship between
efibootmgr, what's showing up in my F10 boot 'BIOS setup options >
System Configuration > Boot Options' and what exists under /boot/efi/EFI
I was trying to boot from standard PureOS usb boot image. No trouble
booting from usb before (iirc). Trying to boot from the usb has failed
with the machine going straight to into debian.
I booted with F10 into the 'BIOS setup options > System Configuration >
Boot Options' and selected the boot order under 'UEFI Boot Order' to be
'USB Diskette on Key/USB Hard Disk', 'USB CD/DVD ROM Drive' and finally
'OS Boot Manager'. Changing that order didn't change anything ('OS Boot
Manager' was initially first). Next boot I had a look under the 'OS
Boot Manager' menu and there were a couple of old entries other than
'debian': 'fedora' and 'Windows Boot Manager'. ('Doz$ left my system 5
years ago when it arrived in the post...)
After a bit of Internet searching I discovered efibootmgr and also that
redundant entries can accumulate under /boot/efi/EFI. Under
/boot/efi/EFI I discovered:
$ sudo ls /boot/efi/EFI
BOOT debian fedora
And, efibootmgr:
$ sudo efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0000,0001,9999
Boot0000* fedora
Boot0001* Solid State Disk
Boot0004* debian
Boot9999* USB Drive (UEFI)
'efibootmgr -b 0 -B' got rid of the fedora entry from both efibootmgr
and the BIOS 'OS Boot Manager' menu, but left /boot/efi/EFI/fedora which
I delete manually.
efibootmgr -n 9999 produced:
'The selected boot device failed. Press <Enter> to Continue.'
On next boot followed by the 'Boot Manager - Boot Options Menu' with
listings as for the 'OS Boot Manager'
efibootmgr -t 10 does seem to have an effect, counting the difference
between t=0 and t=10 and reboot and grub menu - but, I never see an OS
boot menu to choose between 'USB Diskette on Key/USB Hard Disk', 'USB
CD/DVD ROM Drive' and 'OS Boot Manager'
So, I was left with:
'Windows Boot Manager'
'debian'
Under the F10 boot 'BIOS setup options > System Configuration > Boot
Options' menu;
BOOT debian
directories under /boot/efi/EFI;
And, efibootmgr gave me-
$ sudo efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0001,9999
Boot0001* Solid State Disk
Boot0004* debian
Boot9999* USB Drive (UEFI)
I had a punt that 'Boot0001* Solid State Disk' /boot/efi/EFI/BOOT and
the Boot Options' menu entry 'Windows Boot Manager' might be related so
did 'efibootmgr -b 1 -B' and that removed the 'Boot Options' menu entry
'Windows Boot Manager' but not /boot/efi/EFI/BOOT. So, I moved
/boot/efi/EFI/BOOT to /BOOT and nothing seemed to change on rebooting -
so, I put back /boot/efi/EFI/BOOT and low and behold, under the 'Boot
Options' menu the 'Windows Boot Manager' had reappeared and efibootmgr
now gives me:
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0005,9999
Boot0004* debian
Boot0005* Solid State Disk
Boot9999* USB Drive (UEFI)
I feel like I'm going completely potty!!! Is anyone able to shed some
light on what is going on? And, get me able to boot from my usb flash
drive...? (Again.)
System info to follow.
Thanks,
Morgan.
$ uname -a
Linux mymachine 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30)
x86_64 GNU/Linux
$ sudo lshw -short -sanitize
H/W path Device Class Description
==============================================================
system HP Spectre x360
Convertible (N5R16UA#ABA)
/0 bus 802D
/0/0 memory 64KiB BIOS
/0/10 memory 32KiB L1 cache
/0/11 memory 32KiB L1 cache
/0/12 memory 256KiB L2 cache
/0/13 memory 3MiB L3 cache
/0/14 processor Intel(R) Core(TM)
i5-5200U CPU @ 2.20GHz
/0/16 memory 8GiB System Memory
/0/16/0 memory 4GiB Row of chips
LPDDR3 Synchronous 1600 MHz (0.6 ns)
/0/16/1 memory 4GiB Row of chips
LPDDR3 Synchronous 1600 MHz (0.6 ns)
/0/100 bridge Broadwell-U Host
Bridge -OPI
/0/100/2 display HD Graphics 5500
/0/100/3 multimedia Broadwell-U Audio
Controller
/0/100/14 bus Wildcat Point-LP USB
xHCI Controller
/0/100/14/0 usb1 bus xHCI Host Controller
/0/100/14/0/1 input USB Optical Mouse
/0/100/14/0/3 multimedia HP Wide Vision FHD Camera
/0/100/14/0/4 input Touchscreen
/0/100/14/0/5 input ITE Device(8350)
/0/100/14/0/6 scsi4 storage Mass Storage
/0/100/14/0/6/0.0.0 /dev/sdb disk 4026MB Flash Disk
/0/100/14/0/6/0.0.0/0 /dev/sdb disk 4026MB
/0/100/14/0/6/0.0.0/0/1 /dev/sdb1 volume 1431MiB Hidden
HPFS/NTFS partition
/0/100/14/0/7 communication Bluetooth wireless
interface
/0/100/14/1 usb2 bus xHCI Host Controller
/0/100/16 communication Wildcat Point-LP MEI
Controller #1
/0/100/1b multimedia Wildcat Point-LP High
Definition Audio Controller
/0/100/1c bridge Wildcat Point-LP PCI
Express Root Port #2
/0/100/1c/0 generic RTS5227 PCI Express
Card Reader
/0/100/1c.2 bridge Wildcat Point-LP PCI
Express Root Port #3
/0/100/1c.2/0 wlo1 network Wireless 7265
/0/100/1f bridge Wildcat Point-LP LPC
Controller
/0/100/1f.2 scsi0 storage Wildcat Point-LP SATA
Controller [AHCI Mode]
/0/100/1f.2/0.0.0 /dev/sda disk 256GB AXNS381E-256GM-B
/0/100/1f.2/0.0.0/1 volume 189MiB Windows FAT volume
/0/100/1f.2/0.0.0/2 /dev/sda2 volume 476MiB EXT4 volume
/0/100/1f.2/0.0.0/3 /dev/sda3 volume 237GiB EFI partition
/0/100/1f.3 bus Wildcat Point-LP
SMBus Controller
/0/1 system PnP device PNP0c02
/0/2 system PnP device PNP0b00
/0/3 generic PnP device INT3f0d
/0/4 input PnP device PNP0303
/0/5 generic PnP device SYN1ed9
/0/6 system PnP device PNP0c02
/0/7 system PnP device PNP0c31
/1 power PK03056XL
Attachment:
signature.asc
Description: OpenPGP digital signature