Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-10-2019, 03:52 PM
|
#16
|
Member
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183
Original Poster
Rep:
|
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.
|
|
|
10-10-2019, 03:53 PM
|
#17
|
Member
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183
Original Poster
Rep:
|
reinstall elilo within the booted (slackware64) OS
The doc page should be revised to reflect this.
|
|
|
10-10-2019, 04:09 PM
|
#18
|
Senior Member
Registered: Apr 2015
Posts: 1,201
Rep: 
|
Quote:
Originally Posted by hazel
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/
|
|
|
10-11-2019, 04:26 AM
|
#19
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,355
Rep: 
|
Quote:
Originally Posted by wirelessmc
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.
|
|
|
10-11-2019, 05:32 AM
|
#20
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
Quote:
Originally Posted by Didier Spaier
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.
|
|
|
10-11-2019, 06:42 AM
|
#21
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,355
Rep: 
|
Quote:
Originally Posted by hazel
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.
|
|
|
10-11-2019, 07:48 AM
|
#22
|
Member
Registered: Aug 2008
Location: San Diego County
Distribution: Slackware
Posts: 183
Original Poster
Rep:
|
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 :-)
|
|
|
10-11-2019, 09:43 AM
|
#23
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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.
|
|
|
10-11-2019, 11:11 AM
|
#24
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,355
Rep: 
|
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.
|
|
|
|
10-11-2019, 11:19 AM
|
#25
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,355
Rep: 
|
Quote:
Originally Posted by Didier Spaier
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.
|
|
|
|
10-11-2019, 01:12 PM
|
#26
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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.
|
|
|
10-11-2019, 01:19 PM
|
#27
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,842
|
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.
|
|
|
10-12-2019, 04:41 AM
|
#28
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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.
|
|
|
10-12-2019, 10:06 AM
|
#29
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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.
|
|
|
10-12-2019, 11:43 AM
|
#30
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,842
|
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.
|
All times are GMT -5. The time now is 12:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|