LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2011, 10:01 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 48
How do I modify GRUB to boot using the generic kernel?


Hello:

My Slackware boots using the huge kernel.

I am not using LILO; I am using GRUB from the extras directory on the DVD.

I followed the tutorial @ http://genek.net/LinuxAdventures/ins...ackconfig.html up to the point where it discusses modifying LILO.

My /boot/grub/menu.lst reads, in part:
Quote:
# Linux bootable partition config begins
title Slackware Linux on (/dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
# Linux bootable partition config ends
This boots the huge kernel.

What changes must I make to the above menu.lst entry to boot using the generic kernel?

Thanks for any advice on this,
 
Old 02-16-2011, 10:50 AM   #2
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 88

Rep: Reputation: 35
Add the line "initrd /boot/initrd.gz" to your menu.lst. That is, if you made an initrd with your generic kernel. Good luck, it worked well at my machine. And you have to specify your generic kernel, like for instance /boot/vmlinuz-generic-2.6.33.4

Last edited by Hannes Worst; 02-16-2011 at 10:58 AM.
 
1 members found this post helpful.
Old 02-16-2011, 10:57 AM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Well first you'll obviously need to generate an initrd - if you've not done this you may use :
Code:
su -c "$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r)"
Then change grub like so
Code:
# Linux bootable partition config begins
title Slackware LinuxHuge on (/dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Slackware LinuxGeneric on (/dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-generic-smp-2.6.33.4-smp root=/dev/sda7 ro vga=normal
initrd /boot/initrd.gz
# Linux bootable partition config ends
I would add the additional stanza rather than change the existing one so you have a fall back.

Last edited by bgeddy; 02-16-2011 at 10:58 AM.
 
1 members found this post helpful.
Old 02-16-2011, 02:00 PM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Thank you for your help - my system now boots the generic kernel and I know because I ran T3slider's code: (http://www.linuxquestions.org/questi...kernel-856086/)
Code:
diff <(zcat /proc/config.gz) /boot/config-generic-smp-2.6.33.4-smp &>/dev/null && echo true || echo false
My result is: true

Thanks again,
 
  


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] 8.04LTS: Upgrade to 2.6.24-27-generic kernel breaks grub tredegar Ubuntu 2 02-07-2010 12:15 PM
generic-smp kernel doesn't boot in 12.2 samac Slackware 7 12-12-2008 12:01 PM
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM
How to modify Grub boot loader MEI God MEPIS 2 10-27-2005 01:13 PM
Help! Modify my grub file for triple boot? thegreatnorth Fedora 1 01-03-2004 12:09 PM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration