All of lore.kernel.org
 help / color / mirror / Atom feed
* Boot dell in uefi mode from usb stick
@ 2012-06-12  1:38 John Frankish
  2012-06-12 16:04 ` Stuart_Hayes
  2012-06-12 18:36 ` Jordan Uggla
  0 siblings, 2 replies; 5+ messages in thread
From: John Frankish @ 2012-06-12  1:38 UTC (permalink / raw)
  To: grub-devel

I'm not sure if this is possible, but I've been trying to boot a dell laptop (latitude e6220) in uefi mode from a usb stick without success.

Using:

$ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/sdc1/efi --removable
Installation finished. No error reported.

..but on booting the dell in uefi mode, no bootable device is found. Needless to say, it will boot from a usb stick in legacy bios mode.

Does anybody know if the above is possible?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Boot dell in uefi mode from usb stick
  2012-06-12  1:38 Boot dell in uefi mode from usb stick John Frankish
@ 2012-06-12 16:04 ` Stuart_Hayes
  2012-06-13 22:55   ` John Frankish
  2012-06-17 14:05   ` John Frankish
  2012-06-12 18:36 ` Jordan Uggla
  1 sibling, 2 replies; 5+ messages in thread
From: Stuart_Hayes @ 2012-06-12 16:04 UTC (permalink / raw)
  To: j-frankish; +Cc: grub-devel

On a USB stick, the grub executable might need to be at exactly /EFI/BOOT/BOOTx64.EFI (and the partition must be FAT of course).  See section 3.4.1.1 of the UEFI 2.1 spec.  You could probably just copy the grub executable to that location from wherever it is.

Stuart

> -----Original Message-----
> From: grub-devel-bounces+stuart_hayes=dell.com@gnu.org [mailto:grub-
> devel-bounces+stuart_hayes=dell.com@gnu.org] On Behalf Of John Frankish
> Sent: Monday, June 11, 2012 8:38 PM
> To: grub-devel@gnu.org
> Subject: Boot dell in uefi mode from usb stick
> 
> I'm not sure if this is possible, but I've been trying to boot a dell
> laptop (latitude e6220) in uefi mode from a usb stick without success.
> 
> Using:
> 
> $ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/sdc1/efi
> --removable
> Installation finished. No error reported.
> 
> ..but on booting the dell in uefi mode, no bootable device is found.
> Needless to say, it will boot from a usb stick in legacy bios mode.
> 
> Does anybody know if the above is possible?
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Boot dell in uefi mode from usb stick
  2012-06-12  1:38 Boot dell in uefi mode from usb stick John Frankish
  2012-06-12 16:04 ` Stuart_Hayes
@ 2012-06-12 18:36 ` Jordan Uggla
  1 sibling, 0 replies; 5+ messages in thread
From: Jordan Uggla @ 2012-06-12 18:36 UTC (permalink / raw)
  To: The development of GNU GRUB, j-frankish; +Cc: help-grub

On Mon, Jun 11, 2012 at 6:38 PM, John Frankish <j-frankish@slb.com> wrote:
> I'm not sure if this is possible, but I've been trying to boot a dell laptop (latitude e6220) in uefi mode from a usb stick without success.
>
> Using:
>
> $ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/sdc1/efi --removable
> Installation finished. No error reported.

