LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Grub /boot entries (http://www.linuxquestions.org/questions/linux-software-2/grub-boot-entries-873386/)

loftus49 04-06-2011 12:44 PM

Grub /boot entries
 
Ubuntu 10.10 - Grub2

When I go to https://help.ubuntu.com/community/Gr...0During%20Boot (Thanks Andrew and Larry) to learn about how to remove lines from my Grub menu, I get (in part) the following:

"10_linux Locates kernels on the root device for the operating system currently in use. It takes this information and establishes the names displayed on the menu for these kernels. Thanks to the code in this file, it is not necessary (or even possible) to explicitly construct the list of kernel names displayed on the menu. Note: If you don't want all your old kernels to appear in the menu list, remove their files from /boot."

The last sentence says to "remove their files" ...

But my /boot lists different types of files:

abi-2.6.35-23-generic-pae
config-2.6.35-24-generic-pae
initrd.img-2.6.35-24-generic-pae
System.map-2.6.35-23-generic-pae
vmcoreinfo-2.6.35-24-generic-pae
vmlinuz-2.6.35-25-generic-pae

Which are "their files" I should remove?

corp769 04-06-2011 01:19 PM

Can you post a full output of the contents in /boot?

pljvaldez 04-06-2011 01:19 PM

I would go about it differently. Search your package database for the installed kernels and then purge the ones you no longer use. For example, dpkg --get-selections |grep linux-image should return the list of kernels. Keep your latest one (which I'm guessing should be 2.6.35-25) and use your package manager to remove the others.

The actual important files (at least for grub entries) are most likely initrd.img and vmlinuz files. The first is the initial boot environment (i.e. has drivers for your hardware and a minimal system). The second is the actual kernel you run with when it's all booted up.

corp769 04-06-2011 01:31 PM

Quote:

Originally Posted by pljvaldez (Post 4316104)
I would go about it differently. Search your package database for the installed kernels and then purge the ones you no longer use. For example, dpkg --get-selections |grep linux-image should return the list of kernels. Keep your latest one (which I'm guessing should be 2.6.35-25) and use your package manager to remove the others.

The actual important files (at least for grub entries) are most likely initrd.img and vmlinuz files. The first is the initial boot environment (i.e. has drivers for your hardware and a minimal system). The second is the actual kernel you run with when it's all booted up.

Yeah, I'm more old school. I like to do everything manually by hand. That's how I learned.... LOL

loftus49 04-06-2011 03:10 PM

Quote:

Originally Posted by corp769 (Post 4316103)
Can you post a full output of the contents in /boot?

Contents of /boot

abi-2.6.35-23-generic-pae config-2.6.35-24-generic-pae initrd.img-2.6.35-24-generic-pae System.map-2.6.35-23-generic-pae vmcoreinfo-2.6.35-24-generic-pae vmlinuz-2.6.35-25-generic-pae
abi-2.6.35-24-generic-pae config-2.6.35-25-generic-pae initrd.img-2.6.35-25-generic-pae System.map-2.6.35-24-generic-pae vmcoreinfo-2.6.35-25-generic-pae vmlinuz-2.6.35-27-generic-pae
abi-2.6.35-25-generic-pae config-2.6.35-27-generic-pae initrd.img-2.6.35-27-generic-pae System.map-2.6.35-25-generic-pae vmcoreinfo-2.6.35-27-generic-pae vmlinuz-2.6.35-28-generic-pae
abi-2.6.35-27-generic-pae config-2.6.35-28-generic-pae initrd.img-2.6.35-28-generic-pae System.map-2.6.35-27-generic-pae vmcoreinfo-2.6.35-28-generic-pae
abi-2.6.35-28-generic-pae grub memtest86+.bin System.map-2.6.35-28-generic-pae vmlinuz-2.6.35-23-generic-pae
config-2.6.35-23-generic-pae initrd.img-2.6.35-23-generic-pae memtest86+_multiboot.bin vmcoreinfo-2.6.35-23-generic-pae vmlinuz-2.6.35-24-generic-pae


Thank you.

loftus49 04-06-2011 03:12 PM

Quote:

Originally Posted by pljvaldez (Post 4316104)
I would go about it differently. Search your package database for the installed kernels and then purge the ones you no longer use. For example, dpkg --get-selections |grep linux-image should return the list of kernels. Keep your latest one (which I'm guessing should be 2.6.35-25) and use your package manager to remove the others.

The actual important files (at least for grub entries) are most likely initrd.img and vmlinuz files. The first is the initial boot environment (i.e. has drivers for your hardware and a minimal system). The second is the actual kernel you run with when it's all booted up.


Thank you for both a helpful and quick response. I really appreciate it.
It worked beautifully.


All times are GMT -5. The time now is 12:20 AM.