LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2015, 09:24 AM   #1
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
Post Installing in a UEFI way that won't get steam-rolled by Windows?


I want to install Linux before Windows. I learned UEFI is scary. I've written this:
http://www.linuxquestions.org/questi...windows-36461/

TL;DR: Make an ESP of 512MiB. Let Windows have the space directly following that (or not ) You are going to get better results, if you have a proper mainboard.

Any suggestions or remarks on this issue?
 
Old 03-17-2015, 02:16 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
I learned UEFI is scary
no it is not

but
the Microsoft's bastard child of ufei, "secureboot" is a troll under the bridge

just reinstall grub after Microsoft ( the other way is best - win then linux-)

or
put windows on a different hard drive
 
Old 03-17-2015, 05:34 PM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Your link is a little confused.

EFISTUB is not a bootloader, it is a feature of kernel versions after 3.3 that allows the kernel to bootstrap itself without the assistance of a bootloader in an EFI system.

You cannot "install GRUB unto the ESP" -- GRUBEFI installs it's configuration files on the ESP and then writes an entry into the motherboard's NVRAM that loads the GRUB bootloader.

It is possible to write an NVRAM entry manually using the `efibootmgr` command (or `bcdedit` in a Windows system) and boot the kernel image directly with this (I use this method to boot my Arch & Debian systems).

A word of warning: on one of my laptops, if Windows installs in EFI mode the firmware (BIOS) will boot the Windows bootloader (located on the EFI system partition) regardless of any attempt to change the boot order or delete the NVRAM entry using `efibootmgr` or `bcdedit`; the firmware re-creates the NVRAM entry if the "Microsoft" directory is found on the ESP. It is still possible to select the other NVRAM entries but Windows will always boot by default on that machine.

https://www.happyassassin.net/2014/0...lly-work-then/
 
2 members found this post helpful.
Old 03-17-2015, 06:52 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
@Head on a Stick: that's useful info, but btw, could you name which laptop model and manufacturer has that annoying behaviour so that we can all avoid it/them in the future if possible?
 
Old 03-18-2015, 02:58 AM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by mostlyharmless View Post
@Head on a Stick: that's useful info, but btw, could you name which laptop model and manufacturer has that annoying behaviour so that we can all avoid it/them in the future if possible?
Compaq CQ58
 
Old 03-18-2015, 04:44 PM   #6
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262

Original Poster
Blog Entries: 2

Rep: Reputation: 49
JohnVV, I'm going to get to know my enemy As far as I can tell, on good hardware it's even possible to add your own white-listed keys, so any flavour of any OS can theoretically boot with SecureBoot. For Linux I will mainly attempt it for the fuuuuun of it. For Windows I'm keeping the option open version 10 requires SecureBoot. (Chances are high they won't actually require it.) Also for Windows I appreciate the advertised security from rootkits.
Quote:
Originally Posted by Head_on_a_Stick View Post
EFISTUB is not a bootloader
That makes sense. Thanks for the clarification, I'll update the blog entry accordingly.
Quote:
Originally Posted by Head_on_a_Stick View Post
You cannot "install GRUB unto the ESP" -- GRUBEFI installs it's configuration files on the ESP and then writes an entry into the motherboard's NVRAM that loads the GRUB bootloader.
As far as I gather GRUB will actually reside in the ESP. The NVRAM will then just hold a value that says GRUB is the thing to boot.
I'm still reading that article you linked, Head on a Stick, but I need some sleep now.
Thanks for the replies.
 
Old 03-19-2015, 02:11 PM   #7
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by Weapon S View Post
it's even possible to add your own white-listed keys, so any flavour of any OS can theoretically boot with SecureBoot. For Linux I will mainly attempt it for the fuuuuun of it.
http://kroah.com/log/blog/2013/09/02...-linux-kernel/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI won't boot LiveCDs on my laptop launchpadtt Linux - Laptop and Netbook 11 01-14-2014 08:41 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
Windows XP won't boot with Grub after installing Ubuntu 8.04 ktscheschke Linux - Newbie 30 02-18-2010 08:36 AM
Windows ME won't boot after installing RH9 maxwel Linux - Newbie 5 12-11-2003 07:38 AM
After installing new NVIDIA drivers, X-Windows won't start glock19 Linux - General 4 12-19-2001 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration