LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2007, 10:02 PM   #1
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Rep: Reputation: 20
Maintenance realted Questions (optimizing your Linux Load)


Hi, I'm curious as to how you maintain a linux system. In windows I routinely clear out temp directories because I know where all these are located. I also run scan disk and defrags to keep the system optimal. So, I'm wondering where Linux keeps a lot of tmp/temp files so I can clean out extra files since I'm running with very limited HDD space.

Also, when I run what the linux equivalent to defrag (fsck) I get the following error.

Code:
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Sat May 12 20:58:04 2007
###########
Partition /dev/hda6 is mounted with write permissions, cannot check it
Does this mean I have to run this command in a non-GUI environment from the shell? This is on my Knoppix HDD load and I really like this load I just want to keep it running efficiently.

Thanks for any/all tips on keeping a smooth running linux load
 
Old 05-12-2007, 10:18 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Linux stores temp files in the appropriately named /tmp directory.

You do not need to defrag linux disks like you do in windows. Windows splits files, and places them all over the hard drive. The linux filesystem is not so haphazard, and won't make a mess of your drives like that. You cannot run fsck on a mounted read/write drive, however you don't need to. If fsck needs to be run, it will be run during the boot process before the system fully starts.

Peace,
JimBass
 
Old 05-12-2007, 10:31 PM   #3
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Hi Jim. Thanks for that info on fsck. Guess its nice to know linux maintains its file system quite well without much user intervention needed. Running a "locate tmp" shows quite a few directories so I suppose I could go digging around in those to delete stuff next time my HDD starts getting filled out.
 
Old 05-12-2007, 11:10 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You could, but you may cause yourself some problems that way. Most of temp is just garbage, but some of that garbage is garbage in use, the X window system that gives you a graphical environment places files in /tmp, and erasing them might cause problems.

With disks being so incredibly cheap at the moment, I find it hard to believe that you can't get at least a 40 Gb hard drive for like $20, and have all the space you need. You can try to clear /tmp, but a better system would be to create a partition for /tmp, and then when the partition is full, the system will replace unnedded files with new ones.

Peace,
JimBass
 
Old 05-13-2007, 05:21 PM   #5
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
For cleaning out temp files I use this script: http://linuxgazette.net/issue20/cleantmp2.0. It's ten years old, so there might be something better, but it's worked for me. By default it will remove everything from /tmp that hasn't been accessed for more than 3 days.
 
Old 05-25-2007, 09:21 PM   #6
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Thanks for the additional info on keeping the system clean. I'll look into that script file. I'm not putting any money into this laptop since it's falling apart but I still want it running. Regards, Chris
 
  


Reply



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
Mac OS X realted asi0917 Linux - Hardware 2 06-02-2005 05:30 PM
Linux maintenance Ageless Linux - Newbie 7 04-29-2005 09:52 AM
Linux maintenance? voyciz Linux - Newbie 6 06-22-2004 11:05 PM
and some Linux maintenance questions... grapier Linux - Newbie 4 01-12-2004 01:23 PM
optimizing LINUX nautilus_1987 Linux - General 10 11-03-2002 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration