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
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2022, 12:19 PM   #1
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Looking for advice trying some new things with Slackware 15.0


Hi all,

I'm excited for Slackware 15, and I'm looking to try a few things that are brand new to me even though I've been running Slackware since the day after version 11 was released.

A brief bit of background: I haven't run Slackware on an actual computer since I bought a new desktop computer a few years ago that came with Windows 10. I didn't want to deal with dual booting and the secure boot stuff, so I have been using Slackware in VirtualBox. It runs fine, I like it, and I can do everything with it that I was doing on a real computer before.

However, with Slackware 15 out, I'd like to try running it on bare metal again. I have an older HP laptop with plenty of hard drive space already partitioned and running Ubuntu/Xubuntu (don't laugh, it runs fine and my wife and kids like it as a spare computer).

My plan is to download the Slackware64-15 iso file and mount it from Grub. Then install Slackware on its own partition. I may have the two installations share the /home directory, but I may not. This post isn't really about partitioning.

Assuming that I learn how to boot to a Grub command prompt and mount the Slackware ISO, I have a few questions:
  1. Does Grub boot slackware directly, or do I need to chainload lilo?
  2. Will Grub see both the huge kernel and the initrd?
  3. How do I update Grub after a kernel update?

Thank you,

-Drew
 
Old 02-18-2022, 01:16 PM   #2
silverlining
Member
 
Registered: Jan 2020
Location: Oregon, U.S.A.
Distribution: Slackware64 ver 15.0
Posts: 99

Rep: Reputation: 19
I would use four partitions: swap, /home, Slackware, Ubuntu. I did this using Debian instead of Ubuntu. I installed Slackware first using the default lilo. Then when I installed Debian, it found and added the Slackware installation to its grub boot loader. After that, grub was used for both installations.

In Debian, or probably in Ubuntu, then you can edit /etc/default/grub for startup order: GRUB_DEFAULT=0 Debian, Slackware=2

Finally, run 'su - update-grub' and reboot

Last edited by silverlining; 02-18-2022 at 08:49 PM.
 
3 members found this post helpful.
Old 02-18-2022, 04:17 PM   #3
rherbert
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 102

Rep: Reputation: 65
Quote:
Originally Posted by silverlining View Post
Finally, run 'su - update-grub' and reboot
'update-grub' is available in Debian (/sbin/update-grub), but not in Slackware, at least on my box. The corresponding command is:

# grub-mkconfig -o /boot/grub/grub.cfg
 
3 members found this post helpful.
Old 02-21-2022, 01:38 PM   #4
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by silverlining View Post
I would use four partitions: swap, /home, Slackware, Ubuntu. I did this using Debian instead of Ubuntu. I installed Slackware first using the default lilo. Then when I installed Debian, it found and added the Slackware installation to its grub boot loader. After that, grub was used for both installations.

In Debian, or probably in Ubuntu, then you can edit /etc/default/grub for startup order: GRUB_DEFAULT=0 Debian, Slackware=2

Finally, run 'su - update-grub' and reboot
I'm looking to do it the other way, since Ubuntu is already installed. We'll see how it goes.

Does Grub kick off lilo when you boot into Slackware?

Thanks.
 
Old 02-21-2022, 01:50 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,338

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
The trick I found was in deciding which distro is going to be boss. That gets the /boot partition. All others, just a / partition for / & boot.

Then all updates go to boot, and every distro updates it's grub.conf and remains happy in it's particular nappy. You just copy over kernels & ramdisks to the /boot that matters and update it's boot loader.
 
1 members found this post helpful.
Old 02-21-2022, 02:07 PM   #6
silverlining
Member
 
Registered: Jan 2020
Location: Oregon, U.S.A.
Distribution: Slackware64 ver 15.0
Posts: 99

Rep: Reputation: 19
Quote:
Does Grub kick off lilo when you boot into Slackware?
When installing Slackware on a second partition, be sure to skip making lilo boot or I think it will overwrite grub's boot.

Business_Kid's post sounds like good a good tip but I didn't exactly understand where you need to place the Slackware kernel for grub to find it when you run grub-update.
 
1 members found this post helpful.
Old 02-21-2022, 02:24 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,338

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Sorry, my bad.

Distro with the /boot partition controls booting with it's boot loader.
All other distros do their thing on their boot partition, but that's only a subdirectory of their root partition, so it doesn't affect things.

Every change of kernel, I update the master boot partition by copying the new kernel & initrd there and hand-updating the boot loader.
 
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
New, need advice on a few things, and newbie usability of Fedora versus Ubuntu nomgis0 Linux - Newbie 30 06-20-2006 01:01 PM
Need some advice on a couple of things Geocritter Slackware 3 07-07-2005 06:52 AM
USB: some things work, some don't pconrad Linux - Hardware 1 09-11-2004 11:00 AM
Looking for some advice tomdkat General 4 07-14-2003 01:24 AM

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

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