LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Installing 14.2 in grub (https://www.linuxquestions.org/questions/slackware-installation-40/installing-14-2-in-grub-4175633345/)

gregors 07-05-2018 01:12 PM

Installing 14.2 in grub
 
Hi there!

I want to give slackware a try. Since I've read quite a lot of howtos and I'm way too lazy these days I need some help on how to add an installed slackware to my grub-setup.

Can you tell me how an entry in my grub.cfg (grub 2) should look like?

TIA

Gregor

Ztcoracat 07-05-2018 02:40 PM

Hi:

Here are a few examples of the grub.cfg file.

Do you have another Linux distro already installed on your machine?

gregors 07-05-2018 02:46 PM

Quote:

Originally Posted by Ztcoracat (Post 5875924)
Hi:
Here are a few examples of the grub.cfg file.

Which "here" are you talking about?

Quote:

Originally Posted by Ztcoracat (Post 5875924)
Hi:
Do you have another Linux distro already installed on your machine?

Yes. I am working with Wheezy right now. I took a photo of my current grub-entry so this won't get lost whatever I do to my computer :-)

Regards,

Gregor

Ztcoracat 07-05-2018 03:10 PM

There are 2 examples of grub files on that page. Either one I had hoped would give you an idea of how to make a menuentry.

***I'm not in the habit of making menu entries so it's best to wait for members who are good with that.***
Like our Guru yancek.-;)

If you would like to dual boot Debian and Slackware you will have to shrink your Debian partition. Unless of course you will be installing to another drive or the drive you already have Debian on has plenty of room.

The Slackware installation will prompt you to install the LILO bootloader. If you want to keep Grub than skip install LILO automatically and tell the installer not to install LILO.

Good luck with your installation.

gregors 07-05-2018 03:23 PM

Quote:

Originally Posted by Ztcoracat (Post 5875936)
If you would like to dual boot

That's the point. I want to make some sort of "friendly" transition. My wheezy-setup is not very up-to-date but since I read the security list and wheezy isn't supportet anymore my setup is relatively secure. It would be good if I could have some setup that checks for security related stuff, reports that and give me a chance to read important stuff before installing.

Thanks!

Gregor

Ztcoracat 07-05-2018 03:36 PM

I think you will find this video helpful.

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

https://docs.slackware.com/slackware:install

https://unix.stackexchange.com/quest...are-into-grub2

Maybe once you get Slackware installed you can install a vm and give the new Debian 9 a spin.
A friend of mine is running Debian 9 and it's really nice.

gregors 07-05-2018 03:45 PM

Quote:

Originally Posted by Ztcoracat (Post 5875953)
I think you will find this video helpful.

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

https://docs.slackware.com/slackware:install

https://unix.stackexchange.com/quest...are-into-grub2

Maybe once you get Slackware installed you can install a vm and give the new Debian 9 a spin.
A friend of mine is running Debian 9 and it's really nice.

Thanks again!

Gregor

PS: I don't like debian 9 since I don't like systemd. That is one of the top reasons why I try slackware.

Ztcoracat 07-05-2018 03:48 PM

Quote:

Originally Posted by gregors (Post 5875956)
Thanks again!

Gregor

PS: I don't like debian 9 since I don't like systemd. That is one of the top reasons why I try slackware.

You're Welcome:-

I think you will be very happy with Slackware.
It's been rock solid for me for 6 years and I haven't had any problems.;)

gregors 07-05-2018 09:32 PM

Update: Since LILO seems to be the "right" bootmanager for slackware I installed its debian packages made me a configuration file and installed it.

That didn't work correctly. So after some hours of playing around I end up with a system that shows me

LIL

and after a short time I am presented a menu where I can choose - but only the first entry works correct and brings me back in my old debian system.

It feels like I am playing some sort of tough game :-) So, please take a look at the attached file and help me to find out whats going on.

TIA

Gregor

PS: Since I don't know if attaching worked:

------------snip-------------
lba32
boot = /dev/sda
map = /boot/map
install = menu
menu-scheme = Wb:Yr:Wb:Wb
prompt
timeout = 100
vga = normal

image = /boot/vmlinuz-3.2.0-6-amd64
label = "Linux"
#root = /dev/sdb1
root = "UUID=b7b175cd-d0a6-4a2b-bb5a-a85021885f54"
read-only
initrd = /boot/initrd.img-3.2.0-6-amd64

image = /boot/vmlinuz-3.2.0-5-amd64
label = "Linux Old"
#root = /dev/sdb1
root = "UUID=b7b175cd-d0a6-4a2b-bb5a-a85021885f54"
read-only
initrd = /boot/initrd.img-3.2.0-5-amd64

image = /boot/vmlinuz-huge-4.4.14
label = "Slackware"
root = /dev/sdb2
# read-only
# initrd = /boot/initrd.img-3.2.0-6-amd64
------------------------------------

Didier Spaier 07-06-2018 06:26 AM

Hello,

from Wheezy just type:
Code:

sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-mkinstall /dev/sda

You can do some tuning editing /etc/default/grub before running the first command. If you want to install grub in another disk, just replace /dev/sda by its name as reported by the lsblk command.

You will get a boot menu with entries for all your systems.

Whenever you make a change like upgrading a kernel, whatever, in either Debian or Slackware just type from Wheezy:
Code:

sudo update-grub
or:
Code:

sudo  grub-mkconfig -o /boot/grub/grub.cfg
Don't edit grub.cfg which will be rewritten by grub-mkconfig or update-grub anyway, and unless you be really acquainted with grub don't edit the files in /etc/grub.d that are read by these commands.

PS you really don't need lilo at all, and grub is also available in Slackware.

Ztcoracat 07-06-2018 06:31 AM

Remember I told you I am not good with grub.



Try booting into Debian and update grub.

Code:

sudo update-grub
Than after updating grub reboot and see if you can boot into Slackware.

Here is the Grub Manual:-
https://www.gnu.org/software/grub/manual/grub/grub.html

gregors 07-06-2018 02:02 PM

Thank you Didier and Ztcoracat. I will work thru what you wrote as soon as possible. I just have to fix some other (non computer) stuff right now.

Regards,

Gregor

Ztcoracat 07-06-2018 04:45 PM

Quote:

Originally Posted by gregors (Post 5876383)
Thank you Didier and Ztcoracat. I will work thru what you wrote as soon as possible. I just have to fix some other (non computer) stuff right now.

Regards,

Gregor

You're welcome.

Have a good weekend.

Richard Cranium 07-09-2018 10:11 PM

There's also...

https://github.com/Richard-Cranium/SlackwareGrub2

colorpurple21859 07-10-2018 05:28 AM

Running update-grub as root in Wheezy should give you a grub entry for Slackware.

Quote:

Update: Since LILO seems to be the "right" bootmanager for slackware
While it is true that Slackware defaults to lilo during setup in a legacy installation, you can use any boot manager you desire. Slackware comes with grub2, which you can install as a bootloader manually either during installation, or after installation.


All times are GMT -5. The time now is 03:21 AM.