This list is for grub development, user support questions should be
sent to help-grub (which I've CCd in my reply).
grub-install's --boot-directory option is for specifying the boot
directory, grub-install's --efi-directory option is for specifying the
directory which is the mountpoint for the EFI System Partition. Since
this is a removable device, you probably don't want it as a semi
permanent EFI boot entry, and you probably want other machines to be
able to boot from it, so you should add the "--removable" option as
well.

Assuming that sdc1 is a proper EFI System Partition, mounted at
/mnt/sdc1/, that gives you something like "sudo grub-install
--target=x86_64-efi --boot-directory=/mnt/sdc1/boot/
--efi-directory=/mnt/sdc1/ --removable". The --efi-directory option
requires grub 2.00 beta6 or newer.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Boot dell in uefi mode from usb stick
  2012-06-12 16:04 ` Stuart_Hayes
@ 2012-06-13 22:55   ` John Frankish
  2012-06-17 14:05   ` John Frankish
  1 sibling, 0 replies; 5+ messages in thread
From: John Frankish @ 2012-06-13 22:55 UTC (permalink / raw)
  To: The development of GNU GRUB

> > -----Original Message-----
> > From: grub-devel-bounces+stuart_hayes=dell.com@gnu.org [mailto:grub-
> > devel-bounces+stuart_hayes=dell.com@gnu.org] On Behalf Of John
> > devel-bounces+Frankish
> > Sent: Monday, June 11, 2012 8:38 PM
> > To: grub-devel@gnu.org
> > Subject: Boot dell in uefi mode from usb stick
> >
> > I'm not sure if this is possible, but I've been trying to boot a dell
> > laptop (latitude e6220) in uefi mode from a usb stick without success.
> >
> > Using:
> >
> > $ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/sdc1/efi
> > --removable Installation finished. No error reported.
> >
> > ..but on booting the dell in uefi mode, no bootable device is found.
> > Needless to say, it will boot from a usb stick in legacy bios mode.
> >
> > Does anybody know if the above is possible?
> >
> >
> On a USB stick, the grub executable might need to be at exactly
> /EFI/BOOT/BOOTx64.EFI (and the partition must be FAT of course).  See
> section 3.4.1.1 of the UEFI 2.1 spec.  You could probably just copy the grub
> executable to that location from wherever it is.
> 
> 
In fact the issue seems to have been that the usb stick was partitioned with fdisk.

When I used gdisk to partition the usb stick, grub automatically created BOOTX64.EFI, rather than grub.efi, and the
usb stick was recognized in uefi boot.

Thanks for the suggestion


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Boot dell in uefi mode from usb stick
  2012-06-12 16:04 ` Stuart_Hayes
  2012-06-13 22:55   ` John Frankish
@ 2012-06-17 14:05   ` John Frankish
  1 sibling, 0 replies; 5+ messages in thread
From: John Frankish @ 2012-06-17 14:05 UTC (permalink / raw)
  To: The development of GNU GRUB

> > > -----Original Message-----
> > > From: grub-devel-bounces+stuart_hayes=dell.com@gnu.org
> [mailto:grub-
> > > devel-bounces+stuart_hayes=dell.com@gnu.org] On Behalf Of John
> > > devel-bounces+Frankish
> > > Sent: Monday, June 11, 2012 8:38 PM
> > > To: grub-devel@gnu.org
> > > Subject: Boot dell in uefi mode from usb stick
> > >
> > > I'm not sure if this is possible, but I've been trying to boot a
> > > dell laptop (latitude e6220) in uefi mode from a usb stick without success.
> > >
> > > Using:
> > >
> > > $ sudo grub-install --target=x86_64-efi
> > > --boot-directory=/mnt/sdc1/efi --removable Installation finished. No
> error reported.
> > >
> > > ..but on booting the dell in uefi mode, no bootable device is found.
> > > Needless to say, it will boot from a usb stick in legacy bios mode.
> > >
> > > Does anybody know if the above is possible?
> > >
> > >
> > On a USB stick, the grub executable might need to be at exactly
> > /EFI/BOOT/BOOTx64.EFI (and the partition must be FAT of course).  See
> > section 3.4.1.1 of the UEFI 2.1 spec.  You could probably just copy
> > the grub executable to that location from wherever it is.
> >
> >
> In fact the issue seems to have been that the usb stick was partitioned with
> fdisk.
> 
> When I used gdisk to partition the usb stick, grub automatically created
> BOOTX64.EFI, rather than grub.efi, and the usb stick was recognized in uefi
> boot.
> 
> Thanks for the suggestion

Just to confirm, the following copies the required files:

$ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/sdb1/EFI/BOOT --efi-directory=/mnt/sdb1 --removable

$ cat /mnt/sdb1/EFI/BOOT/grub/grub.cfg

menuentry "core" {
  linux (hd1,gpt2)/boot/vmlinuz quiet noswap tce=sdb2 tz=GMT-4 blacklist=bcma blacklist=ssb blacklist=b43 text
  initrd (hd1,gpt2)/boot/core.gz
}

In the F2 dell menu, you need to change from legacy (bios) boot to uefi, create a boot entry and navigate to /EFI/BOOT/BOOTX64.EFI

Then things work :)   (with a 3.0.21 kernel)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-17 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12  1:38 Boot dell in uefi mode from usb stick John Frankish
2012-06-12 16:04 ` Stuart_Hayes
2012-06-13 22:55   ` John Frankish
2012-06-17 14:05   ` John Frankish
2012-06-12 18:36 ` Jordan Uggla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.