LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-03-2018, 11:49 AM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 177

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, 12:09 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,599

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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, 12:28 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,410

Rep: Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598
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 12:37 PM.
 
Old 05-03-2018, 12: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, 02:17 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,410

Rep: Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598Reputation: 1598
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, 02:22 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 03: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, 04:22 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,599

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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, 12:02 PM   #9
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

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

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


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

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

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