LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-23-2022, 12:58 PM   #1
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Rep: Reputation: 2
Cool Grub in 15.0


Hi,
I am little confused about Grub in Slackware 15.0
1. Is it Grub or Grub2?
2. Now my system is booted via elilo. Is it possible to
configure and install Grub2 directly into the system without
installing the theme from Slackbuild and making a bootable usb stick
first?


Thanks
 
Old 03-23-2022, 01:28 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,411

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
it's grub, no need to install anything from slackbuild
Code:
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
slackware doesn't have the update-grub command. The /dev/sda will need to be changed accordingly for your setup.

Last edited by colorpurple21859; 03-23-2022 at 01:29 PM.
 
Old 03-23-2022, 02:16 PM   #3
ssslackw
Member
 
Registered: Aug 2005
Posts: 61

Original Poster
Rep: Reputation: 2
Thanks! Much appreciated.
 
Old 05-10-2022, 09:31 AM   #4
opty
Member
 
Registered: Mar 2021
Posts: 183

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Code:
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
Shouldn't you swap those two?
 
Old 05-10-2022, 10:59 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,411

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
Quote:
Shouldn't you swap those two?
grub-install will create the /boot/grub directory if it doesn't exist, grub-mkconfig will throw a error message if /boot/grub doesn't exist. Grub-install only needs to be ran once during installation, grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.

Last edited by colorpurple21859; 05-10-2022 at 11:02 AM.
 
1 members found this post helpful.
Old 05-10-2022, 11:59 AM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by ssslackw View Post
1. Is it Grub or Grub2?
What used to be grub is called grub-legacy, found on SBo under that name.
What used to be grub2 is now found on Slackware DVD.
 
Old 05-10-2022, 12:54 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,411

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
Quote:
Is it Grub or Grub2
Opensuse, PclinuxOs, Fedora based distros use /boot/grub2, grub2-install, grub2-mkconfig
Most other distros use including Slackware use /boot/grub. grub-install, grub-mkconfig
 
Old 05-10-2022, 02:44 PM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Opensuse, PclinuxOs, Fedora based distros use /boot/grub2, grub2-install, grub2-mkconfig
Most other distros use including Slackware use /boot/grub. grub-install, grub-mkconfig
They name these files grub2 because they used to ship both of them..
It doesn't matter in Slackware, since it does not use/install grub or grub-legacy.
What is packaged and shipped on Slackware DVD is grub-2.x so grub v2 or grub2 in short.
 
Old 05-10-2022, 03:01 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,411

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
Quote:
They name these files grub2 because they used to ship both of them..
It doesn't matter in Slackware, since it does not use/install grub or grub-legacy.
What is packaged and shipped on Slackware DVD is grub-2.x so grub v2 or grub2 in short.
I beleive the op was referring to the grub command to use, to invoke grub2 commands on Fedora based distros among others are
Code:
grub2-install 
grub2-mkconfig
and the grub boot loader files go into /boot/grub2,

Slackware and others use
Code:
grub-install
grub-mkconfig
and the grub files go in /boot/grub.

Last edited by colorpurple21859; 05-10-2022 at 03:06 PM.
 
Old 05-10-2022, 03:05 PM   #10
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Slackware and others use
Code:
grub-install
Slackware does not use or run this command by default.
 
Old 05-10-2022, 03:14 PM   #11
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Not trying to argue, just saying..

The OP is confused about Grub in 15.0 (fact).
Then the OP asks if Grub (legacy?) or Grub2 (current?) is shipped in Slackware.

I think that is a source of this little misunderstanding here.
 
Old 05-11-2022, 02:32 AM   #12
opty
Member
 
Registered: Mar 2021
Posts: 183

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
grub-install will create the /boot/grub directory if it doesn't exist, grub-mkconfig will throw a error message if /boot/grub doesn't exist. Grub-install only needs to be ran once during installation, grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.
The package already contains /boot/grub/.

In some cases you may need to run grub-install more than once.

The order of the commands might matter in the future. :-)
 
Old 05-11-2022, 03:41 AM   #13
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
grub-mkconfig needs be run everytime there is a kernel update if you don't use symlinks.
Hey, I missed this thing somehow..
It does not need to be run in Slackware, because Slackware kernel update packages use symlinks.
And if you compile a custom kernel, the resulting file will be called vmlinuz, so that is what you'd specify in grub config.

Furthermore, naming the files properly is very important on EFI partition which is FAT so it can't use symlinks.
So if you had named them properly you would not need mkconfig on each update, whoever told you that is either a debian or redhat user.
 
Old 05-11-2022, 05:23 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,411

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
I’m well aware of all the exceptions to this rule. The key words are “if you don’t use symlinks” . There are those that prefer not to use the symlinks, neither name custom kernels as vmlinuz, or put kernels on the efi partition.

Last edited by colorpurple21859; 05-11-2022 at 05:25 AM.
 
1 members found this post helpful.
Old 05-11-2022, 05:46 AM   #15
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
I’m well aware of all the exceptions to this rule. The key words are “if you don’t use symlinks” . There are those that prefer not to use the symlinks, neither name custom kernels as vmlinuz, or put kernels on the efi partition.
But if it's a corner case, it cannot be marked as "Slackware does this".
If one doesn't use symlinks by choice, then it's also one's choice to use mkconfig on update or not.
It's not like the distributor forces mkconfig on you, which is the standard case with those other distros.

Same thing with grub-install, if the installer does not do that how can "Slackware use it" ?
It requires the user to exit the installer, drop to shell, and type the command.
Otherwise, one could say "ln -s grub-install grub128-install && grub128-install" is what "Slackware use" because it just happens to work like that.

In conclusion, it's the user who does it and not the distributor (I'd prefer to keep it that way TBH).
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Grub errors...grub errors...grub errors smattmac Linux - Newbie 1 06-13-2005 02:07 PM
Grub, Grub and Grub ZeroEffect Linux - Newbie 11 10-07-2004 01:33 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

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

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