LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-24-2006, 07:02 AM   #1
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
Suddenly 100% of hard disk usage. What steps should i follow?


This pc config is

Pentium 4 3Ghz
1 GB of RAM
20 Gb of HD

When installing linux i decided that i should not have swap.

So, yesterday i was editing a pic on Gimp and hearing some mp3 on Xmms. I realized that the computer (up for 24 hours) was really slow. Them, gimp crashed. I tried to open it again, but nothing happened. At this point, even the mouse movie was slow.

I closed kde and saw some errors messages saying that my hard disk was full. But i have 1 gb that the system use and 5 gb of mp3.

When i tried df on console. 100% of usage on my hd

What steps should i follow to detect what happened?

Is there a *nix virus that make this?

When i download a file, how can i force linux to auto change permissions to 400 (is this the best chmod?)
 
Old 02-24-2006, 07:22 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look for a core file saved when gimp crashed.

If there are core files present, you can delete them. The ulimit command can stop core files from being created, or limit their size.

Not having any swap may not be a good idea.

Last edited by jschiwal; 02-24-2006 at 07:33 AM.
 
Old 02-24-2006, 07:56 AM   #3
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
Someone or something is joking with me. Right now, there is 58% of hard disk use (which is the normal, i guess).

Could this 42% of files be cache files or something like this?
 
Old 02-24-2006, 09:25 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Check the /tmp directory for any huge tmp files.
 
Old 02-24-2006, 11:02 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Are you sure you've disabled swapping? I think you've simply told the swapper to use your normal partition for swapping instead of a dedicated swap partition.
By doing so, swap can use up much of your disk space if your programs need huge amounts of memory.

Having a dedicated swap partition limits the disk space used for swapping. Making it too small may cause your system to slow down too.

How much RAM do you have?
 
Old 02-24-2006, 12:39 PM   #6
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
I have 1 gb of RAM. How do i check if it was a swap file?

scuzzman

IŽll check it as soon as i get on that computer

Last edited by stormrider_may; 02-24-2006 at 12:40 PM.
 
Old 02-24-2006, 04:31 PM   #7
FinalFantasy
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 49

Rep: Reputation: Disabled
cat /proc/swaps

will list any swaps you have currently.
 
Old 03-02-2006, 12:04 PM   #8
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Also look into the du command to see how much space each file is using.
 
Old 03-02-2006, 12:06 PM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Like int0x80 said , go to /
and issue
Code:
du -ks * | sort -nr
 
Old 03-07-2006, 05:49 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, in Unix it's usually a swap partition eg see
cat /etc/fstab
 
  


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
what steps to follow when reentering chroot iam whoiam Linux From Scratch 3 02-13-2005 09:12 AM
first steps a new admin must follow ddaas Linux - Newbie 3 12-21-2004 04:53 PM
first steps a new admin must follow ddaas Linux - General 3 12-21-2004 10:26 AM
Disk space usage 100% on / Daliz Linux - Software 6 10-24-2004 11:03 AM
Knoppix to hard disk: complete steps jfchui Linux - Newbie 2 04-17-2004 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:13 PM.

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