LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-20-2022, 04:31 PM   #16
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,505

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320

Quote:
Originally Posted by luvr View Post
Sounds all very logical, but I just got curious again after I got reminded of this issue. I got to wonder if there was anything interesting I could learn about it.
Did you know that the humans have a tail too? It's vestigial and usually it's hidden under skin (in the place you expect to be), but the anthropologists says that long time ago our tail was long and a very useful thing to have while our ancestors still lived above trees.

Same's with the huge kernels. Long time ago, probably they was a useful thing to have in your Slackware, but today they are just a vestigial tail. Nothing interesting there.
 
1 members found this post helpful.
Old 04-20-2022, 05:01 PM   #17
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Give it a break, man!

You're not forced to use Huge, but for those who do, it's a nice service we have it...


Jan, huge fan
 
1 members found this post helpful.
Old 04-20-2022, 05:52 PM   #18
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
I dunno, for a regular user it seems equally fine to just use /dev/sdaX. Might get messed up if you boot from USB sticks or such, but should work in general.

NVME is great for this actually
Personally I boot /dev/nvmexyz for my custom kernel without initrd.
 
Old 04-20-2022, 06:11 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
I confirm what LuckyCyborg said: the UUID (or filesystem uuid) is stored in the file system thus not available to the kernel at boot time.

So if you insist to use a huge kernel with no initrd you have two solutions:
  1. Name the partition like /dev/<something> (only if the order of drives will never change and the drive is not removable).
  2. Name the partition by partuuid (or partition uuid) as suggested by Labinnah.
To use the naming by partuuid you can just set in /etc/default/grub:
GRUB_DISABLE_LINUX_UUID="true"
GRUB_DISABLE_LINUX_PARTUUID="false"
and re-generate /boot/grub/grub.cfg using grub-mkconfig or update-grub

This being said I also agree with LuckyCyborg on this: there is zero benefit using a huge kernel instead of a generic one.

Last edited by Didier Spaier; 04-21-2022 at 12:19 AM.
 
1 members found this post helpful.
Old 04-20-2022, 08:26 PM   #20
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 163

Rep: Reputation: 154Reputation: 154
I use LILO. I have entries for both the generic kernel and the huge kernel. Defaults to generic, but huge is there for a manual choice - like when I forget to make a new initrd after a kernel upgrade.

What can I say. I like backups, and having choices.
 
Old 04-20-2022, 10:46 PM   #21
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by LuckyCyborg View Post
Because to use UUIDs on your bootloader, means that you need to use always the generic kernel and this is end of line. And the usage of an initrd with the huge kernels makes no sense.
Wrong. Using UUIDs requires the use of an initrd. It doesn't matter if you boot the generic or huge kernel itself. It is possible you might run into issues booting the huge with a initrd, but I've personally never ran into them.

As you're well aware, "generic" and "huge" aren't kernel terms, but Slackware terms. An initrd can load a generic or huge kernel. I purposefully build in my ext4 module while using a "generic" config, just out of sheer laziness so I don't have to build an initrd (I'm using a single NVMe drive on my system and that happens to contain my EFI partition, so I have no current need for UUIDs).

As pointed out elsewhere, you can always use PARTUUIDs without needing an initrd.

Quote:
Originally Posted by LuckyCyborg View Post
Secondly, never, BUT never mess with the bootloader of one OS on another OS.
This is totally wrong too. You can absolutely "mess" with a bootloader within another distro, as long as you understand how the bootloaders work and how kernels need to be referenced. I am *very* familiar with that with lilo, so I would have no problems getting multiple linux systems booting while editing /etc/lilo.conf in a single distro. However, I don't have that knowledge on how grub works, so I wouldn't risk it without a lot of work.

Quote:
Originally Posted by LuckyCyborg View Post
Eventually, use chainloading, eventually use different hard disks, BUT trust me, the Ubuntu tools mess with all configuration, not only "regenerates" its own entries.
I've only ever used chainloading with Windows. It's not hard with a little bit of research to get multiple distros to boot using the same bootloader.
 
1 members found this post helpful.
Old 04-21-2022, 05:40 AM   #22
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 452

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by luvr View Post
I’m assuming that the messing around that I want to undertake with getting my own GRUB copy properly installed and the Ubuntu GRUB getting removed, may well render my system unbootable a few times because I’m still unfamiliar with UEFI. In any case, it will be a learning process.
It might be easier than you think. Ubuntu provides /boot symlinks to the kernel and initrd, so it should be possible to keep a static GRUB configuration on Slackware that points to symlinks only.
 
Old 04-21-2022, 06:02 AM   #23
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459

Original Poster
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by pghvlaans View Post
It might be easier than you think. Ubuntu provides /boot symlinks to the kernel and initrd, so it should be possible to keep a static GRUB configuration on Slackware that points to symlinks only.
Yes, that won't be the hard part. I got into the habit of maintaining similar symlinks under Slackware, so I generally don't have to touch my GRUB configuration unless and until I add or remove or replace any systems.

I'm just not sure how easy or hard it is to add a bootloader to a UEFI system, or to remove one from it, without messing up the boot process.

Ideally, I would end up with two installed GRUB bootloaders: a "stable" one and an "experimental" one that I can play with without messing up the "stable" one. Under Legacy BIOS, I installed the "stable" GRUB as my primary bootloader onto the MBR, and I used chainloading to arrive at the "experimental" one. I have no idea, as of yet, how I could do such a thing under UEFI.
 
Old 04-21-2022, 06:15 AM   #24
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 452

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
I've done switching before, but it's been awhile. Don't recall it being particularly complicated.

As for keeping two instances at the same time, giving them different labels at grub-install time might do the trick.
 
Old 04-21-2022, 08:01 AM   #25
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
It might be easier than you think. Ubuntu provides /boot symlinks to the kernel and initrd, so it should be possible to keep a static GRUB configuration on Slackware that points to symlinks only.
This is what I do on my slackware systems. The only thing I do is run mkinitrd with kernel upgrades.
 
  


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] /dev/disk/by-uuid/<uuid here> does not exist and initramfs shell Mitt Green Linux - Kernel 4 08-03-2015 11:56 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 07:39 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM

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

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