PDA

View Full Version : [ubuntu] Grub turn off efi mode



c-m
May 8th, 2014, 04:32 PM
How do I prevent grub from installing the efi version?

I have booted from a live USB created using Netbootin on OSX and installed Ubuntu onto a USB hard drive with MBR partition table (not GPT), yet for some reason the installation always sets grub up as EFI. I don't even have an EFI partition. I have even ran boot repair, and all it does when I try to install grub to /dev/sdb is say "why don't you try creating an EFI parition?" It fails to install the standard non-efi grub.

grahammechanical
May 8th, 2014, 05:30 PM
I wonder if you are confusing GPT and UEFI.


UEFI is meant to replace the Basic Input/Output System (BIOS (http://en.wikipedia.org/wiki/BIOS)) firmware


Although it forms a part of the Unified Extensible Firmware Interface (http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface) (UEFI) standard (Unified EFI Forum (http://en.wikipedia.org/wiki/Unified_EFI_Forum) proposed replacement for the PC (http://en.wikipedia.org/wiki/IBM_PC)BIOS (http://en.wikipedia.org/wiki/BIOS)), it is also used on some BIOS systems because of the limitations of master boot record (http://en.wikipedia.org/wiki/Master_boot_record) (MBR) partition tables,

http://en.wikipedia.org/wiki/GUID_Partition_Table

http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface

If your motherboard has a EFI/UEFI boot system then I do not think that you will be able to stop Grub setting up as EFI. Unless you set Legacy mode.




[*=left]if the other systems (Windows Vista/7/8, GNU/Linux...) of your computer are installed in EFI mode, then you must install Ubuntu in EFI mode too.



if the other systems (Windows, GNU/Linux...) of your computer are installed in Legacy (not-EFI) mode, then you must install Ubuntu in Legacy mode too.


Remark: Some BIOSes allow one to set up the boot mode for the optical drive separately from the boot mode for the HDD.

https://help.ubuntu.com/community/UEFI
Regards.

c-m
May 8th, 2014, 05:35 PM
Nope not confusing anything I'm afraid.

My motherboard will boot both UEFI and bios mode. Stricktly speaking the motherboard only has a bios it doesn't have UEFI.

It's an Intel DG41AN which previously had a Ubuntu on in regular bios mode without any issue.

The problem is that when installed from a live usb booted in EFI mode because the live usb will not boot in bios mode, it installs Ubuntu with Grub in EFI mode. I do not want this. I want it to install Gurb in regular mode.

The installation is to an external disk /dev/sdb3 (boot flag is on that partition). Gurb has been told to install to the MBR of /dev/sdb.

I've never had to do anything special before, but then my Live USBs were always created on an existing Ubuntu system using Netbootin and not via a Mac using Netbootin.

Cheers.

Luke M
May 8th, 2014, 08:56 PM
The installer always installs in EFI mode if you boot it in EFI mode. So you need to boot it in BIOS mode.

If you don't know how to select between BIOS and EFI on your system, you could try renaming the "boot" directory on the USB stick. That would prevent EFI booting.

c-m
May 8th, 2014, 09:14 PM
It's not a case of selecting either or in the bios, enabling EFI boot in the bios doesn't prevent regular boot. At least it never has in the four years I've owned this board.

If I turn Enable EFI boot off in the bios then the live usb stick will not boot at all even if I delete/rename the /boot directory

ubfan1
May 8th, 2014, 10:57 PM
The Ubuntu live media should definitely boot either way, using the grub bootloader for UEFI and the syslinux bootloader for legacy boot.