LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2004, 03:29 AM   #1
fenice1976
Member
 
Registered: May 2004
Distribution: MDK 9.2 - Kernel 2.4.22mdk
Posts: 108

Rep: Reputation: 15
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.
 
Old 05-16-2004, 08:19 PM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
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.

Last edited by chakkerz; 05-16-2004 at 08:24 PM.
 
Old 05-16-2004, 08:31 PM   #3
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning up an old PC Merlyn Linux - Hardware 8 10-25-2005 07:33 AM
Cleaning out wine Maze the Kid Linux - Software 0 01-17-2005 03:28 PM
Cleaning the system kapslock Linux - Newbie 1 07-11-2004 10:33 PM
cleaning up? phonecian Linux - Software 1 10-19-2003 07:27 AM
Cleaning system? JimDog Linux - Newbie 4 09-17-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration