LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2020, 11:43 AM   #1
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Rep: Reputation: Disabled
A problem has occurred with Arch Linux and Slackware, in dual boot (UEFI / EFI).


Good morning everyone.

I have used Arch Linux and Slackware (current) in dual boot for about a year. I like these two distributions very much, for several reasons.
Until a few days ago I used them in Legacy (MBR) mode and made the decision to migrate to EFI (UEFI) mode, as my computer supports it. Before, I installed Arch first, completely, and then I installed Slackware (without Lilo, without Grub). Restarted the computer, entered the "arch-chroot / mnt", mounted the Arch partitions (/ and / home, for example) and asked him to find Slackware with the command grub-mkconfig -o / boot / grub / grub. cfg), after I reinstalled Grub ("grub-install /dev/sdx.... and maybe I didn't even need this reinstallation of GRUB).
Everything was fine, I did it. The only times I had problems with my dual boot was because of current updates (which sometimes gives some problems, for those who are not experts, as is my case) I simply reinstalled Slackware, again without Lilo and without Grub), and repeated the procedure of asking Arch to find Slackware with the command "grub-mkconfig -o /boot/grub/grub.cfg". Well, as I said at the beginning of my help request, I decided to switch my SSD to GPT and installed Arch creating the EFI partition [/ boot / efi] is required to install GRUB on it.
After this complete installation, I started to install Slackware (current) thinking about using the Arch Linux EFI partition. I noticed that during the installation of Slackware "automatically" the EFI partition (native to Arch) was detected and it was added to Slackware's FSTAB (I didn't add it). I followed the same procedure that I did when using Legacy / MBR and completed the installation of Slackware without installing either LILO or GRUB, as I was going to let Arch Linux GRUB manage the dual boot, as I always did. Restarting the computer, I asked Arch (arch-chroot ....) to locate Slackware to include it in GRUB. This time, using EFI, this process took a lot longer than it did before, maybe 5 minutes, but Arch found Slackware and added it to the GRUB boot. Finally the problem, which did not occur before: When updating Slackware, including the kernel, when I restarted the computer I saw that GRUB disappeared.
It was as if there was no distribution installed on the disc. I had to boot the pendrive with the Arch Linux ISO, go to arch-chroot, mount the Arch partitions and reinstall the complete GRUB. With that, I was able to find Slackware again. I certainly shouldn't be doing something that I should have done, to have this problem, after the first Slackware update. Before (Legacy / MBR) there was no such problem that occurred with having a / boot / efi partition, remembering that the only times I had a problem with current updates (when I updated the kernel, without problems) was something related the graphical interface (which had nothing to do with boot / GRUB).
I would really like to know what to do or how to do it, in order to have the same functionality, without major problems, in my dual boot of Arch with Slackware current (in UEFI / EFI).

I take this opportunity to ask you to reveal my imperfect English.
 
Old 07-31-2020, 01:01 PM   #2
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
probably there are two ways to go if i were in your shoes ; either grub2 with efi from Arch or Elilo from slackware.

First pre-requisit to use uefi , you can disable the secure boot element but you need a gpt table partition on your HD and a circa 100 Mb partition using file type EF00 .

probably first to help even experts on here can you take a graphic of your HD using maybe gparted i,e a snapshot.

What I can tell you is that is that https://sourceforge.net/projects/ref...0.zip/download when put on a usb stick is an excellent tool that i found would boot my wifes Windows 10 64 bit PC with UEFI firmware and also my Slackware.
 
Old 07-31-2020, 01:09 PM   #3
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
I don't know if I was clear enough. The SSD is in GPT. Secure boot is disabled. I had no problems installing either Arch or Slackware on EFI, having created a 512 mb EFi partition (as stated on the Arch Wiki). It seems to me that the problem is that when I install Slackware it automatically recognizes that there is an EFI partition (which already has Arch's GRUB) and adds it to FSTAB. I will go to the end, like this, without any problems (it is not recommended to install Elilo in this case, and I go straight through). Everything works, dual boot, I can use both systems. The problem, I believe, was when I updated Slackware (kernel), I probably should be forgetting to do something. When using dual boot with both in Legacy, everything was very smooth (neither installed Lilo nor Grub on Slackware, let Arch manage the boot). I want to find out how to have this dual boot, with this EFI partition, and be able to update everything normally in Slackware, without Grub disappearing.
 
