Firstly, thank you for your help and patience - I am pleased to report I
now have a booting system. It wasn't quite plain sailing, further
details below (just in case it helps anyone in the future).
On Tue, Apr 12, 2016 at 03:39:19PM -0600, Chris Murphy wrote:
> On Tue, Apr 12, 2016 at 11:47 AM, Daniel Morris <danielm(a)ecoscentric.com> wrote:
> > chunk:~ # efibootmgr
> > BootCurrent: 0003
> > Timeout: 2 seconds
> > BootOrder: 0003,0001,0002,0004
> > Boot0001* Hard Drive
> > Boot0002* CD/DVD Drive
> > Boot0003* UEFI: USB
> > Boot0004 Removable Drive
>
> Well, the BootOrder and the Boot numbers don't include an opensuse
> option anymore. Is this a complete list? And yet, the fallback for
> bootx64.efi isn't happening. Huh. Definitely weird.
Yup!
>
> Please post the results for all of the following:
>
> # ls -l /sys/firmware/efi/efivars/
> # dd if=/dev/sda count=1 2>/dev/null | hexdump -C
> # efibootmgr -v
> # efibootmgr -c -w -L openSUSE -d /dev/sda -p 1 -l \\EFI\\opensuse\\shim.efi
> # efibootmgr -v
chunk:~ # ls -l /sys/firmware/efi/efivars/
total 0
-rw-r--r-- 1 root root 8 Apr 20 14:27 AAFTaddr-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 37 Apr 20 14:27 AMITSESetup-c811fa38-42c8-4579-a9bb-60e94eddfb34
-rw-r--r-- 1 root root 7 Apr 20 14:27 ASR_USER_DEF_TSE-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 5 Apr 20 14:27 ASR_USER_DEF_VER-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 8 Apr 20 14:27 AcpiGlobalVariable-af9ffd67-ec10-488a-9dfc-6cbf5ee22c2e
-rw-r--r-- 1 root root 1210 Apr 20 14:27 Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 224 Apr 20 14:27 Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 154 Apr 20 14:27 Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 154 Apr 20 14:27 Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 6 Apr 20 14:27 BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 8 Apr 20 14:27 BootFlow-ef152fb4-7b2f-427d-bdb4-7e0a05826e64
-rw-r--r-- 1 root root 12 Apr 20 14:27 BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 68 Apr 20 14:27 Boot_Dev_name-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 5 Apr 20 14:27 Boot_Last_Device-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 72 Apr 20 14:27 ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 72 Apr 20 14:27 ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 34 Apr 20 14:27 ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 34 Apr 20 14:27 ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 12 Apr 20 14:27 DefaultBootOrder-45cf35f6-0d6e-4d04-856a-0370a5b16f53
-rw-r--r-- 1 root root 40 Apr 20 14:27 DefaultLegacyDevOrder-3c4ead08-45ae-4315-8d15-a60eaa8caf69
-rw-r--r-- 1 root root 34 Apr 20 14:27 ErrOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 34 Apr 20 14:27 ErrOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 8 Apr 20 14:27 EzConfigData-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 5 Apr 20 14:27 GoodNightLed-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 32 Apr 20 14:27 HddBootDev-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 8 Apr 20 14:27 HddInfo4_InitStrings_HiiHandle-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 12 Apr 20 14:27 HiiDB-1b838190-4625-4ead-abc9-cd5e6af18fe0
-rw-r--r-- 1 root root 12 Apr 20 14:27 HobRomImage-dde1bc72-d45e-4209-ab85-14462d2f5074
-rw-r--r-- 1 root root 48 Apr 20 14:27 IccAdvancedSetupDataVar-7b77fb8b-1e0d-4d7e-953f-3980a261e077
-rw-r--r-- 1 root root 7 Apr 20 14:27 Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 7 Apr 20 14:27 LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 40 Apr 20 14:27 LegacyDevOrder-a56074db-65fe-45f7-bd21-2d2bdd8e9652
-rw-r--r-- 1 root root 5 Apr 20 14:27 LoadSetupDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 8 Apr 20 14:27 MemCeil.-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 8 Apr 20 14:27 MonotonicCounter-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 3028 Apr 20 14:27 MrcS3Resume-87f22dcb-7304-4105-bb7c-317143ccc23b
-rw-r--r-- 1 root root 21 Apr 20 14:27 NBPlatformData-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 140 Apr 20 14:27 NvRamSpdMap-717fc150-abd9-4614-8015-0b3323eab95c
-rw-r--r-- 1 root root 28 Apr 20 14:27 OA3MSDMvariable-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 14 Apr 20 14:27 OemCpuData-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 40 Apr 20 14:27 OldLegacyDevOrder-a56074db-65fe-45f7-bd21-2d2bdd8e9652
-rw-r--r-- 1 root root 13 Apr 20 14:27 PLLOvFlag-181e874d-c089-4c99-8ec2-6d6761348220
-rw-r--r-- 1 root root 7 Apr 20 14:27 PNP0400_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 13 Apr 20 14:27 PNP0400_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 7 Apr 20 14:27 PNP0501_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 13 Apr 20 14:27 PNP0501_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 7 Apr 20 14:27 PNP0501_1_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 13 Apr 20 14:27 PNP0501_1_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 7 Apr 20 14:27 PNP0510_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 13 Apr 20 14:27 PNP0510_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 7 Apr 20 14:27 PNP0604_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 13 Apr 20 14:27 PNP0604_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root 8 Apr 20 14:27 PchInit-e6c2f70a-b604-4877-85ba-deec89e117eb
-rw-r--r-- 1 root root 20 Apr 20 14:27 PchS3Peim-e6c2f70a-b604-4877-85ba-deec89e117eb
-rw-r--r-- 1 root root 10 Apr 20 14:27 PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 10 Apr 20 14:27 PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 5 Apr 20 14:27 Q_ASR_QUICKON-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 12 Apr 20 14:27 S3SS-4bafc2b4-02dc-4104-b236-d6f1b98d9e84
-rw-r--r-- 1 root root 28 Apr 20 14:27 SaPegData-c4975200-64f1-4fb6-9773-f6a9f89d985e
-rw-r--r-- 1 root root 8 Apr 20 14:27 SbAslBufferPtrVar-01f33c25-764d-43ea-aeea-6b5a41f3f3e8
-rw-r--r-- 1 root root 12 Apr 20 14:27 ScramblerBaseSeed-87f22dcb-7304-4105-bb7c-317143ccc23b
-rw-r--r-- 1 root root 8 Apr 20 14:27 Setup-80e1202e-2697-4264-9cc9-80762c3e5863
-rw-r--r-- 1 root root 679 Apr 20 14:27 Setup-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 17 Apr 20 14:27 SetupPlatformData-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 14 Apr 20 14:27 SetupSnbPpmFeatures-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 1203 Apr 20 14:27 StdDefaults-4599d26f-1a11-49b8-b91f-858745cff824
-rw-r--r-- 1 root root 5 Apr 20 14:27 TdtAdvancedSetupDataVar-7b77fb8b-1e0d-4d7e-953f-3980a261e076
-rw-r--r-- 1 root root 6 Apr 20 14:27 Timeout-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 5 Apr 20 14:27 TxtFeatures-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 12 Apr 20 14:27 USB_POINT-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root 6 Apr 20 14:27 UsbMassDevNum-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 20 Apr 20 14:27 UsbMassDevValid-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 35 Apr 20 14:27 UsbSupport-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root 5 Apr 20 14:27 WdtPersistentData-78ce2354-cfbc-4643-aeba-07a27fa892bf
chunk:~ # dd if=/dev/sda count=1 2>/dev/null | hexdump -C
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001c0 01 00 ee fe ff ff 01 00 00 00 af 4b f9 0d 00 00 |...........K....|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
chunk:~ # efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0001,0002,0004,0003
Boot0001* Hard Drive BBS(HD,,0x0)AMGOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.3.5.4.5.3. .J. . . . ......AMBOAMNO........q.S.a.n.D.i.s.k. .U.l.t.r.a. .I.I. .4.8.0.G.B.........................rN.D+..,.\...........B..Gd-.;.A..MQ..L.S.a.n.D.i.s.k. .U.l.t.r.a. .I.I. .4.8.0.G.B......AMBOAMNO........c.S.A.M.S.U.N.G. .H.D.1.0.3.S.J.........................rN.D+..,.\...........4..Gd-.;.A..MQ..L.S.A.M.S.U.N.G. .H.D.1.0.3.S.J......AMBOAMNO........c.S.A.M.S.U.N.G. .H.D.1.0.3.S.J.........................rN.D+..,.\...........4..Gd-.;.A..MQ..L.S.A.M.S.U.N.G. .H.D.1.0.3.S.J......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.3.7.4.8.9. .M. . . . ......AMBOAMNO........o.S.A.M.S.U.N.G. .H.D.7.5.3.L.J....................A...........................>..Gd-.;.A..MQ..L.1.S.U.3.X.J.B.0.0.3.6.0.3.9. . . . . . ......AMBOAMNO........o.S.A.M.S.U.N.G. .H.D.1.0.3.U.J....................A...........................>..Gd-.;.A..MQ..L.1.S.P.3.9.J.Q.0.2.A.9.5.6.3. . . . . . ......AMBO
Boot0002* CD/DVD Drive BBS(CDROM,,0x0)AMGOAMNO........o.A.T.A.P.I. . . .i.H.A.S.3.2.4. . . .B....................A...........................>..Gd-.;.A..MQ..L.5.3.4.2.1.2. .9.4.3.0.8.4.4.0.5.9.0.8.5......AMBO
Boot0003 USB BBS(USB,,0x0)AMGOAMNOu.......U.U.S.B.2...0....................A............................."..Gd-.;.A..MQ..L.U.S.B.2...0......AMBO
Boot0004* UEFI: USB2.0 PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,MBR,0x4294967218,0x118,0x1d88)AMBO
chunk:~ # efibootmgr -c -w -L openSUSE -d /dev/sda -p 1 -l \\EFI\\opensuse\\shim.efi
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0004,0003
Boot0001* Hard Drive
Boot0002* CD/DVD Drive
Boot0003 USB
Boot0004* UEFI: USB2.0
Boot0000* openSUSE
chunk:~ # efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0004,0003
Boot0000* openSUSE HD(1,GPT,7e019023-b05a-4eab-988c-95fd54bcfbad,0x800,0x4e000)/File(\EFI\opensuse\shim.efi)
Boot0001* Hard Drive BBS(HD,,0x0)AMGOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.3.5.4.5.3. .J. . . . ......AMBOAMNO........q.S.a.n.D.i.s.k. .U.l.t.r.a. .I.I. .4.8.0.G.B.........................rN.D+..,.\...........B..Gd-.;.A..MQ..L.S.a.n.D.i.s.k. .U.l.t.r.a. .I.I. .4.8.0.G.B......AMBOAMNO........c.S.A.M.S.U.N.G. .H.D.1.0.3.S.J.........................rN.D+..,.\...........4..Gd-.;.A..MQ..L.S.A.M.S.U.N.G. .H.D.1.0.3.S.J......AMBOAMNO........c.S.A.M.S.U.N.G. .H.D.1.0.3.S.J.........................rN.D+..,.\...........4..Gd-.;.A..MQ..L.S.A.M.S.U.N.G. .H.D.1.0.3.S.J......AMBOAMNO........o.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.3.7.4.8.9. .M. . . . ......AMBOAMNO........o.S.A.M.S.U.N.G. .H.D.7.5.3.L.J....................A...........................>..Gd-.;.A..MQ..L.1.S.U.3.X.J.B.0.0.3.6.0.3.9. . . . . . ......AMBOAMNO........o.S.A.M.S.U.N.G. .H.D.1.0.3.U.J....................A...........................>..Gd-.;.A..MQ..L.1.S.P.3.9.J.Q.0.2.A.9.5.6.3. . . . . . ......AMBO
Boot0002* CD/DVD Drive BBS(CDROM,,0x0)AMGOAMNO........o.A.T.A.P.I. . . .i.H.A.S.3.2.4. . . .B....................A...........................>..Gd-.;.A..MQ..L.5.3.4.2.1.2. .9.4.3.0.8.4.4.0.5.9.0.8.5......AMBO
Boot0003 USB BBS(USB,,0x0)AMGOAMNOu.......U.U.S.B.2...0....................A............................."..Gd-.;.A..MQ..L.U.S.B.2...0......AMBO
Boot0004* UEFI: USB2.0 PciRoot(0x0)/Pci(0x1a,0x0)/USB(1,0)/USB(1,0)/HD(1,MBR,0x4294967218,0x118,0x1d88)AMBO
At this point I powered down and removed the USB key, rebooted, saw the
grub2 GUI but it errored trying to load any kernel image. I poked around
the grub2 shell for a while, weirdly it could see /boot and 'hd0,gpt3'
but thinking back (and comparing with now fixed) I suspect it was trying
to use the linux & initrd directives instead of linuxefi & initrdefi.
Booting again via TW USB key I simply re-ran yast's bootloader to set
everything straight.
With a successful boot I let the hubris overwhelm me, and applied the
473 updates that I've missed over the last couple of weeks. In effect,
pausing for a moment to change hammers. As these started to apply so the
machine flipped out, ejecting me from the vt console login as failing
logrotate messages whizzed passed moaning that btrfs filesystem was
full.
Sadly I had forgotten that in order to "simplify" my setup I'd taken
several mounts out of /etc/fstab, including /var/backup that stores
rsnapshot's of my work area, /etc and other critical data every few
hours. As cron has dutifully triggered this process for at least a dozen
years it saw no reason to stop, creating a 45GiB initial backup
and (very small) deltas onto /var/backup which was just a subvolume on
the small 110GiB SSD. I had realised this sometime last week, paused the
cronjob and thought I'd cleaned up. What I also forgot was that snapper
had created its own snapshots of the rsnapshots. I foolishly hadn't
bothered checking how much disk space was free before the updates as I
was expecting at least 30GiB to still be free! Remembering other threads
about btrfs usage, once I'd worked out what was going on I was able to
create a large file, mount as a loop device, add it to btrfs and then
run a full-balance which reclaimed the many missing gigabytes, remove,
then finish the updates :)
It was about this point that I remembered that I have had a smart phone
for a few years and could have browsed a wiki or online docs for help,
as my laptop had run out of power a few hours earlier and I'd left the
charger at home. Doh!
One of my intentions in switching to TW was to learn about using some of
the newer Linux features, so there's one goal accomplished...
>
>
> Yes I'd like to see efibootmgr -v before and after trying to manually
> add a new entry for opensuse. If you get any errors, check dmesg and
> include anything recent and relevant in your next email.
>
> Definitely check firmware is up to date before bothering with all of
> this. I'm pretty close to leaning in the direction you've got at least
> one firmware related bug going on.
I did update the BIOS first, which was an adventure in itself, leading
me to think the unthinkable - that I'd have to get a copy of Windows and
install it in order to use the BIOS updater, despite the UEFI BIOS
having an "InstantFlash" feature. In frustration I contacted ASRock
support, and got really helpful replies from their Dutch team - they
don't advertise the "raw" images on their website as some serial numbers
of the motherboard were affected by the B2 SATA stepping bug (I had to
wait several weeks when I bought the parts for this machine to get a B3
model). Their Windows installer seems to have been defensively written
to check the serial number and apply the relevant update to prevent
bricking the board. After physically checking the serial number I was
able to get the right image (2.10) from their ftp site, copy to a FAT
formatted USB and the update went smoothly.
Now that I've poked a lot around this version of the BIOS, it still
seems that there is no means to "lock" the BIOS into UEFI or Legacy
mode. Also it auto-probes for hardware whenever I go into the setup,
repopulating its boot priorities and order of disks etc. For example,
plugging a USB key in, rebooting and going into setup automatically adds
it to the boot order, twice! Firstly as 'USB: USB2.0' and latterly as
other 'UEFI: USB'. I find that a little counter-intuitive, but guess
password protecting the BIOS may be wise.
The theory of efibootvars filling, or not been written until garbage
collection might explain how I arrived here in the first place. At least
if I have problems updating in the future I'll be a little more aware of
how to recover.
Daniel
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-factory+owner(a)opensuse.org