LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-10-2019, 03:52 PM   #16
wirelessmc
Member
 
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183

Original Poster
Rep: Reputation: 37
reinstall elilo within the booted (slackware64) OS


Ok one other thing I noted with your refind.conf (and this could very well be the issue!)

The Options line i.e. options "ro root=UUID=..." MUST precede your initrd EFI/Slackware/initrd.gz line!
I found this out by fiddling with my menuentry sections. They too didn't work until I revised this order. Look carefully at the example in the doc page for Ubuntu 16.04. That is the required order for the menuentry section.
 
Old 10-10-2019, 03:53 PM   #17
wirelessmc
Member
 
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183

Original Poster
Rep: Reputation: 37
reinstall elilo within the booted (slackware64) OS

The doc page should be revised to reflect this.
 
Old 10-10-2019, 04:09 PM   #18
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
OK, a bargain : you tell me how to get refind to work and I'll tell you how to do a multiboot with elilo.
I can't tell you how to get refind working but I can help you with Clover EFI. I'm multi booting Gparted Live + Clonezilla Live + Win 7 + Slackware 14.2.
https://www.linuxquestions.org/quest...re-4175661604/
 
Old 10-11-2019, 04:26 AM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by wirelessmc View Post
It is my understanding that UEFI standard requires GPT partitions. Is your partition table of type DOS? I can't see how ELILO would work without a GPT partition table. Run 'fdisk -l' as root and it will give the partition scheme for all your disks. At the very least your EFI filesystem has to reside on a GPT.
No. The UEFI specification does allow to use a DOS partition table to host the ESP (EFI System Partition). That's what I use.

Last edited by Didier Spaier; 10-11-2019 at 04:31 AM.
 
Old 10-11-2019, 05:32 AM   #20
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Quote:
Originally Posted by Didier Spaier View Post
No. The UEFI specification does allow to use a DOS partition table to host the ESP (EFI System Partition). That's what I use.
Well, I didn't know that! You learn all the time, don't you. Does that mean that a UEFI can boot in its native mode from a DOS disk? Because I thought that was impossible.

@wirelessmc. I've revised the order. We'll see if that does it.
 
Old 10-11-2019, 06:42 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Does that mean that a UEFI can boot in its native mode from a DOS disk? Because I thought that was impossible.
The UEFI specification states:

Quote:
5.2 LBA 0 Format

LBA 0 (i.e., the first logical block) of the hard disk contains either
  • a legacy Master Boot Record (MBR) (see Section 5.2.1)
  • or a protective MBR (see Section 5.2.3).
5.2.1 Legacy Master Boot Record (MBR)

A legacy MBR may be located at LBA 0 (i.e., the first logical block) of the disk if it is not using the GPT disk layout (i.e., if it is using the MBR disk layout).

If an MBR partition has an OSType field of 0xEF (i.e., UEFI System Partition), then the firmware must add the UEFI System Partition GUID to the handle for the MBR partition using InstallProtocolInterface(). This allows drivers and applications, including OS loaders, to easily search for handles that represent UEFI System Partitions.
To sum it up, in case of a DOS partition table (associated with a legacy MBR, not a protective MBR as found in a GPT), a partition that with an OSType of value 0xEF (as displayed for instance by lsblk in its PARTTYPE field) and includes a FAT file system should be handled by OS loader and the boot manager as an UEFI system partition.

Last edited by Didier Spaier; 10-11-2019 at 06:44 AM.
 
Old 10-11-2019, 07:48 AM   #22
wirelessmc
Member
 
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183

Original Poster
Rep: Reputation: 37
Lightbulb pulseaudio 13.0 with nvidia sound [SOLVED]

Wow! Thank you for sharing this Didier Spaier!

Just like hazel I was under the impression that the EFI partition had to be of type GPT. One of the great thing about LinuxQuestions.org is you are constantly learning - provided you are visiting it :-)
 
Old 10-11-2019, 09:43 AM   #23
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Just a note: it's not the partition that's GPT, it's the disk label. The partition has to be of the type EFI system partition and formatted as vfat.
 
Old 10-11-2019, 11:11 AM   #24
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Well, FAT 12, FAT16 and FAT 32 are all allowed.
Quote:
The EFI firmware must support the FAT32, FAT16, and FAT12 variants of the EFI file system. What variant
of EFI FAT to use is defined by the size of the media. The rules defining the relationship between media
size and FAT variants is defined in the specification for the EFI file system.
 
Old 10-11-2019, 11:19 AM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Well, FAT 12, FAT16 and FAT 32 are all allowed.
Practically, the command mkfs.fat is OK, as "man mkfs.fat" says:
Quote:
-F FAT-SIZE

Specifies the type of file allocation tables used (12, 16 or 32 bit). If nothing is specified, mkfs.fat will automatically select between 12, 16 and 32 bit, whatever fits better for the filesystem size.
 
Old 10-11-2019, 01:12 PM   #26
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
So I've been experimenting. Refind's failure to boot Slack is definitely due to not finding the initrd, although I have now put this at the end of the stanza as instructed. I tried LFS instead as that doesn't need an initrd, but that hangs for some reason. However, I can chainload elilo.

So far I can only get refind to come up by making it the one-off "boot next". I tried to force it by deactivating elilo using "efibootmgr -b 5 -A" and rebooting, but I still got elilo! And when I checked, it was active again. This uefi definitely carries out its own edits behind my back!

The next step will be to remove the elilo entry. Of course, this might stop the system from booting at all; if that happens, I will have to boot from SystemRescueCD, chroot and run eliloconfig to reinstall it.

I'll try that tomorrow; it's not a thing you want to do when you're tired.

I found something in the Lenovo Forum that might be relevant. Someone installed Ubuntu on a Lenovo, which of course installed GRUB. Then he tried to switch to refind and couldn't. The machine would only boot grub. It seems that the first non-Windows bootloader installed is somehow locked in. In the end he deleted grub and renamed refind grubx64.efi. Then it worked. I may end up having to do something similar.

Last edited by hazel; 10-11-2019 at 01:16 PM.
 
Old 10-11-2019, 01:19 PM   #27
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
Could it be your system is similar to my HP where the only way to change the default boot file/order is from the bios setup.

Last edited by colorpurple21859; 10-11-2019 at 01:23 PM.
 
Old 10-12-2019, 04:41 AM   #28
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Yes, that's also true as I discovered by trial and error. But my current problem is that even when you change the boot order inside the uefi, it isn't honoured at boot time.
 
Old 10-12-2019, 10:06 AM   #29
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
As soon as one problem is solved, another rears its head! I discovered why the initrd wasn't being picked up. It was entirely my fault; I used a volume statement in my stanza because the examples used it, but it caused the initrd to be looked for on the wrong partition (in fact on the root partition where there is no EFI directory and therefore no path from it to anything useful).

Actually you only need this parameter to boot GRUB, because GRUB uses modules and a configuration file that it needs to have access to. A kernel doesn't need access to anything on the hard drive until it's finished booting to its initrd. But if you do use it, all your paths will be assumed to start from the root of that partition.

So now, the initrd name is printed on the screen and presumably gets loaded. But then the system hangs, as it does also with LFS (which has a custom kernel and doesn't use an initrd). I'm really wondering if all this is worthwhile but I hate to be defeated.

In the mean time, I have discovered more dastardly behaviour from the uefi chip. There are two entries for PXE boots in the menu, one for IPV4 and one for IPV6. I removed them as I have no use for them. I don't have a PXE server. But the next boot, there they were back again!

Last edited by hazel; 10-12-2019 at 10:08 AM.
 
Old 10-12-2019, 11:43 AM   #30
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
on my system, at the bios screen where I change the boot order I have to hit the f10(save and exit) for the boot order change to take effect. Save and exit at the normal bios exit screen doesn't save the boot order change.
 
1 members found this post helpful.
  


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
question: 'onclick' within 'onmouseover' within 'form' within 'table' - how is it possible? rblampain Programming 4 04-25-2017 08:49 PM
[SOLVED] ELILO only boots stock kernel on Slackware64-14.1 fsLeg Slackware 7 10-03-2014 03:26 PM
Dual boot OS X and Slackware64-current (Thu Jun 27 23:56:34 UTC 2013) with elilo? janucaria Slackware 2 07-03-2013 07:56 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
booting a distro within an already booted distro webwolf70 Linux - General 4 06-30-2004 08:10 AM

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

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