LinuxQuestions.org
Review your favorite Linux distribution.
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 05-03-2018, 12:49 PM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 103

Rep: Reputation: Disabled
elilo/grub?


Hi there!

I want to install slackware to give it a closer look. I already have a Debian system (version 7.11) running that uses grub 0.97. And I don't want to overwrite grub with elilo unless I know I will be using Slackware as my new distribution for a couple of years.

And since I read tons of docu all day I don't feel like reading the grub docs right now just to know what I have to add to my installed grub. So it would be nice, if someone told me what to enter in my existing installation of grub. The new system will be installed in the first partition of the first drive (sda0, partition 0).

Thanks in advance!

Gregor
 
Old 05-03-2018, 01:09 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,842

Rep: Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847
If you are using Debian with Legacy Grub, do you even have an EFI partition? If not, installing ellilo to a legacy system will just cause problems. Slackware installs with Lilo give you several option, install to Mbr, install to partition and don't install at all. The latter is what you should use then simply manually create an entry for Slackware in the menu.lst file of Debian. Lots of examples online.
 
Old 05-03-2018, 01:28 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,816

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
If your using grub legacy:
edit your /boot/grub/menu.lst and add the following entry:


title 'Slackware'
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1


Grub2
edit /etc/grub.d/40_custom with this then run update-grub:

menuentry 'Slackware' {
set root=(hd0,1)
Linux /boot/vmlinuz root=/dev/sda1
}




This should work unless one the "root=" is wrong.

Last edited by colorpurple21859; 05-03-2018 at 01:37 PM.
 
Old 05-03-2018, 01:50 PM   #4
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Post

Quote:
Originally Posted by gregors View Post
Hi there!

I want to install slackware to give it a closer look. I already have a Debian system (version 7.11) running that uses grub 0.97. And I don't want to overwrite grub with elilo unless I know I will be using Slackware as my new distribution for a couple of years.

And since I read tons of docu all day I don't feel like reading the grub docs right now just to know what I have to add to my installed grub. So it would be nice, if someone told me what to enter in my existing installation of grub. The new system will be installed in the first partition of the first drive (sda0, partition 0).

Thanks in advance!

Gregor
0. before run Slackware setup exec this:

Code:
blkid | grep "sda1"
1. Use huge kernel. This will save you additional questions.

1. Ignore the installation of the bootloader (in Slackware this is not mandatory) and paste (with nano, or with another text editor) this in your /boot/grub.cfg from Debian:

Code:
menuentry 'Slackware Linux (Current)' --class gnu-linux --class gnu --class os {
        insmod %YOU_SLACKWARE_TYPE_FILE_SYSTEM%
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set=root %YOU_SLACKWARE_ROOT_UUID%
	echo	'Booting Slackware Linux ...'
	linux	/boot/vmlinuz root=UUID=%YOU_SLACKWARE_ROOT_UUID% ro  quiet
}
Or save this snippet as ~/add_to_grub.cfg and run from Debian after installation Slackware and run into you terminal emulator:

Code:
cat ~/add_to_grub.cfg >> /boot/grub.cfg

UUID=$(blkid /dev/sda1 | cut -f 2 -d"\"") ; TYPE=$(blkid /dev/sda1 | cut -f 4 -d"\"") && sed "s|%YOU_SLACKWARE_ROOT_UUID%|$UUID|" -i /boot/grub.cfg && sed "s|%YOU_SLACKWARE_TYPE_FILE_SYSTEM%|$TYPE|" -i /boot/grub.cfg

update-grub
Also, into Debian you may be use Grub Customizer:

Code:
sudo apt install grub-customizer
This is simple and with color pics.

 
Old 05-03-2018, 03:17 PM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,816

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
If you make the changes to /boot/grub/grub.cfg instead of /etc/grub.d/40_custom, the next time Debian does a kernel update, you will loose your slackware entry.
 
Old 05-03-2018, 03:22 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,474

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
When I install Slackware dual-boot I just install it as normal but don't install a bootloader. Then boot into Debian and run (as root) update-grub and, voila, on reboot there's an option to boot into Slackware.
The same should work for most distributions.
 
Old 05-03-2018, 04:46 PM   #7
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
Quote:
Originally Posted by colorpurple21859 View Post
If you make the changes to /boot/grub/grub.cfg instead of /etc/grub.d/40_custom, the next time Debian does a kernel update, you will loose your slackware entry.
Oh, yes. This is a valuable observation.
 
Old 05-03-2018, 05:22 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,842

Rep: Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847
Quote:
Then boot into Debian and run (as root) update-grub and, voila, on reboot there's an option to boot into Slackware.
One of the big advantages of Grub2. Unfortunately, the OP specifically states s/he is using Grub Legacy for which there is no 'update-grub' or 'grub-mkconfig'. Best option for him/her would be not to install Lilo/Elilo at all and create a manual entry in his Debian menu.lst file.
 
Old 08-05-2018, 01:02 PM   #9
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware 14.2 64-bit
Posts: 489

Rep: Reputation: 161Reputation: 161
See a couple of the last posts here:

https://www.linuxquestions.org/quest...ub-4175472763/
 
  


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
[SOLVED] ELILO not working karthik_holla Slackware 18 01-27-2017 08:57 PM
how to update elilo ?? BW-userx Slackware 13 11-18-2016 09:20 PM
elilo and utf8 ajevremovic Slackware 16 09-28-2016 02:44 PM
lilo vs elilo? coralfang Linux - Software 2 04-02-2016 11:14 PM

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

All times are GMT -5. The time now is 12:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration