i have deleted the system map, initrd and vmlinuz files , edited the grub.conf file
also deleted the /lib/modules/linux-2.6.15.1 files
then did make clean
make mrproper
thanks a lot
On Thu, Feb 12, 2009 at 6:38 PM, Bernd Petrovitsch <bernd@xxxxxxxxx> wrote:
If they installed via yum/rpm/dpkg/apt-get/..., simply remove these
On Thu, 2009-02-12 at 18:23 +0530, Raseel Bhagat wrote:
> On Thu, Feb 12, 2009 at 6:10 PM, Venkatesh Rao
> <venkateshnrao@xxxxxxxxx> wrote:
> i have the following kernels on my machine
>
> [root@localhost boot]# ls -lsa
> total 18481
> 2 drwxr-xr-x 4 root root 1024 2009-02-11 21:25 .
> 8 drwxr-xr-x 23 root root 4096 2009-02-12 16:40 ..
> 80 -rw-r--r-- 1 root root 79210 2007-10-30 23:30
> config-2.6.23.1-42.fc8
> 2 drwxr-xr-x 2 root root 1024 2009-02-12 15:59 grub
> 3480 -rw------- 1 root root 3546119 2009-02-11 21:25
> initrd-2.6.15.1.img
> 3595 -rw------- 1 root root 3664151 2008-08-14 19:51
> initrd-2.6.23.1-42.fc8.img
> 3608 -rw------- 1 root root 3677538 2009-02-06 20:11
> initrd-2.6.23.1.img
> 13 drwx------ 2 root root 12288 2008-08-14 19:41 lost
> +found
> 1 lrwxrwxrwx 1 root root 25 2009-02-11 21:25
> System.map -> /boot/System.map-2.6.15.1
> 694 -rw-r--r-- 1 root root 705336 2009-02-11 21:25
> System.map-2.6.15.1
> 828 -rw-r--r-- 1 root root 841133 2009-02-06 20:11
> System.map-2.6.23.1
> 838 -rw-r--r-- 1 root root 851074 2007-10-30 23:30
> System.map-2.6.23.1-42.fc8
> 1 lrwxrwxrwx 1 root root 22 2009-02-11 21:25 vmlinuz
> -> /boot/vmlinuz-2.6.15.1
> 1481 -rw-r--r-- 1 root root 1507705 2009-02-11 21:25
> vmlinuz-2.6.15.1
> 1907 -rw-r--r-- 1 root root 1942208 2009-02-06 20:11
> vmlinuz-2.6.23.1
> 1943 -rw-r--r-- 1 root root 1978656 2007-10-30 23:30
> vmlinuz-2.6.23.1-42.fc8
>
> menu.lst file:
>
> # grub.conf generated by anaconda
> #
> # Note that you do not have to rerun grub after making changes
> to this file
> # NOTICE: You have a /boot partition. This means that
> # all kernel and initrd paths are relative to /boot/,
> eg.
> # root (hd0,5)
> # kernel /vmlinuz-version ro
> root=/dev/VolGroup00/LogVol00
> # initrd /initrd-version.img
> #boot=/dev/sda
> default=2
> timeout=15
> splashimage=(hd0,5)/grub/splash.xpm.gz
> hiddenmenu
> title Fedora (2.6.15.1)
> root (hd0,5)
> kernel /vmlinuz-2.6.15.1 ro
> root=/dev/VolGroup00/LogVol00 rhgb quiet
> initrd /initrd-2.6.15.1.img
> title Fedora (2.6.23.1)
> root (hd0,5)
> kernel /vmlinuz-2.6.23.1 ro
> root=/dev/VolGroup00/LogVol00 rhgb quiet
> initrd /initrd-2.6.23.1.img
> title Fedora (2.6.23.1-42.fc8)
> root (hd0,5)
> kernel /vmlinuz-2.6.23.1-42.fc8 ro
> root=/dev/VolGroup00/LogVol00 rhgb quiet
> initrd /initrd-2.6.23.1-42.fc8.img
> title Other
> rootnoverify (hd0,0)
> chainloader +1
>
>
> i want to uninstall the kernel 2.6.15.1 and 2.6.23.1
packages.
And don't forget /lib/modules/$KERNEL_VERSION. And perhaps the .h files
> how do i go about it ??
>
> If you are just looking for removing these entries, you can just
> remove their Grub entries.
> Furthermore, you can delete the respective vmlinuz, initrd and config
> files.
are somewhere installed too.
If you `rm -rf` the kernel source directory, you can skip the `make
> finally, if you have installed these kernels from source, just do make
> clean mrproper in the kernel source directories and delete the
> directory.
mrproper`.
Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services