Old 07-31-2020, 02:15 PM   #4
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by captain_sensible View Post
probably there are two ways to go if i were in your shoes ; either grub2 with efi from Arch or Elilo from slackware.

First pre-requisit to use uefi , you can disable the secure boot element but you need a gpt table partition on your HD and a circa 100 Mb partition using file type EF00 .

probably first to help even experts on here can you take a graphic of your HD using maybe gparted i,e a snapshot.

What I can tell you is that is that https://sourceforge.net/projects/ref...0.zip/download when put on a usb stick is an excellent tool that i found would boot my wifes Windows 10 64 bit PC with UEFI firmware and also my Slackware.
Anyway, thanks for listening.

I have only two working, in dual boot. Grub 2 is on the EFI partition (512 nb) that is mounted on the Linux arch. Slackware was installed in second (without Lilo, without Elilo, without Grub, of course). I managed to redo Grub, after updating Slackware current (the kernel), calmly. The Slackware Fstab contains the "EFI" partition that at first belongs to Arch Linux (as I explained in the initial psotagem, this is done automatically when installing Slackware, it detects), but there is no initiator in Slackware, only in Arch. I'm using it here. I want to find out what remains to be done, configure it, so that when I go to update the Slackware kernel again (something I did without problems when the dual boot was on the Legacy / MBR machine), GRUB will not disappear again. There must be a way, and it is probably not complicated, but that only I ignore how to do it.

Here is an image.
 
Old 07-31-2020, 02:18 PM   #5
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
The image
Attached Thumbnails
Click image for larger version

Name:	imagem dualboot.jpg
Views:	21
Size:	129.3 KB
ID:	33771  
 
Old 07-31-2020, 05:50 PM   #6
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
I managed to solve

Quote:
Originally Posted by Luckylin View Post
The image
I know it's not really a newbie issue. But, I think I found the solution, after doing some tests here:

just comment (#) the "EFI partition" (which is on Arch Linux) and that Slackware automatically adds its FSTAB. When installing Slackware, after Arch, neither Lilo nor Elilo nor Grub. The solution was to let Arch's Grub manage the startup, commenting on Slackware's FSTAB "efi" before any updates.

\o/
 
Old 08-01-2020, 03:08 AM   #7
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
After a kernel update in Slackware you can copy the vmlinuz and initrd.gz to
Code:
/boot/efi/EFI/Slackware/
. That way you don't overwrite the boot loader and don't need to edit Slackware's fstab. Also you can change boot loader with efibootmgr if you need to. slackpkg is updated in Current so you can't accidently run lilo after updating the kernel.
 
1 members found this post helpful.
Old 08-01-2020, 06:28 AM   #8
Luckylin
Member
 
Registered: May 2020
Location: Brasil
Distribution: Slackware; Debian
Posts: 30

Original Poster
Rep: Reputation: Disabled
I could only read your post now, thank you very much RadicalDreamer
Is noted here, your orientation \ o /
 
Old 08-01-2020, 09:00 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

For your future information look at Slackware Doc Project
Quote:
Getting Started with Slackware

  • Getting Involved: describes various ways Slackers (both new and experienced users) can contribute to the Slackware community.
  • Slackware Live Edition: if you want to try a Live Edition of Slackware before committing it to your hard drive.
Maybe the project will help you with future Slackware work.
Hope this helps.
Have fun & enjoy Slackware!
 
  


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] Can /boot/efi/EFI/Slackware/elilo.conf be manually edited? ardya Slackware 21 05-08-2020 03:55 PM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] UEFI BIOS not recognizing Linux EFI Bootloader (Dual Boot) eco_bach Linux - Newbie 16 12-21-2017 03:25 PM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

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