Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been dual booting with Windows 7 and Slackware 14.1 for quite some time. My current mobo is a Biostar N68S3+ and I am preparing to upgrade with a ASRock 970M which has UEFI. I will be keeping the same CPU, RAM, disks and add-on cards. I have not used UEFI before and I would like to avoid reinstalling my OSs if possible. Slackware is my primary, Win7 is for games and sometimes IT homework.
I have done some searching but still unclear how to prepare my /boot and bootloader before upgrading. Until now I have have always used the LILO bootloader, and just this morning replaced it with GRUB 2.00. I have read references to creating a /boot/efi partition but not clear if it is required and what should be in it. Can GRUB boot my system boot without that partition?
After booting I can deal with drivers. My first concern is booting.
I just went trhu this ordeal a couple of weeks ago. Got it working after resolving some PEBCAK issues.
To my knowledge, yes you must have fat32 formatted boot partition. This is the only format UEFI firmware can access to load the bootloader or EFI stub kernel.
It is my conviction that all of us are mistreated by the word "upgrade" way too often. Way back when I was using Windows 70% of the time, I "upgraded" nearly as a reflex. Over time I began to notice that the changes were really only commonly welcome in hardware drivers and more often than not on other issues caused a lot of work for something I neither needed nor wanted. Specific to UEFI since there really are only a few minor and distinct advantages yet realized, I think you should consider those and if they suit you or if you're better off enabling "Legacy BIOS Mode" which should involve no adjustments.
Thank you, Emerson, I will prepare a fat32 boot partition.
enorbet, I feel the same about upgrading. I remember upgrading a socket7 mobo and CPU almost once per year just because it was so easy. Now I put it off much longer, upgrading when the benefits are worth the effort. In this case I will gain USB3, >8GB max RAM and overclocking to name a few. The manual for the 970M does not mention if a legacy BIOS option is included. I will look into that as well. Thank you.
Just FTR, AFAIK currently the only benefit to UEFI that Legacy Mode can't offer is GPT over MBR which can't properly deal with drives over 2TB. The GUID feature of GPT also has a bit of advantage over the MBR scheme. USB3 and >8GB Ram is not affected and will work equally in either system.
Some brain dead BIOSes will not boot with GPT, they are looking for boot flag. Fortunately, gdisk will create protective MBR even on GPT disks, so setting the boot flag on protective MBR will keep these BIOSes happy.
Of course, MS Windows will not boot with BIOS+GPT.
Many thanks to you both, enorbet and Emerson, for the thoughts and ideas. I have a lot to learn about the differences between UEFI and BIOS. The book that comes with my new mobo is only a quick start. I found the full manual as pdf last night and it shows where to find CSM mode. My biggest disks are two 1TB drives, one is portable and the other is my NAS. lol So, I have no requirement for UEFI and will definitely go the legacy route. Thanks, guys!
For those interested, below is gdisk output for GPT disk with protective MBR. This disk will boot in legacy BIOS and UEFI machine. Furthermore, gdisk creates protective MBR automatically on its first run, all you need is to save it.
Code:
gdisk /dev/sda -l
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 250069680 sectors, 119.2 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C7B083E0-B069-4A3A-B1CB-6497D4CA8B39
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 250069646
Partitions will be aligned on 2048-sector boundaries
Total free space is 4061 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 409600 199.0 MiB EF00 EFI System
2 411648 250069646 119.0 GiB 8300 Linux filesystem
Just posting back to say that I have completed the upgrade. With the answers and information I received here the transition was smooth and easy. No problems booting and my Slackware (with kernel 4.2.0) had 0 driver issues. The LQ community rocks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.