For the sake of experimentation, I am trying to document a minimal procedure for a pure EFI boot of 14.04 on a Mac Mini.
This involves installing a base system (using the Mac-flavoured server install ISO) to the hard drive, but NOT installing GRUB to the MBR. GRUB is installed to the first partition of the hard drive, but until I manually set up the EFI boot partition, the system will be unbootable.
Is there a way to use the bootloader on the USB installer to boot into the installed system manually? I have access to "advanced options" (ie. the bootloader command line) on the installer, but I don't know what bootloader it is, and so I can't find full documentation for it.
Don't use the Mac-specific installer. Use the normal (server, desktop) installer, install the system using all the defaults (except avoid LVM), and then reboot.
Boot off the USB installer again, but when you see the GRUB menu, press C to bring up the GRUB console.
Finding your installation's drive
At the GRUB console, do
You may not get exactly the same results as this, but you'll have some options. You want to look for your new installation, not the installer/live system. I suggest finding a partition with your new user's home directory on it:
Keep trying this pattern until you find it.
Finding your installation's boot partition
If you know you installed everything to one partition, you're done — just use the result from the last step, the
(hdX,gptY)
. If you didn't, or you're unsure, keep thehdX
part, but go through all thegptY
options looking for a/boot/grub
directory:Nope, not that one.
Found it!
Now you want to set this as your root for further commands:
Figuring out the boot command
I found that the only way to boot properly was to use the UUID of the drive (ie. no shortcuts with
/dev/sdaX
!) - so let's get that:Note the UUID string! Yours will be different. Now tell GRUB where Linux is:
The GRUB console can do tab completion, so if you just type out the
vmlinuz
part and hit tab, then hit . and tab again... you won't have to type out the whole filename. But do make sure the.efi.signed
bit is there! And yes, you will have to type out that whole UUID.Now set the
initrd
(initial RAM disk):Booting
Type:
You should find yourself booted into your installation!
I'm no GRUB wizard, so I'd welcome any tips on how to trim this down. Especially the UUID part, that is a little bit heinous.