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 - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-06-2016, 12:21 PM   #1
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Preparing to upgrade from BIOS to UEFI


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.

Thanks in advance.
 
Old 03-06-2016, 01:11 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-06-2016, 01:38 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,788

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
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.
 
1 members found this post helpful.
Old 03-06-2016, 02:44 PM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,978
Blog Entries: 33

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
dracolich,

Naturally, backup all your personal data to an external hard drive or similar.

Then relax with a cup of coffee and watch this video:

https://www.youtube.com/watch?v=kBIWSEoWIkw
 
Old 03-06-2016, 02:53 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
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.
 
Old 03-06-2016, 03:47 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
They call BIOS mode CSM mode in UEFI setup.
 
1 members found this post helpful.
Old 03-06-2016, 04:06 PM   #7
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
Thank you, Emerson!

beachboy2, I always keep most of my important stuff on external disks.
Coffee... check
 
Old 03-06-2016, 09:24 PM   #8
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,788

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
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.
 
Old 03-06-2016, 09:37 PM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You can use GPT in BIOS mode.
 
Old 03-07-2016, 05:56 AM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,788

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Quote:
Originally Posted by Emerson View Post
You can use GPT in BIOS mode.
Wow! News to me...thanks! One more reason to hang on awhile longer
 
Old 03-07-2016, 06:40 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 03-07-2016, 07:23 AM   #12
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
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!
 
Old 03-07-2016, 01:22 PM   #13
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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
 
Old 03-12-2016, 09:32 AM   #14
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
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!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firmware upgrade BIOS tu UEFI alfredo10 Linux - Laptop and Netbook 7 12-24-2015 11:49 AM
BIOS (UEFI?) upgrade on new ASUS laptop l33y Linux - Newbie 6 05-12-2014 06:31 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
BIOS vs. uEFI? confuey Linux - Kernel 5 05-22-2012 02:40 PM
UEFI and BIOS: What is it really? cruiser General 10 09-27-2011 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:12 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