LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cleaning the system (https://www.linuxquestions.org/questions/linux-software-2/cleaning-the-system-181960/)

fenice1976 05-16-2004 02:29 AM

Cleaning the system
 
Well...wondering through my system I have decided to do the cleaning.

1. First of all I wanna uninstall fglrx modules installed as my ATI RADEON 9200 Mobility is not supported: shall I only remove /lib/modules/fglrx directory or something else to be sure?

2. I wanna erase all previous kernels with their libs. So I should remove:

/boot/vmlinuz soft link still pointing to old kernel
/boot/vmlinuz-2.4.22-10mdk, the image of old kernel
/boot/config.OLD, never used anymore
/boot/initrd, soft link pointing to old initrd no more used by new kernel
/boot/initrd-2.4.22-10mdk old image
/boot/System.map, soft link pointing to old System.map no more used
/boot/System.map-2.4.22-10mdk old System.map
/boot/kernel.h-2.4.22-10mdk old kernel headers file

/lib/modules/2.4.22-10mdk
/lib/modules/2.4.26
/lib/2.6.6 (as I replace them with 2.6.6.OLD with no acpi support)

update lilo.conf and launching it

Is this sufficient? Of course I'll replace System.map and initrd.img with the new versions but should I launch some commands to let the system know the changes or...it will see it by itself?

Many thanks.

chakkerz 05-16-2004 07:19 PM

1. why??

2. are you sure??

-> whatever you do, don't delete the damn things first go. rename them, move them, don't kill them first up, make sure you're not removing vital stuff, you never know what relies on the libraries you're tampering with.

on the kernel removal, you can remove MDK kernels (ie not self compiled) using RPMdrake. those you compiled yourself, you can kill /usr/src/their source dir. all the obvious files (vmLinuz System.map) their module tree.

But once again, you are playing with fire. Be sure you can undo what you are doing.

Ok, you don't need to let the system know, in most instances, ldconfig should be run if you're removing libraries, since it will update the library dependencies database / table.

but i'd guess that linux runs that automatically if you're on a 24/7 machine, only coz i observed it crash on that process due to some dodgy directory structures on a USBflashdrive.

depending on what you change, you probably should alter lilo / grub's config file, and update (grub doesn't need that, lilo may).

back up any vital info, i've seen people kill their system that way. If you're careful, you should be fine.

LavaDevil94 05-16-2004 07:31 PM

Leave the old initrd bee. On my system, I didnt have to use a new initrd to use the new kernel.


All times are GMT -5. The time now is 01:59 PM.