02-08-2012 09:18 AM - edited 02-08-2012 10:54 PM
A few of us are asking:
How to install Linux on UEFI systems where GRUB fail to install? Because after installing Linux, my MBR is messed up, and I get a "no operating system found" at system startup.
abvasili
Solved! Go to Solution.
02-08-2012 09:01 PM
Hi everyone,
I’m writing this because a lot of people out there are facing some issues in installing Linux on a machine that have UEFI capable bios.
A lot are complaining that GRUB is not installing properly, leaving a computer in an unusable state. Usually they get an error message at the startup: “no operating system found”.
I’m sure this is a temporary situation, and Linux distros will find their way to install in UEFI based bios and GPT formatted HDDs as easy as 123.
In a short and simple QA I will try to explain how to fix this:
Question: Why GRUB is not installing properly in my machine?
Answer: New machines have UEFI capable bios. This means that by default MS Windows is installed in UEFI mode and this requires a GPT formatted Hard Disk. At the present GRUB cannot install itself in GPT partition table. Some new distros, with kernel 3.0 and above are reported to support UEFI.
Question: How to make GRUB work in my machine?
Answer: You should convert your HDD from GPT partition table to MBR partition table (or MSDOS in Linux) and after that install your Linux OS.
Question: How can I convert my HDD from GPT to MBR partition table?
Answer: You can use Ubunu or another Ubuntu based distro in live mode. In live mode, find the program GPARTED. Wait until it recognizes all your drives and select your HDD. Right click over it, and choose the option to create a new partition table. Choose MSDOS from the list. Hit ok than apply/commit all changes. ATTENTION this will erase all your data and MS Windows (or any other OS) will disappear. Your HDD is now converted in MSDOS or MBR. You can now boot your preferred distro, create your partition scheme and install Linux.
Question: Do I need to make any changes to my bios settings?
Answer: If you have a capable UEFI and LEGACY bios, put the bios in Legacy boot only or Both enabled with Legacy boot first.
I hope this little QA will be of help. If any question may arise or more help is needed, post your questions here, I will try to help you further (if I can).
Best regards
Abvasili
02-13-2012 01:07 AM
Hi again,
I would like to answer to another question, just in case:
Question: Can I dual boot Win7 and Linux on a UEFI capable bios?
Answer: Yes you can. If your HDD is formatted in MBR partition table (or msdos) than you can install first windows 7 and than the distro of your choice. BUT, careful, if you install windows from a DVD media it will convert your HDD in GPT partition table and dual boot will be almost impossible... (or will give you a lot of headache)
to avoid this, dump the win7 iso to an usb using Windows 7 USB/DVD Download Tool. Installing from USB will not change the hdd in GPT partition table.
take care
abvasili
04-05-2012 01:58 PM
Thank you so much! This was starting to drive me nuts on a x130e.
I appreciate the post.
04-05-2012 05:04 PM - edited 04-05-2012 05:05 PM
abvasili wrote:
Hi again,
I would like to answer to another question, just in case:
Question: Can I dual boot Win7 and Linux on a UEFI capable bios?
Answer: Yes you can. If your HDD is formatted in MBR partition table (or msdos) than you can install first windows 7 and than the distro of your choice. BUT, careful, if you install windows from a DVD media it will convert your HDD in GPT partition table and dual boot will be almost impossible... (or will give you a lot of headache)
to avoid this, dump the win7 iso to an usb using Windows 7 USB/DVD Download Tool. Installing from USB will not change the hdd in GPT partition table.
take care
abvasili
Thanks for posting this.
I don't have a machine to test on, so perhaps you can answer this question: Is the above still a problem if the partitions are created in advance - before running the Windows install DVD.
I usually avoid having a Windows install mess with the MBR and partitioning by creating 4 primary partitions in advance (with gParted usually) and then telling the Win installer to use one of them.
Thanks again,
Z.
R40 XP Pro + Linux + Solaris, T43 XP Pro + Linux + Solaris, T61 XP Pro + Win 7 + VMs, T400 Win 7 Pro 64 + too many VMs to count, New T420 - a work in progress ... GeezBlog
04-07-2012 01:28 PM - edited 04-07-2012 02:03 PM
Hi Z,
If you do not want the installation media to touch your MBR (and converting it to GPT) than put the motherboard in legacy mode only... theoretically it will not change your partition table. Installing from an USB media will always by default format the disk in MBR or accept your already prepared partitions on a MBR partition table.
Hope this helps.
nebrA
04-13-2012 11:53 AM
How about MBR partition table on UEFI BIOS system? I've got Lenovo ThinkPad Edge E320 and three partitions on it out of the box. Windows can only boot in Legacy mode but... there is "System" partition which looks exactly the same as UEFI boot partition. As far as I know partition table conversion from MBR to GPT causes a lot of trouble (problems witch drivers provided by Lenovo). I've tried installing Ubuntu and Grub on the same, separate partition and after that adding Ubuntu entry to boot.ini file but there is no such.
11-20-2012 03:24 PM
this does not look good :
http://www.phoronix.com/scan.php?page=news_item&px
Lenovo UEFI Only Wants To Boot Windows, RHEL
02-04-2013
04:28 PM
- last edited on
02-05-2013
10:04 AM
by
zoltanthegypsy
I have an alernative fix that does not require the use of MBR. It is a 100% UEFI solution.
I can only vouch for it working on a Lenovo ThinkStation S30, but I'm fairly sure this will probably work for other systems.
Please see here.
Moderator note: link corrected - target post has moved.
02-07-2013 10:09 AM
That's interesting.
But with older/simpler BIOSs it is not possible to edit UEFI boot manager. That's the case of x120e (the model I have).