LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2021, 05:35 PM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
Install latest Slackware after a MX Linux installation


How do we install latest Slackware as 2nd after a debian (MX Linux) installation, with crystal clear explanatory steps ?
as can't find one suggest this way of installing on slackware sites (just: install Slackware), and its Iso is ready to boot out of usb.
Please help me out getting in right path, thanks

Last edited by BudiKusasi; 01-22-2021 at 12:53 AM.
 
Old 01-22-2021, 02:09 PM   #2
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
the basics would be perhaps boot from a usb stick and use gParted to make room for slackware, assuming you already have a SWAP partition and an efi partition if your PC is uefi.

Put slackware install dvd iso onto usb stick; (you need to put iso onto usb in appropriate way rufus, dd command or other) boot from usb stick and install slackware to spare partition.

https://slackware.nl/slackware/slackware64-current-iso

Follow instructions

this guy is not bad to watch :

https://www.youtube.com/watch?v=mWKEPBsIgVs

Last edited by captain_sensible; 01-22-2021 at 02:14 PM.
 
Old 01-22-2021, 02:16 PM   #3
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 362

Rep: Reputation: Disabled
Quote:
Originally Posted by BudiKusasi View Post
How do we install latest Slackware as 2nd
There are two versions of Slackware which could be called the latest. 1/ the rolling and 2/ the stable. Which of these iso's have you md5sum checked?

Quote:
after a debian (MX Linux) installation, with crystal clear explanatory steps ?
So you want to dual boot?

Explaining how to divide your drive is entirely your choice and without knowledge of how many drives you have and their size, explaning how to prepare the drive(s) is virtually impossible.

However the first step would be to make an external copy of your data, cause reformating the drive will wipeout your data. Then I suggest you google "preparing the drive for dual booting linux" till you find an explanation which you understand.

Once the drive is formatted, which can be done as part of the Slackware instalation, you only need to follow the prompts ensuring, of course, that Slackware goes onto the right partition.

Finally you'll need to ensure your MX distro is listed in your /etc/lilo.conf
 
Old 01-22-2021, 02:35 PM   #4
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
You need to skip lilo installation. It will override grub bootloader installed by MX.
 
1 members found this post helpful.
Old 01-22-2021, 05:34 PM   #5
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by igadoter View Post
You need to skip lilo installation. It will override grub bootloader installed by MX.
Please why don't you just keep on going on
 
Old 01-23-2021, 01:30 AM   #6
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
It is always a choice. Having grub as boot loader from MX or lilo from Slackware. But Slackware is second to be installed. So the first thing is to assure it boots after installation. So safe solution is leave at moment grub, boot MX, rerun grub so it will find Slackware installation. After grub update - boot into Slackware. If successful - then configure lilo for both MX and Slackware.
 
Old 01-23-2021, 04:55 AM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,298
Blog Entries: 21

Rep: Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505Reputation: 3505
Can't lilo be installed to root folder, not mbr, during a Slackware install, and use grub2 in MX with

Code:
sudo update-grub
To chain load it? Just curious is why I ask. I figure grub2 should throw you at lilo and then lilo takes over Slackware boot from there. From the lilo entries in your root/boot folder inside of Slackware.

Code:
harry@biker:~
$ cd /
harry@biker:/
$ ls
bin   dev  home  lib32  libx32      media  opt   root  sbin  tmp  var
boot  etc  lib   lib64  lost+found  mnt    proc  run   sys   usr

Last edited by rokytnji; 01-23-2021 at 04:57 AM.
 
1 members found this post helpful.
Old 01-26-2021, 02:17 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
Quote:
Originally Posted by rokytnji View Post
Can't lilo be installed to root folder, not mbr, during a Slackware install, and use grub2 in MX with

Code:
sudo update-grub
To chain load it? Just curious is why I ask. I figure grub2 should throw you at lilo and then lilo takes over Slackware boot from there. From the lilo entries in your root/boot folder inside of Slackware.

