Steve wrote:

How do you get rid of old kernels once you have loaded a new one and determine it works? Also how do you remove old versions from the LILO Screen? I have limited space and want to clear out as much old stuff as possible.
Thanks,
Steve

Couldn't be easier,go to boot directory and,
[EMAIL PROTECTED] boot]# ls -l
total 8289
-rw-r--r-- 1 root root 512 May 13 17:30 boot.0300
lrwxrwxrwx 1 root root 18 May 31 15:30 config -> config-2.6.3-13mdk
-rw-r--r-- 1 root root 52228 Mar 2 06:53 config-2.4.25-2mdk
-rw-r--r-- 1 root root 55869 May 18 23:57 config-2.6.3-13mdk
-rw-r--r-- 1 root root 54068 Mar 2 06:27 config-2.6.3-4mdk
-rw-r--r-- 1 root root 5032 Feb 19 17:03 diag1.img
-rw-r--r-- 1 root root 16796 Feb 19 17:03 diag2.img
drwxr-xr-x 2 root root 360 May 13 17:07 grub/
-rw-r--r-- 1 root root 168921 May 13 17:29 initrd-2.4.25-2mdk.img
-rw-r--r-- 1 root root 186104 May 26 14:59 initrd-2.6.3-13mdk.img
-rw-r--r-- 1 root root 145003 May 13 17:29 initrd-2.6.3-4mdk.img
lrwxrwxrwx 1 root root 21 May 13 17:29 initrd-2.6.img -> initrd-2.6.3-4mdk.img
lrwxrwxrwx 1 root root 22 May 26 14:59 initrd.img -> initrd-2.6.3-13mdk.img
lrwxrwxrwx 1 root root 26 May 31 15:30 kernel.h -> /boot/kernel.h-2.6.3-13mdk
-rw-r--r-- 1 root root 537 May 13 17:31 kernel.h-2.4.25-2mdk
-rw-r--r-- 1 root root 537 May 26 15:11 kernel.h-2.6.3-13mdk
-rw-r--r-- 1 root root 537 May 13 22:44 kernel.h-2.6.3-4mdk
-rw------- 1 root root 586752 May 29 08:31 map
lrwxrwxrwx 1 root root 15 May 13 22:59 message -> message-graphic
-rw-r--r-- 1 root root 442273 May 26 14:59 message-graphic
-rw-r--r-- 1 root root 116 May 13 18:20 message-text
lrwxrwxrwx 1 root root 22 May 26 15:11 System.map -> System.map-2.6.3-13mdk
-rw-r--r-- 1 root root 634863 Mar 2 06:53 System.map-2.4.25-2mdk
-rw-r--r-- 1 root root 898966 May 18 23:57 System.map-2.6.3-13mdk
-rw-r--r-- 1 root root 898362 Mar 2 06:27 System.map-2.6.3-4mdk
-rw-r--r-- 1 root root 256 May 13 17:30 uk.klt
lrwxrwxrwx 1 root root 19 May 26 14:59 vmlinuz -> vmlinuz-2.6.3-13mdk
-rw-r--r-- 1 root root 1403985 Mar 2 06:53 vmlinuz-2.4.25-2mdk
lrwxrwxrwx 1 root root 18 May 13 17:29 vmlinuz-2.6 -> vmlinuz-2.6.3-4mdk
-rw-r--r-- 1 root root 1440084 May 18 23:57 vmlinuz-2.6.3-13mdk
-rw-r--r-- 1 root root 1437568 Mar 2 06:27 vmlinuz-2.6.3-4mdk


then use the rm command on all the set of files that end in the kernel version you wish to remove.

then go to /etc/lilo.conf with an editor,
and remove the stanza that booted the kernel version,
save, and run lilo.

likewise when you install a kernel run the kernel install from HD , that puts all the set of kernel files into /boot and then go back to lilo.conf and write a stanza to boot them, then run lilo.

Quite often you don't even have to add the lilo.conf entries as the kernel installer does that as well but not always.


John


--
John Richard Smith
[EMAIL PROTECTED]



____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to