View previous topic :: View next topic |
Author |
Message |
o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 465
|
Posted: Fri Sep 29, 2017 11:26 am Post subject: cannot boot in UEFI on USB drive |
|
|
I'm trying to bring my systems up-to-date with the latest booting standard and not having much luck.
I can boot an Ubuntu USB drive just fine, but the one I made isn't being recognized at all. This is what I did:
1. create GPT disk label / partition
a. /dev/sdx1 (EXT4), created so I could also do legacy boot?
b. /dev/sdx2 (FAT32, ESP)
c. /dev/sdx3 (LVM)
2. mounted /dev/sdx2 @ /boot
3. copied kernel / init / grub configuration to /boot, /boot/grub/grub.cfg
4. grub-install --target=x86_64-efi --efi-directory=/boot
a. this put files in /boot/EFI/grub
I rebooted and hoped the ESP would be seen, but it wasn't. So, I then tried copying the shim file into /boot/EFI/grub.
That also didn't work, so then I tried copying the entire grub directory to /boot/EFI/Boot. And, that also didn't work. I previously tried copying the kernel and initramfs directly to the ESP under that path and using efibootmgr to configure the kernel command-line options, also to no avail.
My systems are all Dell-based.
Shouldn't UEFI typically be as easy as creating a FAT32 partition anywhere on a disk and copying some files under /EFI/Boot/bootx86_64.efi? What am I missing?
Walter |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Fri Sep 29, 2017 5:44 pm Post subject: |
|
|
Well, I don't see the point of grub with UEFI. I don't use any bootloader at all; the kernel has a stub EFI loader, I use that. _________________ My blog |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Fri Sep 29, 2017 5:45 pm Post subject: Re: cannot boot in UEFI on USB drive |
|
|
walterw wrote: | I'm trying to bring my systems up-to-date with the latest booting standard and not having much luck.
I can boot an Ubuntu USB drive just fine, but the one I made isn't being recognized at all. This is what I did: |
Did it allow you to access efivarfs? Code: | $ mount | grep efivarfs
efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,relatime) |
Also, see post 8121832
Some older Dell laptops seem to have a problem not passing additional parameters from NVRAM to the kernel, see post 8108736 and https://wiki.gentoo.org/wiki/EFI_stub_kernel#Optional:_Initramfs. |
|
Back to top |
|
|
o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 465
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
|
Back to top |
|
|
|