Removing Kernel
Im using RH9, whats the best way to remove old versions of the kernel? Im now 3 or 4 versions backlogged and think I can safely remove my oldest one now.
|
Well, providing Redhat doens't play any funny games I don't know about. /usr/src/linux-version should contain the source for each kernel. /boot/vmlinuz-version or /boot/bzImage-version should be the kernel image. And you can removed enteries from grub.conf (or menu.lst) in /boot/grub.
|
I do this all the time whenever my newly compiled 2.6 kernels fail (always). Go to /boot and type:
rm *2.x* where x is the minor kernel version, e.g. 4.20-18 if you're uninstallling kernel 2.4.20-18. Make sure your symbolic links (config, system.map, initrd.img, vmlinuz) aren't broken. If they are, assign them to one of your new kernels. Then go to /lib/modules Type rm -drf *2.x* to delete kernel 2.x's modules Then you're done! |
very cool. thanks guys
|
Yeah, I just don't like the idea of using wildcards when fooling around with kernel maintainance ;)
Just oooone little misplaced space. "Oops. Better not reboot til I've compiled a new one..." --Shade |
All times are GMT -5. The time now is 04:18 AM. |