LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-04-2023, 10:12 AM   #1
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Grub and UEFI, installation guide


If anyone is interested I have installed Slackware 15 two or three times using the below guide and it all worked very well:

itkb.ro - IT knowledge base
linux :: slackware 14.2 with grub and uefi

https://www.itkb.ro/kb/linux/slackwa...-grub-and-uefi
 
Old 02-21-2023, 11:43 AM   #2
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 15.0 running i3
Posts: 494

Original Poster
Rep: Reputation: 174Reputation: 174
....just to say as well...

if, for instance, you are installing from USB make sure you choose your boot device from the UEFI section in the BIOS device list and not from the legacy section, it will probably be listed in both with the same label. During setup, once you have formatted your swap, your root and whatever else it should detect an EFI partition and offer to format it for you. If it doesn't and you carry on you will likely run into trouble - it won't offer to install elilo (even though you will skip it as per the instructions) and if you then carry on to the end of the install and follow the shell instructions, # chroot etc, they will also fail and your system won't boot.

One other thing, forgive me if you know already, if you do follow the instructions correctly and everything goes well, type exit (from where you did chroot in) and then reboot.

Sorry if I'm not too technical with this, I don't really have enough knowledge to explain all that is going on here, but if you follow what I say you should be fine.

Hope it helps someone anyway.
 
1 members found this post helpful.
Old 02-21-2023, 12:53 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Thanks for the tips!

Quote:
Originally Posted by rkfb View Post
if, for instance, you are installing from USB make sure you choose your boot device from the UEFI section in the BIOS device list and not from the legacy section, it will probably be listed in both with the same label. During setup, once you have formatted your swap, your root and whatever else it should detect an EFI partition and offer to format it for you. If it doesn't and you carry on you will likely run into trouble - it won't offer to install elilo (even though you will skip it as per the instructions) and if you then carry on to the end of the install and follow the shell instructions, # chroot etc, they will also fail and your system won't boot.
If this should happen,it is worth noting that you may easily recover without reinstalling everything (assuming your partitioning was originally correct).

One easy way is to simply reboot into the install media from the UEFI device as noted above. Then run setup as if performing a new install and select partitions, at which point it should detect the EFI partition and offer to format it for you if it is not already formatted. Continue installation but skip over package selection and other options until you are offered the LILO and ELILO options and configure those as necessary... reboot.

It has also been my experience that you may safely install both LILO and ELILO which will allow booting via EFI or Legacy.

Hope that helps!

UPDATE: As pointed out below by colorpurple21859, be sure to NOT reformat the / (root) or other already installed partitions when selecting partitions!

Last edited by astrogeek; 02-21-2023 at 02:41 PM. Reason: Updated
 
1 members found this post helpful.
Old 02-21-2023, 01:02 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
One easy way is to simply reboot into the install media from the UEFI device as noted above. Then run setup as if performing a new install and select partitions, at which point it should detect the EFI partition and offer to format it for you if it is not already formatted.
If you use this method to recover, make sure you select no when asked to format root partition at the "select target" stage.

Last edited by colorpurple21859; 02-21-2023 at 01:03 PM.
 
1 members found this post helpful.
Old 03-13-2023, 12:17 AM   #5
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
I'm pretty sure I've followed all the fore mentioned steps, followed the code from https://www.itkb.ro/kb/linux/slackwa...-grub-and-uefi more than 3Xs and I keep getting: "grub-install: error: unknown filesystem"

#grub-install --target=x86_64-efi --efi-directory=/boot/efi bootloader=id=grub
Installing for x86_64-efi platform.
grub-install: error: unknown filesystem

Why is grub-install failing, with an unknown filesystem error? I've tried formatting Partitions with fdisk & cfdisk, gone as far as merely doing 3 Partitions EFI, /swap, /
 
Old 03-13-2023, 01:11 AM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
You could face the error described in this thread
https://www.linuxquestions.org/quest...l-4175722697/?

Workaround in the last posts.
 
  


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
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
Can't get dual boot, win 7 uefi and elementary freya os uefi working shywolf Linux - Newbie 4 12-10-2015 06:14 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Help Creating UEFI A MENU For My Bootable (BIOS/UEFI) CDROM ssenuta Linux - Hardware 0 08-27-2012 09:11 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

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