Re: removing old Kernels



Greeting Jose,

Pichin wrote:
Can someone tell me how to remove old kernels, I have about 5 old kernels and only use one (the most recent one)..

There are two places that you have to visit .

1. the /boot directory

In here you will find a set of three files for each kernel version that you have installed for example

initrd-2.6.17.8.img
System.map-2.6.17.8
vmlinuz-2.6.17.8

If you wish to remove the 2.6.17.8 kernel then you will have to remove the above three files .

Beware of one thing here

There is a symbolic link for System.map
You will have to make sure that it doesn't point in our
example to System.map-2.6.17.8
Also there is a symbolic link for vmlinuz , so again you will have to pay attention that it doesn't point to the file you want to delete .

After you clean the above set of 3 files from the boot directory ( initrd,System.map,vmlinuz) you have to go to the /lib/modules/ directory
There is the location that the kernel modules are stored .
Delete all the directories that corespond to the kernels that you don't want to keep .

HTH,

Kostas



--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • initrd.img and booting
    ... I have a Sid installation with the 2.6.7-1 kernel, ... I note that you have an old initrd symbolic link in place. ... need to update the boot loader Igore it and do nothing ... Searching for GRUB installation directory ... ...
    (Debian-User)
  • Re: file names, symbolic links
    ... Not only may volumes not have drive letters, ... in kernel mode. ... it will give you back all the other mount points for the volume. ... better off reporting or saving the symbolic link name rather than ...
    (microsoft.public.development.device.drivers)
  • Re: How to tell what kernel is running?
    ... > symbolic link System.map to point to this file. ... you haven't re-run lilo to update your system. ... be pointing to your old kernel. ... Then I just change my symlinks when I upgrade and re-run lilo. ...
    (alt.os.linux)
  • Re: file names, symbolic links
    ... better off reporting or saving the symbolic link name rather than the actual ... > This API appears to be part of win32 and not part of kernel mode ... I need an api to be called ...
    (microsoft.public.development.device.drivers)
  • Re: Can I Remove Lycoris Splash Screen?
    ... Does my kernel have ... However /boot/message was really a symbolic link to ... Removing that section from lilo would probably work just as well. ... Remember to re-run lilo after you make the change. ...
    (comp.os.linux.misc)