kernels
NoOp
glgxg at sbcglobal.net
Thu Apr 28 20:31:25 UTC 2011
On 04/28/2011 12:50 PM, Verde Denim wrote:
> On Thu, Apr 28, 2011 at 3:40 PM, NoOp <glgxg at sbcglobal.net> wrote:
>
>> On 04/28/2011 12:19 PM, Verde Denim wrote:
>> > I happened to be looking through my test box running 11 this morning, and
>> > got curious about the structure of /boot and grub.
>> > In looking at my 10.10 laptop, I noticed that I currently have 7 kernel
>> > images there, which include a set of files prefixed with abi-<release>.
>> I've
>> > not seen these before and don't know why they are there.
>> > I then looked in the grub directory and, somewhat to my surprise, could
>> find
>> > no place to edit the grub menu.
>> >
>> > I know things have changed somewhat, so I looked in synaptic to see if
>> all
>> > of those kernels were marked as 'installed' and, sure enough, they are.
>> > (there is also a kernel there that is one version ahead of the one I
>> > currently have, but the updater has not flagged it as an upgrade as of
>> yet).
>> >
>> > Is the preferred method of clearing up the grub menu and associated
>> kernel
>> > images to use synaptic and 'mark for removal' ?
...
>> NoOp - Oops! Sorry, I was looking at my 10.04 system when I pulled those
> kernel image numbers... DOH!
>
> But the question still stands - looking at the list you provided above, at
> least two of those could be removed, assuming you would keep the current and
> current - 1.
>
> Regards
> Jack
That is my preferred method. I typically keep at least the previous
kernel (I've not cleaned this machine in awhile).
Liam did a nice job writing posting about this awhile back:
<http://permalink.gmane.org/gmane.linux.ubuntu.user/217396>
But I open a terminal and use 'ls /boot' to find what I need, then open
Synaptic & copy and paste to the Synaptic search. So for example:
$ ls /boot
abi-2.6.35-26-generic memtest86+.bin
abi-2.6.35-27-generic memtest86+_multiboot.bin
abi-2.6.35-28-generic System.map-2.6.35-26-generic
abi-2.6.35-29-generic System.map-2.6.35-27-generic
config-2.6.35-26-generic System.map-2.6.35-28-generic
config-2.6.35-27-generic System.map-2.6.35-29-generic
config-2.6.35-28-generic vmcoreinfo-2.6.35-26-generic
config-2.6.35-29-generic vmcoreinfo-2.6.35-27-generic
grub vmcoreinfo-2.6.35-28-generic
grub.old vmcoreinfo-2.6.35-29-generic
initrd.img-2.6.35-26-generic vmlinuz-2.6.35-26-generic
initrd.img-2.6.35-27-generic vmlinuz-2.6.35-27-generic
initrd.img-2.6.35-28-generic vmlinuz-2.6.35-28-generic
initrd.img-2.6.35-29-generic vmlinuz-2.6.35-29-generic
And I want to clean out 2.6.35-26 - I copy '2.6.35-26' from the
terminal, then open Synaptic and paste that into the search box. I then
click the 'S' column to put all the installed versions to the top,
select them all and right-click & 'Mark for complete removal'. Click apply.
Commit Log for Thu Apr 28 13:26:35 2011
Completely removed the following packages:
linux-headers-2.6.35-26
linux-headers-2.6.35-26-generic
linux-image-2.6.35-26-generic
Now:
$ ls /boot
abi-2.6.35-27-generic memtest86+.bin
abi-2.6.35-28-generic memtest86+_multiboot.bin
abi-2.6.35-29-generic System.map-2.6.35-27-generic
config-2.6.35-27-generic System.map-2.6.35-28-generic
config-2.6.35-28-generic System.map-2.6.35-29-generic
config-2.6.35-29-generic vmcoreinfo-2.6.35-27-generic
grub vmcoreinfo-2.6.35-28-generic
grub.old vmcoreinfo-2.6.35-29-generic
initrd.img-2.6.35-27-generic vmlinuz-2.6.35-27-generic
initrd.img-2.6.35-28-generic vmlinuz-2.6.35-28-generic
initrd.img-2.6.35-29-generic vmlinuz-2.6.35-29-generic
While it's not typically required, I also:
$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-29-generic
Found initrd image: /boot/initrd.img-2.6.35-29-generic
Found linux image: /boot/vmlinuz-2.6.35-28-generic
Found initrd image: /boot/initrd.img-2.6.35-28-generic
Found linux image: /boot/vmlinuz-2.6.35-27-generic
Found initrd image: /boot/initrd.img-2.6.35-27-generic
Found Microsoft Windows XP Professional on /dev/sda1
done
Just to be sure that grub has correctly made the changes.
More information about the ubuntu-users
mailing list