ionmich
November 6, 2019, 6:54am
#1
Just installed 15.1 from USB on to an older notebook. When I boot from the installation USB I can start the OS on the HD, but when I remove the USB and do a cold start it does not boot, saying it can’t find the OS.
It was a straight forward install following all the suggestions except for choosing XFCE for a desktop. My HD was partitioned thus…
Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Disk model: TOSHIBA MQ01ABF0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9E7775CD-CD95-4307-8FD2-1075B162D395
Device Start End Sectors Size Type
/dev/sda1 2048 1026047 1024000 500M EFI System
/dev/sda2 1026048 620947455 619921408 295.6G Linux filesystem
/dev/sda3 620947456 625142414 4194959 2G Linux swap
How do I correct the bootloader? Fdisk does not give me the option to make sda2 bootable. Thanks for any suggestions.
mrmazda
November 6, 2019, 9:21am
#2
Your partitioning implies the installation was in UEFI mode. Does your “older” notebook support UEFI? Can you use BIOS setup to select sda1 to boot from in UEFI mode? If you boot the installed system using the stick, what does efibootmgr report?
ionmich
November 6, 2019, 2:27pm
#3
Thanks for the speedy response.
Yes as far as I know.
Can you use BIOS setup to select sda1 to boot from in UEFI mode?
No. I am locked out of the BIOS.
If you boot the installed system using the stick, what does efibootmgr report?
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* HDD:
Boot0001* BRCM MBA Slot 0400 v15.0.11
Boot0002* TOSHIBA MQ01ABF032
Boot0003* KingstonDataTraveler 2.0
Boot0004* opensuse
Boot0005* opensuse-secureboot
ion@linux-xk6v:~>
ionmich:
Thanks for the speedy response.
Yes as far as I know.
No. I am locked out of the BIOS.
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* HDD:
Boot0001* BRCM MBA Slot 0400 v15.0.11
Boot0002* TOSHIBA MQ01ABF032
Boot0003* KingstonDataTraveler 2.0
Boot0004* opensuse
Boot0005* opensuse-secureboot
ion@linux-xk6v:~>
Hi
If you change the boot order and make sure it is used next;
efibootmgr -o 4,5
efibootmgr -n 4
systemctl reboot
Is this a dual boot system?
knurpht
November 6, 2019, 4:36pm
#5
What happens if you boot with the USB inserted, then unplug it and have YaST’s bootloader module rewrite it? One only has to open the module and accept/ok
ionmich
November 6, 2019, 7:26pm
#6
Well I had tried that early on, but left the USB plugged in. This time I pulled the USB, but it still didn’t work. However see my next post.
ionmich
November 6, 2019, 7:30pm
#7
malcolmlewis:
Hi
If you change the boot order and make sure it is used next;
efibootmgr -o 4,5
efibootmgr -n 4
systemctl reboot
Is this a dual boot system?
It didn’t like “efibootmgr -o 4,5”, so I tried “efibootmgr -o 4” and the rest of the commands, and now it boots. Many thanks for getting me back to something I can use.
And no it’s not dual boot.
ionmich
November 6, 2019, 7:34pm
#8
I was wrong. I did not do a cold start but a reboot. When I did a cold start it would not start. I will try again and report.
ionmich
November 6, 2019, 8:23pm
#9
It didn’t like
efibootmgr -o 4,5
so I tried
efibootmgr -o 4 5
which executed. I then shutdown. It wouldn’t start giving me the “No OS” message. Now just to make things more difficult I have to tell you that before all this I had managed to install 15.0 successfully. But it took me so long to do that and it was so complicated I did not document it.
Hi
Boot from the rescue USB again and show the output from;
efibootmgr -v
ionmich
November 6, 2019, 9:55pm
#11
# efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* HDD: HD(1,GPT,20adfaa7-62f3-4f22-ac0f-5ebc309e298c,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0001* BRCM MBA Slot 0400 v15.0.11 BBS(128,,0x500)................a........ ..E............ .............................
Boot0002* TOSHIBA MQ01ABF032 BBS(HD,,0x500)................-.o.......o.A.o........................................
Boot0003* KingstonDataTraveler 2.0 BBS(Network,,0x500).......................................................................
Boot0004* opensuse HD(1,GPT,be02ed66-200c-4993-861b-ba8326528835,0x800,0xfa000)/File(\EFI\opensuse\grubx64.efi)
ionmich:
# efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* HDD: HD(1,GPT,20adfaa7-62f3-4f22-ac0f-5ebc309e298c,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0001* BRCM MBA Slot 0400 v15.0.11 BBS(128,,0x500)................a........ ..E............ .............................
Boot0002* TOSHIBA MQ01ABF032 BBS(HD,,0x500)................-.o.......o.A.o........................................
Boot0003* KingstonDataTraveler 2.0 BBS(Network,,0x500).......................................................................
Boot0004* opensuse HD(1,GPT,be02ed66-200c-4993-861b-ba8326528835,0x800,0xfa000)/File(\EFI\opensuse\grubx64.efi)
Hi
So no more Ub* on this system?
ionmich
November 6, 2019, 10:09pm
#13
Well I did delete all partitions before I started, so I think so.
Hi
OK, so will delete that one and the others and just have an openSUSE one… So boot from you USB (I’m guessing the kingston device?)
efibootmgr -b 4 -B 4
efibootmgr -b 2 -B 2
efibootmgr -b 1 -B 1
efibootmgr -b 0 -B 0
That should just leave you booted device…
Add openSUSE back in;
efibootmgr -c -L "opensuse" -l "\\EFI\\opensuse\\grubx64.efi"
It should now be the default from the output of efibootmgr -v command.
ionmich
November 6, 2019, 10:45pm
#15
malcolmlewis:
Hi
OK, so will delete that one and the others and just have an openSUSE one… So boot from you USB (I’m guessing the kingston device?)
efibootmgr -b 4 -B 4
efibootmgr -b 2 -B 2
efibootmgr -b 1 -B 1
efibootmgr -b 0 -B 0
That should just leave you booted device…
Add openSUSE back in;
efibootmgr -c -L "opensuse" -l "\\EFI\\opensuse\\grubx64.efi"
It should now be the default from the output of efibootmgr -v command.
Did not work.
# efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* opensuse HD(1,GPT,be02ed66-200c-4993-861b-ba8326528835,0x800,0xfa000)/File(\EFI\opensuse\grubx64.efi)
Boot0001* BRCM MBA Slot 0400 v15.0.11 BBS(128,,0x500)................a........ ..E............ .............................
Boot0002* TOSHIBA MQ01ABF032 BBS(HD,,0x500)................-.o.......o.A.o........................................
Boot0003* KingstonDataTraveler 2.0 BBS(Network,,0x500).......................................................................
[quote="“ionmich,post:15,topic:138492”]
malcolmlewis:
Hi
OK, so will delete that one and the others and just have an openSUSE one… So boot from you USB (I’m guessing the kingston device?)
efibootmgr -b 4 -B 4
efibootmgr -b 2 -B 2
efibootmgr -b 1 -B 1
efibootmgr -b 0 -B 0
That should just leave you booted device…
Add openSUSE back in;
efibootmgr -c -L "opensuse" -l "\\EFI\\opensuse\\grubx64.efi"
It should now be the default from the output of efibootmgr -v command.[/QUOTE
Did not work.
# efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0003
Boot0000* opensuse HD(1,GPT,be02ed66-200c-4993-861b-ba8326528835,0x800,0xfa000)/File(\EFI\opensuse\grubx64.efi)
Boot0001* BRCM MBA Slot 0400 v15.0.11 BBS(128,,0x500)................a........ ..E............ .............................
Boot0002* TOSHIBA MQ01ABF032 BBS(HD,,0x500)................-.o.......o.A.o........................................
Boot0003* KingstonDataTraveler 2.0 BBS(Network,,0x500).......................................................................
Hi
Can you show the output from;
lsblk
ls -la /boot/efi/EFI/
If you set the boot next to 0;
efibootmgr -n 0
systemctl reboot
ionmich
November 6, 2019, 11:03pm
#17
[quote="“malcolmlewis,post:16,topic:138492”]
ionmich:
Hi
Can you show the output from;
lsblk
ls -la /boot/efi/EFI/
If you set the boot next to 0;
efibootmgr -n 0
systemctl reboot
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 500M 0 part /boot/efi
├─sda2 8:2 0 295.6G 0 part /
└─sda3 8:3 0 2G 0 part [SWAP]
sdb 8:16 1 29.3G 0 disk
├─sdb1 8:17 1 3.8M 0 part
└─sdb2 8:18 1 121.1M 0 part
linux-xk6v:/home/ion # ls -la /boot/efi/EFI/
total 40
drwxr-xr-x 4 root root 8192 Nov 5 15:57 .
drwxr-xr-x 3 root root 16384 Dec 31 1969 ..
drwxr-xr-x 2 root root 8192 Nov 5 15:57 boot
drwxr-xr-x 2 root root 8192 Nov 5 15:57 opensuse
ionmich
November 6, 2019, 11:09pm
#18
If I
systemctl reboot
it reboots, but if I shutdown and cold start it doesn’t.
Hi
A funky UEFI implementation…
Are the grubx64.efi files the same in boot and opensuse directories?
ls -la /boot/efi/EFI/boot/
ls -la /boot/efi/EFI/opensuse/
Can you set the boot order to the openSUSE entry again, then fire up YaST bootloader and go and change the grub screen time to say 5 seconds, save and try another cold start.
ionmich
November 6, 2019, 11:52pm
#20
malcolmlewis:
Hi
A funky UEFI implementation…
Are the grubx64.efi files the same in boot and opensuse directories?
ls -la /boot/efi/EFI/boot/
ls -la /boot/efi/EFI/opensuse/
Can you set the boot order to the openSUSE entry again, then fire up YaST bootloader and go and change the grub screen time to say 5 seconds, save and try another cold start.
NO.
linux-xk6v:/home/ion # ls -la /boot/efi/EFI/boot/
total 1552
drwxr-xr-x 2 root root 8192 Nov 5 15:57 .
drwxr-xr-x 4 root root 8192 Nov 5 15:57 ..
-rwxr-xr-x 1 root root 1208968 Nov 5 15:57 bootx64.efi
-rwxr-xr-x 1 root root 358768 Nov 5 15:57 fallback.efi
linux-xk6v:/home/ion #
linux-xk6v:/home/ion # ls -la /boot/efi/EFI/opensuse/
total 3520
drwxr-xr-x 2 root root 8192 Nov 5 15:57 .
drwxr-xr-x 4 root root 8192 Nov 5 15:57 ..
-rwxr-xr-x 1 root root 58 Nov 5 15:57 boot.csv
-rwxr-xr-x 1 root root 155 Nov 5 15:57 grub.cfg
-rwxr-xr-x 1 root root 1062752 Nov 5 15:57 grub.efi
-rwxr-xr-x 1 root root 124416 Nov 6 12:12 grubx64.efi
-rwxr-xr-x 1 root root 1158688 Nov 5 15:57 MokManager.efi
-rwxr-xr-x 1 root root 1208968 Nov 5 15:57 shim.efi
linux-xk6v:/home/ion #