Code:
harry@biker:~
$ cd /
harry@biker:/
$ ls
bin   dev  home  lib32  libx32      media  opt   root  sbin  tmp  var
boot  etc  lib   lib64  lost+found  mnt    proc  run   sys   usr
Yes, chainloading is possible, but then you have to go through multiple bootloaders to get the system started up. Most people will chainload for Windows, but will set up multiple distros under the same bootloader (but certainly not all people... you could chainload multiple bootloaders if needed/desired).
 
Old 01-27-2021, 06:08 AM   #9
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rokytnji View Post
Can't lilo be installed to root folder, not mbr, during a Slackware install, and use grub2 in MX with

Code:
sudo update-grub
To chain load it?
Happen to know how to install elilo, ie. its binary and configuration, by shell command-line run from slackware usb stick?
I strongly have hunch this is the correct way, anyway in my case elilo is not installed yet as I skipped it on the installation step

Last edited by BudiKusasi; 01-27-2021 at 06:09 AM.
 
Old 01-27-2021, 09:43 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
Quote:
Originally Posted by BudiKusasi View Post
Happen to know how to install elilo, ie. its binary and configuration, by shell command-line run from slackware usb stick?
I strongly have hunch this is the correct way, anyway in my case elilo is not installed yet as I skipped it on the installation step
You can do it using eliloconfig after running mkbindmounts and chrooting into your system.

Code:
mount /dev/sda1 /mnt            # Replace sda1 with your root partition
mount /dev/sda2 /mnt/boot/efi   # Replace sda2 with your UEFI partition
mkbindmounts
chroot /mnt
eliloconfig
If you want to do it even more manually, you'd need to copy the elilo.efi to a folder in your UEFI partition (Pat uses EFI/Slackware), create an elilo.conf file, copy your kernel (and possibly initrd) to the same folder, then run the efibootmgr command to notify the motherboard's firmware of the location:

Code:
mkdir -p /boot/efi/EFI/Slackware
cp /boot/elilo-x86_64.efi /boot/efi/EFI/Slackware/elilo.efi
cp /boot/{vmlinuz,initrd.gz} /boot/efi/EFI/Slackware/
cat << EOF > /boot/efi/EFI/Slackware/elilo.conf
chooser=simple
delay=1
timeout=1
#
image=vmlinuz
        label=vmlinuz
        initrd=initrd.gz
        read-only
        append="vga=normal ro"
EOF
efibootmgr -q -c -d /dev/nvme0n1 -p 1 -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware"
efibootmgr is pretty straightforward to run manually:
-q is quiet
-c is create a new boot entry for the motherboard
-d is the device (/dev/sda, /dev/nvme0n1, etc)
-p is the UEFI partition number on the device (as displayed by the system -- /dev/nvmen0p1 is mine)
-l is the loader location (needs double backslashes instead of single forward slashes and the location is based on the root of the EFI drive)
-L is the label that will show in the BIOS/Firmware's boot selector
 
Old 01-27-2021, 08:11 PM   #11
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bassmadrigal View Post
You can do it using eliloconfig after running mkbindmounts and chrooting into your system.

Code:
mount /dev/sda1 /mnt            # Replace sda1 with your root partition
mount /dev/sda2 /mnt/boot/efi   # Replace sda2 with your UEFI partition
mkbindmounts
chroot /mnt
eliloconfig
did you drop the OP request idea or did it with no this on mind ?
it's based on afraid to ruin the 1st linux install
that's reason of skipping elilo install.
Slackware, thankfully, smartly add itself to menu but failed if it gets picked, please look into grub.cfg,
failed either as referring kernel alone or with united initrd in 1 file (huge.s), with errors sort of:

Quote:
< end trace 6ef90b...... >
< kernel panic .... >
for each case respectively, or if really sure elilo can still get installed correctly to solve this multi boot please do as it's asked: show in crystal clear explanatory steps. Please help to the correct path
Attached Files
File Type: txt grub.cfg.txt (8.9 KB, 14 views)

