LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-30-2014, 05:10 PM   #1
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,631

Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
Switching my system to UEFI this weekend.


My plan for this weekend is to switch my dual-booting system to UEFI. I plan to end up with a BIOS firmware boot menu containing two entries: one for a UEFI-booted Windows (7) and one for a UEFI-booted Slackware.

Currently, both operating systems are on legacy-mode boots. I plan to change that, and I hope this will let me get away bootloader-chaining, MBR-overwriting, and the "add Windows to lilo.conf" complexity that we're all used to dealing with.

I've read this to prepare:

UEFI boot: how does that actually work, then?

And that's "a UEFI" and not "an UEFI", right? It assume it's pronounced "Yuffie?" Like the Final Fantasy character?

Last edited by dugan; 05-30-2014 at 11:34 PM.
 
Old 05-30-2014, 07:43 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,098

Rep: Reputation: Disabled
slackdocs seems to be slow right now, but I did write some info about UEFI when I switched, dunno if it will be useful:
http://docs.slackware.com/howtos:sla...uefi_and_elilo
 
Old 05-30-2014, 08:09 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Do report how it went. I've been thinking about it for some time on my laptop.
 
Old 05-30-2014, 10:33 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,226

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Quote:
Originally Posted by dugan View Post
Currently, both operating systems are on legacy-mode boots. I plan to change that
In-place ?. That could be an interesting exercise. I had no end of trouble with Win7 (64-bit) installing on a new-build UEFI m/board - Win7 was an OEM rather than commercial copy and apparently makes quite a difference. I will also be watching with interest.

[caveat]On the system in question I have neither Slack nor elilo[/caveat]
 
Old 05-30-2014, 10:52 PM   #5
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
I also switched from BIOS to UEFI on my laptop.
Switching Windows was a headache, Linux not so much.

Here is a wiki page I had written and subsequently refined: https://wiki.manjaro.org/index.php?t...m_BIOS_to_UEFI

To switch, I converted my MBR partition table to GPT using http://www.rodsbooks.com/gdisk/mbr2gpt.html

Then created a UEFI partition (fat32 - 512mb), and switched to UEFI in the firmware.

