LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-15-2022, 05:08 PM   #1
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Rep: Reputation: 114Reputation: 114
GRUB not booting 5.19.9 initially


I just did a slackpkg upgrade-all. With it came the new kernel.

I also ran grub-mkconfig -o /boot/grub/grub.cnf

Now when I boot and pick the first selection from the GRUB menu it tells me I need to load the kernel first.

I can go the the second menu and can't pick the first two options. The third one will load the 5.19.9 kernel.

Any idea why this is happening?

Thanks.
 
Old 09-15-2022, 05:10 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
just an initial thought. but did you make a new initrd when you upgraded the kernel?
 
Old 09-15-2022, 05:15 PM   #3
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Daedra View Post
just an initial thought. but did you make a new initrd when you upgraded the kernel?
No. Shouldn't need to. I've just run the command grub-mkconfig -o /boot/grub/grub.cnf in the past and it has always worked.
 
Old 09-15-2022, 05:44 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
grub-mkconfig -o /boot/grub/grub.cnf
unless this is a miss-type should be
Code:
grub-mkconfig -o /boot/grub/grub.cfg
 
Old 09-15-2022, 06:05 PM   #5
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by colorpurple21859 View Post
unless this is a miss-type should be
Code:
grub-mkconfig -o /boot/grub/grub.cfg
Bingo! I usually look at my notes. I THOUGHT I had this memorized. Looks like I'll go back to looking at my notes.

Thank you so much for your help.
 
Old 09-16-2022, 07:05 PM   #6
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
refind makes it sooo easy if you have efi boot. unzip and run the install script. if you forget mkinitrd garp, or mysteries of grub2, refind has your six. we <3 refind.
 
Old 09-16-2022, 07:17 PM   #7
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by NakedRider View Post
Bingo! I usually look at my notes. I THOUGHT I had this memorized. Looks like I'll go back to looking at my notes.

Thank you so much for your help.
I do not remember where I have found this little script named "update-grub" but I find it really useful.
Code:
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
It's less error prone to type "update-grub" , right?
 
1 members found this post helpful.
Old 09-21-2022, 09:46 AM   #8
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by ZhaoLin1457 View Post
It's less error prone to type "update-grub" , right?
Yes, indeed. I wrote a script yesterday, updated the kernel and tried it out. All's well.
Thanks for the suggestion.
 
Old 09-21-2022, 12:31 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
I do not remember where I have found this little script named "update-grub" but I find it really useful.
It is used in debian based distros.
 
Old 09-22-2022, 08:24 AM   #10
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by NakedRider View Post
No. Shouldn't need to.
Am I the only one assuming that initrd image should contain modules from the currenly running kernel and not modules from several versions behind?
 
1 members found this post helpful.
Old 09-22-2022, 01:05 PM   #11
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Daedra View Post
just an initial thought. but did you make a new initrd when you upgraded the kernel?

Quote:
Originally Posted by elcore View Post
Am I the only one assuming that initrd image should contain modules from the currenly running kernel and not modules from several versions behind?
Hmmm ...

I would think so too ... kernel-modules should probably come from the same kernel source as the running kernel bzimage.

-- kjh( I guess one might get away with old modules with a new kernel but why screw around when it's so simple to do it the right way ? )
 
  


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
Suse10.2 Installation problem? can not find DVD-ROM initially YeJX SUSE / openSUSE 8 12-22-2006 11:22 PM
Need help adding Man pages/command after not initially installing wilko666 Slackware - Installation 3 10-30-2005 05:23 AM
How to tell up2date to start getting sources when not initially installed ericcarlson Fedora 12 08-07-2004 12:11 PM

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

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