LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2011, 12:44 PM   #1
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora, Mint, MX Linux
Posts: 178
Blog Entries: 1

Rep: Reputation: 20
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?

Last edited by loftus49; 04-06-2011 at 12:54 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-06-2011, 01:19 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Can you post a full output of the contents in /boot?
 
Old 04-06-2011, 01:19 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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.
 
2 members found this post helpful.
Old 04-06-2011, 01:31 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by pljvaldez View Post
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
 
Old 04-06-2011, 03:10 PM   #5
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora, Mint, MX Linux
Posts: 178

Original Poster
Blog Entries: 1

Rep: Reputation: 20
Quote:
Originally Posted by corp769 View Post
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.
 
Old 04-06-2011, 03:12 PM   #6
loftus49
Member
 
Registered: May 2010
Location: Phoenix
Distribution: Ubuntu, CentOS5, Fedora, Mint, MX Linux
Posts: 178

Original Poster
Blog Entries: 1

Rep: Reputation: 20
Quote:
Originally Posted by pljvaldez View Post
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.

Last edited by loftus49; 04-07-2011 at 12:31 AM.
 
  


Reply

Tags
boot, grub, 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[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
LXer: Grub Customizer Lets You Reorder, Add Or Remove GRUB 2 (Or BURG) Menu Entries LXer Syndicated Linux News 0 10-09-2010 05:20 PM
[SOLVED] Boot loader problems - GRUB has no valid entries thomas_r Linux - Newbie 11 09-29-2010 08:02 PM
Multiple GRUB entries BrianPritchard Linux - Newbie 1 11-17-2008 08:40 AM
GRUB entries in the boot-menu shankariyer Red Hat 7 12-10-2003 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration