Ubuntu Installation :: How To Edit Grub2 Menu Entries
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
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
Jan 24, 2010
When I originally installed Ubuntu 9.10 64 bit, I had the following operating systems already installed:
Kubuntu 9.04
Windows 7
Windows XP
Ubuntu automagically created a GRUB2 menu that offered all of these, plus of course itself, which was fine for a while.
Later on, I deleted and reformatted the partitions that had been dedicated to Kubuntu 9.04. GRUB2 has failed to keep up. Despite running "sudo update-grub" multiple times, the GRUB2 menu continues to show entries for Kubuntu 9.04.
How do I get rid of these obsolete entries? The partitions it was on simply do not exist any longer, so I don't know how GRUB2 is picking it up.
I had already edited my fstab file to reflect the new partitioning scheme, so I don't know where GRUB2 is getting the idea that I still have Kubuntu 9.04 installed.
View 9 Replies
View Related
Jun 25, 2010
As it stands right now, Grub2 seems to generate menu entries in this order (for my pc)
Ubuntu 2.6.32-22
Ubuntu 2.6.32-22 (recovery)
Ubuntu 2.6.32-21
Ubuntu 2.6.32-21 (recovery)
Windows XP
How can I make it so that Grub generates entries in this order
Ubuntu 2.6.32-22
Windows XP
Ubuntu 2.6.32-22 (recovery
Ubuntu 2.6.32-21
Ubuntu 2.6.32-21 (recovery)
If you're wondering why I care about the order, its because I just installed Grub with an icon based theme. In that situation, it looks silly to have 4 Ubuntu Icons next to each other, and then the windows one at the end.
View 7 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
Jan 10, 2010
I have been reading this but could not resolve my issue: [URL]. The problem is as follows. I got a samsung laptop and there is some kind of recovery utility installed. After installing Ubuntu I get too windows grub entries, one is called Windows Vista (loader) on /dev/sda1 and the other one is Windows 7 (loader) on /dev/sda2. The latter is correct and the first one is something that I'd rather not have active at all in the grub menu. Both of them are of course created by 30_os-prober in /etc/grub.d. I figured that I would most likely prefer a custom entry for Windows 7 and remove the x flag from 30_os-prober. I tried to create a file 50_windows7 in a described manner:
#! /bin/sh -e
echo "Adding Windows 43_custom" >&2
menuentry "Windows Vista 43_custom" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 7cecddfbecddb01e
chainloader +1 }
Unfortunately during update-grub I get following:
Found linux image: /boot/vmlinuz-2.6.31-17-generic
Found initrd image: /boot/initrd.img-2.6.31-17-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found Windows Vista (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Adding Windows 43_custom
/etc/grub.d/50_windows7: 4: menuentry: not found
View 13 Replies
View Related
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
View Related
Feb 23, 2011
I'm familiar with Ubuntu and the like, and have GRUB 2 installed as my boot-loader. I was wondering if there was any way to get one menu entry to be re-directed to another. Specifically, whenever I select my third menu entry, I want it to execute the code on menu entry 10. My reason for doing this would be that after customizing my GRUB 2 menu, I came into the problem of updated kernels. Basically I would like a single "Ubuntu, Latest Kernel" entry that always redirected to menuentry 10, where my latest "Ubuntu, linux 2.6.xx-x-generic" entry is. In order to temporarily solve my issue, I've set my "/etc/default/grub" file's "GRUB_DEFAULT" to "9", although I'd rather not do this.
View 6 Replies
View Related
Feb 9, 2010
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
# .....
Every time update-grub run all these are put back. Editing grub.cfg does not help.
View 9 Replies
View Related
Jul 11, 2010
Intalled GRUB using Live CD. My problem is very similar to these..
Code:
1. sudo grub-install --root-directory=/mnt /dev/sda
2. sudo mount -o bind /dev /mnt/dev
3. sudo mount -t proc none /mnt/proc
[Code]....
View 1 Replies
View Related
Aug 10, 2010
There are 2 osx entries in the grub menu one is 32-bit and the other is 64-bit, how i can get rid of the 32-bit one? i am using ubuntu 10.4 and snow leopard 10.6.3
View 9 Replies
View Related
Jul 12, 2010
I followed the following instructions [URL] to get my custom text to appear. The result was many GLTexts in my screensaver properties.
Does anyone know what I need to edit to get rid of all the extra entries?
View 2 Replies
View Related
Jul 13, 2010
I used Ubuntu a few years back. I simply was not able to make it my main OS since I couldn't get video calling to work reliably enough. Anyways I just installed and noticed my grub menu had many more entries then I have operating systems on my computer. Some reason they came up as duplicates. I have so far gathered they took away my menu.lst, they replaced it with something like etc/general/grub. It appears editing this file doesn't give me the ability to change entries. There are a few I would like to rename, and a few I want to get rid of. There is also some other file that is not supposed to be edited, will I need to edit this or is there another way around it? I found info like this, but it is only adding not removing.
Assuming that you already looked at the grub2 documentation and had trouble figuring out what to do, try this. Use sudo to edit /etc/grub.d/40_custom. It will look like this:
Code:
#!/bin/sh
exec tail -n +3 $0 .....
After making the change, run 'sudo update-grub' to apply the change to your grub config.
TLDR: Grub 2 added extra entries, how do I remove and rename some?
View 5 Replies
View Related
Mar 3, 2010
i'm using ubuntu 9.10... i'm working on some projects on L4 microkernel... i want to add it to the grub...i was familiar with the earlier grub, i.e editing the menu.lst...
title = L4Ka:istachio/i586 pingpong
kernel=/boot/kickstart
module=/boot/i586-kernel
module=/boot/sigma0
module=/boot/pingpong
how can i do this in new grub version...? i tried adding the following to /etc/grub.d/40_custom but failed...
menuentry "L4Ka:istachio" {
set root=(hd0,9)
kernel=/boot/kickstart[code ]..........
View 3 Replies
View Related
Jun 10, 2010
grub is giving me six (6!) repetitions of my Ubuntu Lucid install on sda5, five repetitions of my old karmic install on sda1, and I think four of the recovery option.Where have I told it to do that? How do I fix it??The grub choices look like this:
Code:
most recent lucid kernel on sda5
most recent lucid kernel recovery option
[code]....
View 5 Replies
View Related
Jul 14, 2010
I have a dual-boot grub2. On the list, there are Ubuntu 10.04, Memtest x86, and Windows7. I was wondering if it is possible to make Windows 7 first in the grub boot list. At the moment Ubuntu is first, so if it's possible to make windows 7 first.
View 2 Replies
View Related
Feb 24, 2011
I could not seem to find any documentation on how to chage the X anf y coordinated of the grub 2 menu in order to place it in a differrent location on the screen and change is its size (not resolution), remove border.
View 1 Replies
View Related
Mar 6, 2010
I have made a custom grub2 menu however, both the default and the custom show together. So my grub looks like the list below, the bolded entries are my custom ones. How do I get rid of the duplicates? I have tried apt-get remove and deleting old kernels.
ubuntu,linux ...
ubuntu,linux recovery
memtest
memtest
windows7
windows7
ubuntu linux
ubuntu linux recover
View 7 Replies
View Related
Jun 22, 2010
i have an entry in grub that i don't use at all "Windows recovey " and i want to know if there is a way to remove it or just hide it i have an other problem is grub confuses some partitions names so is there a way to rename them
View 3 Replies
View Related
Jan 8, 2011
I have been fooling around with some of the new kernels and have ended up with a lot of options in my grub at boot. I have been checking this page:[URL].. ... and it appears hiding the entries in grub2 is not as easy as hashing them out (#) which was the convention in grub.
My problem: I have installed kernel 2.6.36 and 2.6.37 just to fool around. Neither works in anything but low-graphics as it seems the ATI graphics driver is not working in either yet. They both also kill my wireless (don't recognise the card). BUT I don't want to completely uninstall them as I'd like to keep playing around as time goes on and they develop. I'd like to just hide them from the menu.
Is there some easy way of doing this? The link I provide only gives options to make the kernel non-executable (overly complicated process) or remove the kernel completely, neither of which I want to do. This used to be simple in grub, open a file and add or remove a #, and - although overall I prefer grub2 - IMHO this 'improvement' seems a little like a backward step. Sure a million people will disagree, but .
View 9 Replies
View Related
Jan 28, 2010
the grub splash screen is too dark with very light colored text. i wanted to edit the screen background but there is no menu.lst. what file is shown by grub ?
by the way it works very well and has really scanned the complete computer for bootable partitions. and all work without any modification.
View 3 Replies
View Related
Jan 7, 2011
I'm currently running Lucid Lynx, which installed the Grub 2 Boot loader which it currently lists three different Linux kernels. My problem is this:
1. How do I edit the menu to either remove or comment out one or more of the kernels?
2. Can I remove any of the kernels I don't want, which files do I remove, and will doing so compromise my system.
View 3 Replies
View Related
Apr 29, 2010
I want to install more than on linux distribution on one computer (and the computer has Windows XP, too). How do you make a master grub2 installation that is in its own partition and that has entries that chainload different linux distributions that may have grub2 or grub?
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
Dec 28, 2010
how I can setup the grub2 menu so that it does not timeout? What do I need to set in the configuration file? I did it once before on my old computer but forget now what I changed.
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
Feb 28, 2011
I installed Win7 on a 2-disk RAID0 fakeraid. I then unplugged those drives and installed linux mint on a separate drive. I did it this way because if I left the drives plugged in, linux would jack up the fakeraid for those drives and make windows upbootable, and installing linux to the fakeraid itself is just too much of a PITA. So basically, this is the disk configuration, and there's no chance of me changing it.
Right now, I can boot into either win7 or mint by pressing F12 for the boot menu, and then selecting the drive the os is installed on. It would be nice if I could just add an entry to the grub menu for win7. I've used the menu.lst file before, but apparently all that has changed with grub2. I've checked out some of the grub2 docs and poked around in /etc/grub.d, but frankly, it seems to be orders of magnitude more complicated than it should be.
View 3 Replies
View Related
May 18, 2011
GRUB2 does not show Windows-XP Pro in the menu anymore.
Probably already posted before; however each case usually is somehow different. I use Ubuntu only occasionally to learn how it works.
After the latest update using Update Manager, quite a few packages were installed without any problem. However GRUB2 does not show the Windows-XP(Prof) partition in the menu anymore. Now I can't boot Windows because I can't select what is not shown.
1. This what I get with command "sudo fdisk -l" (in the present situation)
georges@PC1:~$ sudo fdisk -l
[sudo] password for georges:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code]....
It is already the second time that GRUB2 changes the menu items as it pleases, messing up the bootmenu. How can I repair the bootmenu in order to be able to boot Windows-XP, as before the updates ?
The current Ubuntu version is now 10.4 LTS The current GRUB version is "GNU GRUB version 1.98 Ubuntu10"
View 9 Replies
View Related
Apr 28, 2010
Now it's:
Ubuntu
Memtest
Windows 7
I want:
Windows 7
Ubuntu
Memtest
How do I go about doing it? Do I rename "30_os-prober" in /etc/grub.d/ to "10_os-prober" and "10_linux" to "30_linux"?
View 9 Replies
View Related
Mar 5, 2011
Is it possible to add menu entries for older kernels to boot instead of the latest?
I have tried this in Ubuntu 10.04 and it hasn't worked.
This used to be possible with ease in grub legacy.
I copied the current menu entry from /boot/grub/grub.cfg and pasted it in the /etc/grub.d/ 20_custom file.
Then I changed the kernel number to the older kernel number and the initrd number too. #update-grub puts this entry into 'grub.cfg', but it doesn't work.
I get:
The old kernel is in /boot as well as the respective initrd and config files.
View 1 Replies
View Related