help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UEFI grub devices wrong


From: Felix Miata
Subject: Re: UEFI grub devices wrong
Date: Fri, 17 Jan 2020 05:51:35 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 SeaMonkey/2.49.5

Goh Lip composed on 2020-01-17 18:16 (UTC+0800):

Thanks for your reply!

> Use any uefi grub (Ubuntu,Debian,Fedora, install media boot menu
> grub....) and manually boot up Opensuse installed OS at its grub prompt.
> You must use a uefi grub. You can check with "grub> echo $grub_platform" 

grub> echo @grub_platform
efi

> grub> set root=(hd0,8) {or (hd1,9) or....}
> {you can check with 'grub> ls (hd0,8)' and 'grub> cat
> (hd0,8)/etc/os-release'}
> grub> probe -u ($root) --set=abc
> grub> ls ($root)/boot/
> {this is to check your kernels, vmlinuz and initrd files}
> grub> linux /boot/vmlinuz-x-xxx-default root=UUID=$abc ro
> grub> initrd /boot/initrd-x-xxx-default
> grub> boot

This I did before seeing your reply (IIRC):
set root='hd0,gpt7'
linuxefi /boot/vmlinuz root=LABEL=sx6stw noresume video=1440x900
initrdefi /boot/initrd
boot

openSUSE provides symlinks to most recently installed kernel and initrd,
so there's no need to fuss over version numbers unless desiring use of
an older kernel. :-)

> When booted, fix your fstab to the correct /boot/efi ($esp) UUID.

Nothing to fix there. My fstabs use LABEL to mount all native filesystems.

> Mount it as /boot/efi
> And do
> sudo grub2-install
> sudo update-grub

Before your reply, I tried using yast bootloader, which worked, so I didn't need
these.

> And you might have to (best do it anyways)
> ```
> sudo cp /boot/grub2/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
> sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "opensuseTW" -l
> "\EFI\Manjaro\grubx64.efi"
> ```
> Verify first your /boot/efi partition with 'findmnt /boot/efi' to be
> sure you get the correct naming for your $esp partition.

I had already gotten efi setup before OP by chrooting into the installed 
system, 
then:

# efibootmgr
# efibootmgr -b 0 -B
# efibootmgr -b 0 -c -d /dev/nvme0n1 -L opensusetw -l 
/efi/opensusetw/grubx64.efi -p1 -v

This resulted as desired:
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003
Boot0000* opensusetw
Boot0003* UEFI OS
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]