LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-11-2012, 07:28 AM   #1
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Fedora 19,Windows 7
Posts: 110
Blog Entries: 3

Rep: Reputation: 1
Angry Which grub am I using?


Hi.

I had Ubuntu 12.04 LTS on my laptop, yesterday I installed Fedora 17 after resizing a partition from Ubuntu and then installing FC into that. Now I have both Linux in my system, with a bootloader which waits for 2-3 seconds before I choose.
I can recall Ubuntu gives an option about how long should one want to see the bootloader. Unfortunately, Fedora didn't give me an option (or probably I missed) during installation.
However, I want to edit my existing Grub/Grub2 bootloader. Where to look for it? In Ubuntu, or in Fedora? FYI, I have not installed grub in MBR.
How can I extend my bootloader's timeout option, the unnecessary entries in it (I don't know why, but it shows Fedora and Ubuntu entries 3 times! ) and if possible use a cool wallpaper (optionally) for it?
 
Old 08-11-2012, 07:37 AM   #2
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 258

Rep: Reputation: 14
Hi!
Please see seeley's help, chapter 6.1:
http://forums.linuxmint.com/viewtopi...28#p366328/url
It was written in Jan. 2011, but maybe you will find a hint (e.g. "findgrub").
 
Old 08-11-2012, 07:53 AM   #3
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,001

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
you have only two choices, so you can easily try both. Fortunately you can mount any filesystem, so you should be able to see both grub installation using either ubuntu or fedora.
see /etc/default/grub for timeout settings

I would rather install grub2 again (from your preferred os) and you will know the answer. There are a lot of resources to help you, for example this: http://www.dedoimedo.com/computers/grub.html and there is a good collection of links can be found at the end of that page.
 
Old 08-11-2012, 08:00 AM   #4
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 176

Rep: Reputation: 22
Hello,

I am using Ubuntu 9.10, and my bootloader options are in /boot/grub/grub.cfg
I think you can also find it for 12.04 in /boot.

Regards.

Last edited by kedarp; 08-11-2012 at 08:03 AM.
 
1 members found this post helpful.
Old 08-11-2012, 08:10 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
grub.cfg is not meant to be edited. Any changes you make will be overwritten the next time an update launches the update-grub command. You have to customize grub using the files in /etc if you want to make your changes persistent.
 
1 members found this post helpful.
Old 08-11-2012, 09:04 AM   #6
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 176

Rep: Reputation: 22
Quote:
How can I extend my bootloader's timeout option, the unnecessary entries in it (I don't know why, but it shows Fedora and Ubuntu entries 3 times! ) and if possible use a cool wallpaper (optionally) for it?
You will see the timeout="value" option in it.
You can remove the "menuentry" if you don't want. But I think the 3 entries are not same.
One could be "recovery mode" and the other will be _________ no idea.
No idea about wallpaper.

There is a warning "YOU SHOULD NOT EDIT THIS FILE".
But, I don't know any other method other than editing the grub.cfg file.
Then you can again edit the grub.cfg file again after update-grub.
 
1 members found this post helpful.
Old 08-11-2012, 09:20 AM   #7
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Fedora 19,Windows 7
Posts: 110
Blog Entries: 3

Original Poster
Rep: Reputation: 1
Lightbulb It works!

Quote:
Originally Posted by kedarp View Post
Hello,

I am using Ubuntu 9.10, and my bootloader options are in /boot/grub/grub.cfg
I think you can also find it for 12.04 in /boot.

Regards.
As guided by all, I first edited the /etc/default/grub file and set a longer timeout. After a reboot, nothing changed.
Then I used the process quoted above: edited the /boot/grub/grub.cfg (It was written NOT to edit the file, but I didn't obey !). After a reboot, the grub menu timeout is set to the specified one!!

Thanks for the help. Now please tell me if I can customize the black & white bootloader screen. If yes, how??

You people are real genius, I must conclude.
 
Old 08-11-2012, 10:05 AM   #8
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Fedora 19,Windows 7
Posts: 110
Blog Entries: 3

Original Poster
Rep: Reputation: 1
Unhappy

Quote:
Originally Posted by TobiSGD View Post
grub.cfg is not meant to be edited. Any changes you make will be overwritten the next time an update launches the update-grub command. You have to customize grub using the files in /etc if you want to make your changes persistent.
This is right, also. After posting my last post, I had a sequence of updates including kernel. I changed the timeout options suggested by everyone in this thread, and (hopefully) got a persistent timeout.
But why does the bootloader display all the unnecessary options, like fedoraXXxx (current kernel), Fedora xxXX (older kernel)? Why doesn't it overwrite the old value? I have, as I have already mentioned, Ubuntu also. So if Ubuntu gets a newer kernel, another entry to grub? Anyway, if it's not automatic, how can I persistently choose my bootloader entries? And what about getting rid of the B & W grub? Any themes or such things out there?
 
Old 08-11-2012, 10:33 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
If you make changes to the config files in /etc you have to run
Code:
update-grub
to generate a new grub.cfg with the changes.
That you see the older entries has a simple reason: Those kernels are still on your system. If the kernel is upgraded the older kernels are not deleted, so that you can still boot the system if there is a problem with the newer kernel. If you want to remove those entries just remove the older kernels using your systems package-manager and launch the
Code:
update-grub
command again.

Regarding themes for Grub 2 have a look here: http://ubuntuforums.org/showthread.php?t=1534689

Last edited by TobiSGD; 08-11-2012 at 10:35 AM. Reason: added info
 
2 members found this post helpful.
Old 08-11-2012, 11:55 AM   #10
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 176

Rep: Reputation: 22
Quote:
You have to customize grub using the files in /etc if you want to make your changes persistent.
Thanks for above info on grub.

Last edited by kedarp; 08-11-2012 at 12:05 PM.
 
Old 08-11-2012, 06:14 PM   #11
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Fedora 19,Windows 7
Posts: 110
Blog Entries: 3

Original Poster
Rep: Reputation: 1
Thumbs up

Quote:
Originally Posted by TobiSGD View Post
That you see the older entries has a simple reason: Those kernels are still on your system. If the kernel is upgraded the older kernels are not deleted, so that you can still boot the system if there is a problem with the newer kernel. If you want to remove those entries just remove the older kernels using your systems package-manager and launch the
Code:
update-grub
command again.

Regarding themes for Grub 2 have a look here: http://ubuntuforums.org/showthread.php?t=1534689
Thanks a ton, TobiSGD. It was very helpful of you! Worked for me!! I have managed to delete the old kernel.
The link you provided was also a gem.
 
  


Reply

Tags
bootloader, fedora, grub, grub2, ubuntu


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 04:29 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM


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