LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-23-2011, 07:51 AM   #1
MarcosPauloBR
Member
 
Registered: Feb 2011
Location: Santa Catarina - Brazil
Distribution: Slackware
Posts: 129

Rep: Reputation: 3
Question How to change the Grub2 to show the available kernel to boot?


Hi people!

I was a Slack user, and Lilo always shows me the kernels that I put on the lilo.conf on the boot time.

How can I do the same thing on Grub2?

I want to debug some custom kernels, and with this option I can do this on Ubuntu!

Thanks for your time!
 
Old 08-24-2011, 01:09 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,189

Rep: Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131
If update-grub doesn't do it automatically you'll need either create a custom menu entry in /etc/grub.d or name your kernel such that update-grub finds them.
I'm not sure if it's documented anywhere, but I suspect a name starting with vmlinuz- will be found.
 
Old 08-24-2011, 01:56 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
IIRC with 9.10 and later versions of ubuntu, the grub menu does not display if you only have 1 OS installed.

If you hold shift duing booting, you should see the grub menu. There should be some way to get grub to display without holding any keys down, but I dont know it offhand.

Running 'upgdate grub' should give you the option to boot to any kernels in your system from grub2 (but you probably already knew that, right?)
 
Old 08-24-2011, 05:22 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you are using a single os change hidden menu value from "true" to a time you want to see at boot. In ubuntu this needs to be done in /etc/default/grub.
 
Old 08-24-2011, 12:21 PM   #5
MarcosPauloBR
Member
 
Registered: Feb 2011
Location: Santa Catarina - Brazil
Distribution: Slackware
Posts: 129

Original Poster
Rep: Reputation: 3
Thanks for all!

Cascade, its exactly what I want =D

I found this site too:
http://maketecheasier.com/mastering-...way/2009/11/19

Thanks for all!
 
Old 08-25-2011, 04:29 AM   #6
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
No problem, glad it helped.
 
  


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
How do I change the GRUB2 Boot Loader Background Image? theif519 Linux - Newbie 3 05-01-2011 09:37 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
[SOLVED] How to change Grub2 splash images in Ubuntu 10.04 sanjayagayan Linux - Newbie 2 09-24-2010 12:02 PM
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does.. wiliweld *BSD 7 05-03-2010 01:05 PM
Grub2 boot entries don't change adunamia Linux - Software 10 02-09-2010 03:35 PM

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

All times are GMT -5. The time now is 06:57 AM.

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