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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-11-2012, 07:28 AM
|
#1
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Rep:
|
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?
|
|
|
08-11-2012, 07:37 AM
|
#2
|
Member
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295
Rep:
|
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").
|
|
|
08-11-2012, 07:53 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,736
|
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.
|
|
|
08-11-2012, 08:00 AM
|
#4
|
Member
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Rep:
|
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.
|
08-11-2012, 08:10 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
08-11-2012, 09:04 AM
|
#6
|
Member
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Rep:
|
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.
|
08-11-2012, 09:20 AM
|
#7
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Original Poster
Rep:
|
It works!
Quote:
Originally Posted by kedarp
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.
|
|
|
08-11-2012, 10:05 AM
|
#8
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
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?
|
|
|
08-11-2012, 10:33 AM
|
#9
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
If you make changes to the config files in /etc you have to run 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 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.
|
08-11-2012, 11:55 AM
|
#10
|
Member
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Rep:
|
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.
|
|
|
08-11-2012, 06:14 PM
|
#11
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
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 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.
|
|
|
All times are GMT -5. The time now is 02:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|