Software :: How To Edit Boot Menu For Grub2
Mar 5, 2011
I just installed Debian squeeze. I installed grub to the MBR. It uses Grub 2. Apparently I'm not supposed to edit /boot/grub/grub.cnf, but /etc/default/grub and /etc/grub.d. I looked at these and read The Readme as well as a tutorial at [URL]. I'm still not sure of what to do. When I boot up I get 4 choices: 2 for Squeeze and two for another linux distro. I would like to edit the print out I get when I boot up, as well as add the partition for XP which wasn't included.
This is /etc/default/grub:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=2
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="" .....
View 3 Replies
ADVERTISEMENT
Jun 3, 2010
I have Koala with Grub 2, working fine. Just did some updates and now the boot menu is getting long, too many kernels. Want to reduce to the last two kernels plus Win XP, so got online and looked for instructions in English. News flash: Nobody seems to care about this issue, there is absolutely nothing to be found on it for Grub 2. There is a SIMPLE command for Grub, "howmany", in menulst. Menulst is not used in Grub 2, so that's out. OK I give up, after searching for over an hour for Grub 2's equivalent. Maybe someone here knows how it's done? IN ENGLISH please, not "sudo I am an intelligent BEGINNER. The Grub 2 page says: "GRUB 2 allows users to create customized menu selections which will be automatically added to the main menu when sudo update-grub is executed." Note the word ADDED. What about REMOVING? Does anyone want to bother themselves with addressing this issue? I read somewhere StartUpManager can do this. Application Finder doesn't show StartUpManager on my machine, and reading about it at [URL].. as it seems to be Grub-1 related. I don't get the impression it will do what I want for Grub 2. If it does, they should say so, right??
I could remove the older kernels, but would rather just edit the boot menu. I found this for removing kernels: Open synaptic, do a search for "linux-image" and then remove the older kernels from your computer. Removing them via synaptic will remove them from the boot menu as well. Keep the kernel you are currently using plus one older one you know works. To find your current kernel: uname -r OK so I open synaptic and do the search. It comes up with maybe 200 files, some of which start with linux-image, scattered throughout the list. Oh boy, let a newbie loose on this. Just select and delete them all, why not? I can't tell one from another, the only difference is a cryptic number that means not one whit to me. There has to be a better way!
I got brave after editing etc/default/grub and doing update-grub, which reported the kernels by number, which I had forgotten. Then went back into Synaptic and hit the 'Sort By Installed' divider, which brought all the installed kernels to the top, where they make sense. Then I selected the two lowest-numbered and shot them in the head. They are gone.
View 3 Replies
View Related
Oct 22, 2010
i have been running Kubuntu 10.04 on my primary hard drive, and i have a second 1.5TB HD that i use for storage. so shrunk the secondary HD partition and created a second 50GB partition and i installed Ubuntu 10.10 on it and told it to rewrite the mbr on my primary HD. Where i am at: i took the menu entry from my Kubuntu "grub.cfg" and the entry from my Ubuntu "grub.cfg" and put them in the 40_custom file. so now when i boot-up my computer, it shows both installations at the bottom of Grub2s menu list. with all the menu entries that Grub automatically adds.
What i would like to know is how do i make it so that the Grub2 menu only shows the entries that i add to the 40_Custom file and not the randomly generated list aswell.
View 3 Replies
View Related
May 6, 2010
I'm having an odd dual-boot problem. Briefly, I can't boot Windows XP from its entry on the GRUB2 menu. If I set the disk order in BIOS so that the machine boots off the drive with Windows XP, XP starts normally. However, if I boot off the Ubuntu drive, which brings up the GRUB2 menu, choosing the "Windows 7 loader" option (why it says Windows 7 when there's only Windows XP is another question!) just makes my system reboot.
It appears there's some problem with the way GRUB2 attempts to start Windows XP. I'm also wondering why GRUB2 thinks it sees the Windows 7 loader. There shouldn't be any Windows 7 anything anywhere. I once had a Windows 7 RC install on the same disk as Windows XP, but I wiped the Windows 7 system partition and reallocated its space as just another NTFS partition. FWIW, GRUB2 is installed on the MBR of the disk containing my Ubuntu install. Windows XP has a different drive all to itself.
View 9 Replies
View Related
Oct 21, 2010
I have installed two OS on my PC. Windows 7 and fedora 12,but when I boot it shows 3 entries for fedora and one for windows to select. How can I remove redundant menu entries without affecting boot loader.
View 1 Replies
View Related
Oct 5, 2010
As a long time Red Hat/Fedora user, I'm quite new to the Ubuntu/Debian culture, and/or, to the Grub2 specific behavior.I'd like to see Grub2 system selection menu at every boot time even if I only have a single operating system, Ubuntu 9.10, on my hard drive. What should I do fot this purpose?
View 1 Replies
View Related
Nov 24, 2010
After upgrading to 10.10 the grub boot menu stopped showing up. I made a custom menu in grub.d and update grub finds everything, but when I restart my system the boot menu never shows. I should have two kernels. How do I get the boot menu to show every time I restart my system?
View 9 Replies
View Related
Apr 8, 2010
I would like to be able to edit which OS is set as default on the first selection menu. I installed Ubuntu via windows xp. and have Grub 2 installed. When I start my computer, first I see is the BIOS, then I have a menu which allows me to select either windows xp or Ubuntu (windows xp is the default which I'd like to change to Ubuntu). Once I select Ubuntu, then I get the menu allowing me to select between the different upgrade versions.
From all the pages I read through on editing grub2 defaults, they only refer to the second menu that I get to pick between the upgrade versions or kernels (I think they are referred to). What I'd like to do is set Ubuntu as the defualt on the first menu screen, as Ubuntu is my preferred OS and it can load automatically, then I don't care what the default upgrade version is loaded (this i have understood how to edit).
View 3 Replies
View Related
Jan 31, 2010
In my Red Hat 7.2 , the /boot/grub/grub.conf has the following data :
But when I reboot my Red Hat server , I don't see the Grub menu to say edit the boot kernel .
View 15 Replies
View Related
Oct 7, 2010
I have a simple question, what is the best way to clean up or edit my boot screen menu on Ubuntu...? I'm running 2.6.32-25-generic #44-Ubuntu SMP UTC 2010 x86_64 GNU/Linux. I have run about 5 upgrades and the older Kernels still show up.
View 9 Replies
View Related
Jun 25, 2010
I upgraded my main box to Ubuntu 10.04 and everything runs fine, except for a problem with grub: I can't modify the boot menu in any way, I'm stuck with what grub2 thought was the optimal setup at installation time (and it got it wrong, btw). The current boot menu lists:
- my older 9.10 install in sdb2 (one kernel)
- legacy windows XP install on sda1
- my even older 9.04 install in sdb1 (two kernel versions)
- my new install in sdb3, with only one kernel (the one coming with the distro CD)
I tried anything I could think of to modify this menu:
- modify the /etc grub config file then running sudo update-grub
- using a specific app (system manager? don't remember its name)
- upgrading to the latest kernel
- removing and reinstalling grub
to no avail: the menu is still there in the above form, and I have to manually select the 10.04 (old) kernel by hand every time I reboot.
View 9 Replies
View Related
Jan 9, 2011
Have recently installed 10.10 and have several other OS' installed, as well as other NTFS (non-OS) partitions. After a couple of updates, my boot menu shows about 8 entries, whereas I should only have about 4... How is this fixed in Grub2?
Have installed Startup Manager, and there seems to be no option here...
View 3 Replies
View Related
Jan 29, 2011
I'd like have some text written on my grub2 boot menu.
In legacy grub you could just add: title Foobar and you'd get "Foobar" displayed.
I tried: menuitem "Foobar" {} grub2, but it doesn't work. Any ideas how do you do something like that?
(Yes, I know writing grub.cfg by hand is not very smart. But I have a special situation: I wrote my own grub.cfg on a dedicated boot partition from where I chainload to other grub on other partitions. Those secondary grubs generate their grub.cfgs on the fly, so everything is OK )
View 3 Replies
View Related
Mar 7, 2011
I've already read and tested the various guides for pasword portecting the menu items. What I need is a little bit different. I need to protect the whole boot menu so normal users cannot select any entry at all and only let the default entry boot.
View 4 Replies
View Related
Sep 13, 2009
Here is how I created a Grub2 boot-cd with a (grub.cfg) menu:
mkdir /tmp/cdroot
mkdir /tmp/cdroot/boot
mkdir /tmp/cdroot/boot/grub
cp /boot/grub/grub.cfg /tmp/cdroot/boot/grub
cd /tmp
[code]....
NOTE: The above proceedure assumes you already have a grub.cfg file. If you don't, create one in the /tmp/cdroot/boot/grub directory
View 6 Replies
View Related
Mar 4, 2011
I've created live squeeze usb-hdd with syslinux as boot manager:LB_BOOTLOADER="syslinux". Now if I boot from this usb-hdd image I get in the boot menu:
Live
Live (failsafe)
Live 686
Live 686 (failsafe)
How to configure to put these "failsafes" away?
View 5 Replies
View Related
Feb 5, 2010
I have Ubuntu 9.10, PuppyLinux431 and Windows XP on a Toshiba laptop. I like Ubuntu, but the speed of PuppyLinux is addictive, so that was my default boot until I upgraded Ubuntu which included an upgrade to Grub2.
My problem: Grub2 doesn't recognise PuppyLinux. Using information from [url] I have made an executable file named 07_Puppy in /etc/grub.d and did update-grub from root. Still no luck. I can boot PuppyLinux from the grub command line using the following commands:
Just before grub displays the boot menu, I think I see a very brief message about a syntax error, but it's gone before I can read it.
Here is the contents of my grub.cfg:
Quote:
Why Grub2 doesn't see Puppy and let me boot it from the menu?
View 3 Replies
View Related
Mar 3, 2010
My Grub2 boot menu includes:
Ubuntu, Linux 2.6.31-19-generic
Ubuntu, Linux 2.6.31-19-generic (recovery mode)
Ubuntu, Linux 2.6.31-14-generic
Ubuntu, Linux 2.6.31-14-generic (recovery mode)
Q1) I only really need the latest kernel, 2.6.31-19, don't I?
Q2) So how can I get rid of the two 2.6.31-14 entries?
View 5 Replies
View Related
Apr 13, 2011
I have two hard drives - (1) 80GB (2) 500GB: the 1st HD has 3 partitions (in that order) - Windows 7, Ubuntu 10.10 & Swap. the 2nd HD is for storage only, and has 2 partitions.
I did the following - I installed Windows 7 on the first partition of the 1st HD, it booted just fine. Then I installed Ubuntu 10.10 on the second partition of the 1st HD.
Windows 7 shows in the GRUB menu alongside with Ubuntu. Ubuntu boots just fine, but when I select Windows it simply restarts the computer and the GRUB menu shows again.
RESULTS.txt of Boot Info Script:
Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in partition #3 for (,msdos3)/boot/grub.
[Code]....
View 7 Replies
View Related
Dec 8, 2010
machine boots straight to Windows, Grub2 does not display the normal boot menu choices. Therefore, not able to boot into Ubuntu 9.10.Perhaps someone could look at this Results.txt file and shed some light on what went wrong.This machine was working fine for a long time, then all of a sudden, it starting booting straight to Windows.
View 9 Replies
View Related
Feb 18, 2010
Debian if my first OS and i want to dual boot Fedora12.Ok i installed Fedora12 and choose not to install the bootloader(gonna use the one Debian installed)What i'm tring to do in Debain is edit my /boot/grub/menu.lst
Here is what i have
Code:
title Debian GNU/Linux, kernel 2.6.26-1-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/hda1 ro quiet
initrd /boot/initrd.img-2.6.26-1-686
code....
View 4 Replies
View Related
Jul 8, 2010
When I edit my applications menu to to hide games they stay on the menu. Everything else hides when prompted.
View 6 Replies
View Related
Jun 10, 2010
i wiped my entire hard drive that had xp as its only OS. I freshly installed a Windows 7 ultimate and everything went perfectly. I then decided to install 10.4. I split the partitions correctly (i had experience doing this already with my laptop, which has xp/10.4). Ubuntu 10.4 install went flawlessly, except for one thing. Now when i boot up the pc, it goes straight into 10.4. I have tried holding shift during the start up to force the boot menu, and it just shows the Ubuntu 10.4 OS as choices. Any clue what i could do to make Win7 appear in the boot menu?
View 9 Replies
View Related
Apr 29, 2010
I want to edit the GRUB menu in ubuntu but Menu.1st is missing.When I open the /boot/grub.cfg from terminal I cant save it.
View 7 Replies
View Related
Aug 4, 2010
I'm currently learning about linux systems and all but,I installed Ubuntu onto a partition (2nd) and it worked.After that when I tried to boot it would just boot without showing the GRUB menu.This is because 1.I messed up Windows boot files 2.GRUB needs some tuning.
I would like to ask how to configure the grub.cfg in Ubuntu since when is earched they were only thread for GRUB legacy...
View 2 Replies
View Related
Dec 18, 2010
I have an old computer and recently switched from Kubuntu to Xubuntu so it would run faster. I have noticed that Xubuntu has no menu editor. Is there a graphic interface for editing the menu? If not, could someone please explain to me how to edit the menu through the menu file?
View 3 Replies
View Related
Mar 7, 2010
i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again.
i cant boot to windows 7.
Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.
sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c3a81f5
[Code]....
View 3 Replies
View Related
May 17, 2010
I went through so many post but I haven't found the proper answer yet hope you have an Idea1. Grub2 saves only Linux OS as last selected no Windows OS2.It is possible to boot into a cdrom (drive)?
View 2 Replies
View Related
Jan 16, 2010
is it possible to edit Grub2 to hide the rectangular frame around the selectable OSes? Also, is it possible to hide the Grub 'title' ("Grub GNU 2 (1.97~beta4)" et cetera)?
View 1 Replies
View Related
Jan 14, 2010
Is it possible to edit the "Places" menu the way one can edit the "Applications" and "System" menus on gnome?
Right-clicking on the bar gives only Applications and System as editable menus. I would like to remove some items from the places menu and add others of my own liking
View 4 Replies
View Related