Last edited by BudiKusasi; 01-27-2021 at 08:19 PM.
 
Old 01-27-2021, 08:42 PM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
Quote:
Originally Posted by BudiKusasi View Post
did you drop the OP request idea or did it with no this on mind ?
My answer was based on the question you asked (that I quoted in my post). It is the commands you'd run to install elilo from the Slackware USB stick.

Quote:
Originally Posted by BudiKusasi View Post
Slackware, thankfully, smartly add itself to menu but failed if it gets picked, please look into grub.cfg,
failed either as referring kernel alone or with united initrd in 1 file (huge.s), with errors sort of:
Unfortunately, I can't help with grub. I don't use grub and am not familiar with how to configure it.

Quote:
Originally Posted by BudiKusasi View Post
for each case respectively, or if really sure elilo can still get installed correctly to solve this multi boot please do as it's asked: show in crystal clear explanatory steps. Please help to the correct path
You can register as many EFI stubs as you want. This will add a Slackware entry to the boot options within the motherboard's boot menu (this is unrelated to bootloaders like elilo and grub as it is the menu that can point to those).

You wouldn't need to make any changes to the commands I typed below besides replacing the sda1 and sda2 partitions to their proper matches. If you have a single UEFI partition that's already being used by your other distro, this will simply add a new folder to that partition and store elilo and the Slackware kernels in it.
 
Old 01-28-2021, 01:35 AM   #13
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 560

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
The generic kernel won't boot without an initrd, so those options won't work the first time. Try using the final "advanced option" for Slackware, which should boot up the huge kernel. If that doesn't work, check the UUID for Slackware carefully; I've known os-prober to mix those up before.

Either way, once the huge kernel has booted properly, running the following script as root will create an initrd image (should be /boot/initrd.gz, but check when it's done):

Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)
The -r will trim the output to the needed command only, and it is not optional if you want it to run right away.

Finally, go ahead and add the following line to the end of all Slackware vmlinuz-generic entries in grub.cfg:

Code:
initrd /boot/initrd.gz
It should now be possible to boot into the generic kernel from GRUB.

EDIT: There should be symlinks to the most recently installed kernels in /boot, called vmlinuz, vmlinuz-generic and vmlinuz-huge. It might be convenient to have grub.cfg point to those instead of individual kernel instances. That way, it won't be necessary to edit the file every time there's a kernel installation.

Last edited by pghvlaans; 01-28-2021 at 01:51 AM. Reason: Just a thought
 
1 members found this post helpful.
Old 01-28-2021, 05:45 PM   #14
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pghvlaans View Post
running the following script as root will create an initrd image (should be /boot/initrd.gz, but check when it's done):

Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)
do from running OS by mounting part. of installed Slack.:
Code:
usr/share/mkinitrd/mkinitrd_command_generator.sh
usr/share/mkinitrd/mkinitrd_command_generator.sh: 224: usr/share/mkinitrd/mkinitrd_command_generator.sh: Syntax error: "(" unexpected
it's ver.14.2 , 2016

Last edited by BudiKusasi; 01-29-2021 at 03:35 AM.
 
Old 01-28-2021, 08:58 PM   #15
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 560

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Missing dollar sign? You could also just run the script by itself and then copy-paste the output.

Last edited by pghvlaans; 01-28-2021 at 09:03 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[Slackware64 14.2] Loading error of ath10k firmware with latest kernel-firmware and latest kernel-huge pensador_13 Slackware 3 06-16-2018 12:31 PM
Ubuntu "9.04" EeePC 1000H latest Firefox latest Flash unreliable DalePace Linux - Laptop and Netbook 1 08-23-2009 02:02 PM
LXer: Latest Win4Lin supports latest Linspire Linux LXer Syndicated Linux News 0 08-05-2006 04:21 PM
is it a better idea to migrate from the latest apache 1.3 to the latest apache 2.0? kublador Slackware 5 08-30-2004 04:06 PM

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

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