Then I booted Windows installation disk, and tried automatic repair many times, which probably did not work for me, so tried to install Windows bootloader manually onto the uefi partition using the bcdboot command.
(The following I found later: http://superuser.com/questions/46076...efi-bootloader)

After that I booted to my Linux install through chailoading via an external drive which runs Debian (and Grub), and ran the command to installing Grub-
Code:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Linux --recheck
But my laptop's firmware only recognises Windows (HP), so I had to install rEFInd for dual-booting.
https://wiki.manjaro.org/index.php?t...g_with_Windows

Alternatively, one can copy the grubx64.efi file to the Boot folder inside the EFI partition to make Grub default.
http://www.rodsbooks.com/refind/installing.html#naming
 
Old 06-01-2014, 01:17 PM   #6
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,631

Original Poster
Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
That was actually very painless.

My rig is a tower containing three hard drives: on SSD for Windows, one SSD for Linux, and an NTFS-formatted Caviar Red for storage. The motherboard is an Asus H87-Plus.

I decided to go for the "back up, wipe, install fresh" approach.

First, I disabled secure boot. It turns out that I'd had it on the entire time, and I never noticed because I was booting my operating systems in legacy mode.

Then I backed everything up, and started reinstalling Windows. I set the "CSM" setting in my firmware to "auto" and told my computer to boot the installation disc in UEFI mode. When the installation CD let me repartition the hard drives, of course I accidentally partitioned (and wiped out) the storage drive. That was fine, because I knew I would make that mistake and had backed the drive up. The rest of the installation went as normal. From Windows, I then repartitioned the storage drive, formatted the partition to NTFS, and restored the contents of the storage drive from the backup.

Then I booted my Slackware64 14.1 DVD in UEFI mode, and essentially proceeded according to README_UEFI.TXT.

I chose not to boot the kernel with KMS.

I used cgdisk to create three partitions on my Linux drive:
  • An EFI System Partition, size 100M (code EF00)
  • A Linux swap partition, same size as my RAM (code 8200)
  • A Linux partition, default size and code

When asked whether I wanted to add an EFI boot menu entry for Slackware, I said yes. I then rebooted.

Now, the boot menu that I get when I press F8 at boot has two entries: one for Windows (actually named Windows) and one for Linux (actually named Linux). Both entries were put there by the Slackware installer.

Last edited by dugan; 06-04-2014 at 05:16 PM.
 
3 members found this post helpful.
Old 06-01-2014, 01:19 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Thanks for posting the feedback. I might actually try it soon.
 
Old 06-04-2014, 03:20 AM   #8
dad_
LQ Newbie
 
Registered: Aug 2009
Location: St. Petersburg, Russia
Distribution: Slackware 14.1/current(x86 32 bit, x86_64), gentoo, debian, puppy, ubuntu
Posts: 29

Rep: Reputation: 1
booted my Slackware64 14.1 DVD in UEFI mode?

I was not able to UEFI boot the DVD, until I disconnected my old MBR HDD.(got freeze on grub start) Huge kernel (both 14.1 and current) also went to panic if MBR hdd was connected on boot. But with a generic kernel(from current, not tried it on 14.1) and initrd I managed to UEFI boot successfully with a mix of MBR and GPT hdds. Then just fixed all my mounts and root reference to use partition uuids(to avoid device name change problems) and now slackware64 current (on 3.14.4 generic kernel, not updated to 3.14.5 yet) boots flawlessly from UEFI. BTW Windows 7 Boot Manager always fails on MBR/GPT drive mix, but disconnecting controller channel with MBR drive from UEFI shell helps(was not the case with linux). I have more than 4 MBR partitions, maybe it causes some confusion.
 
Old 06-04-2014, 07:07 AM   #9
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 767

Rep: Reputation: 80
Is there any reason to switch to UEFI?
 
Old 06-04-2014, 07:39 AM   #10
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,186
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
Quote:
Originally Posted by moisespedro View Post
Is there any reason to switch to UEFI?
To use UEFI, or not to use UEFI? answers that question.
 
Old 06-04-2014, 09:35 AM   #11
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,631

Original Poster
Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
Quote:
Originally Posted by moisespedro View Post
Is there any reason to switch to UEFI?
Faster booting.

Easier multiboot setups.
 
Old 06-04-2014, 09:41 AM   #12
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 767

Rep: Reputation: 80
Quote:
Originally Posted by dugan View Post
Faster booting.

Easier multiboot setups.
How is it faster? And isn't multibooting already pretty easy?
 
Old 06-04-2014, 09:43 AM   #13
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,631

Original Poster
Rep: Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429Reputation: 1429
Quote:
Originally Posted by moisespedro View Post
How is it faster?
Hardware initialization is technically and objectively faster.

Quote:
And isn't multibooting already pretty easy?
I said easier!
 
Old 06-04-2014, 09:45 AM   #14
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 767

Rep: Reputation: 80
Well, I am thinking about giving it a try but I am too lazy.
 
Old 06-04-2014, 11:43 AM   #15
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,098

Rep: Reputation: Disabled
The reason to switch to UEFI and also to x86-64 is the same: because they are the future and because there are benefits. You will have to switch one day, the question is not if but when.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Dual boot Windows 8 and ubuntu on UEFI system enrico_dvchp Ubuntu 3 02-18-2013 12:10 AM
Slackware on a former UEFI system garpu Slackware - Installation 2 11-23-2012 10:59 PM
[SOLVED] Need advice installing slackware to a GPT/UEFI system arubin Slackware 38 10-21-2012 11:31 AM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
/ file system 81% from 50% over the weekend. AZDAVE Mandriva 6 05-12-2004 08:58 AM


All times are GMT -5. The time now is 11:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration