Unix Technical Forum

hda1 used 100%

This is a discussion on hda1 used 100% within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi All, I am a windows admins needed to support Linux. Today I realise that my hda1 is full ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:10 PM
CL
 
Posts: n/a
Default hda1 used 100%

Hi All,
I am a windows admins needed to support Linux. Today I realise that my hda1
is full which ussually got about 1GB of free space. It is very unussual for
the 1GB to be used within a day cause I am the only one that can access to
the drive & no shared folder has being created on this drive. (Home Drive is
on another drive). Is there a way to check what use up the space & what is
safe to delete?

FYI, It is running Samba Server & SendMail Server.

BTW, will it cause kernel panic if boot drive is out of space?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:10 PM
Dominik L.. Borkowski
 
Posts: n/a
Default Re: hda1 used 100%

CL wrote:

> I am a windows admins needed to support Linux. Today I realise that my
> hda1 is full which ussually got about 1GB of free space. It is very
> unussual for the 1GB to be used within a day cause I am the only one that
> can access to the drive & no shared folder has being created on this
> drive. (Home Drive is on another drive). Is there a way to check what use
> up the space & what is safe to delete?


du -hs /*

and work your way down.

> FYI, It is running Samba Server & SendMail Server.


it may be your incoming mailboxes, in /var/spool/mail

> BTW, will it cause kernel panic if boot drive is out of space?


ask yourself, would windows be happy if it would run out of disk space?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:10 PM
Jeffrey Froman
 
Posts: n/a
Default Re: hda1 used 100%

CL wrote:

> Is there a way to check what use up the space & what is
> safe to delete?


Two likely suspects are /var/spool/mail and /var/log. Nothing is safe to
delete if you're not sure what it is :-)

Good luck,
Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:10 PM
CL
 
Posts: n/a
Default Re: hda1 used 100%

"Dominik L.. Borkowski" <dom@vbi.vt.edu> wrote in message
news:cjt7f5$fg$1@solaris.cc.vt.edu...
> CL wrote:
>
> > I am a windows admins needed to support Linux. Today I realise that my
> > hda1 is full which ussually got about 1GB of free space. It is very
> > unussual for the 1GB to be used within a day cause I am the only one

that
> > can access to the drive & no shared folder has being created on this
> > drive. (Home Drive is on another drive). Is there a way to check what

use
> > up the space & what is safe to delete?

>
> du -hs /*
>
> and work your way down.
>
> > FYI, It is running Samba Server & SendMail Server.

>
> it may be your incoming mailboxes, in /var/spool/mail
>
> > BTW, will it cause kernel panic if boot drive is out of space?

>
> ask yourself, would windows be happy if it would run out of disk space?
>


Thank Dominik for the fast reply.
The person who setup the server solved the problem. He told me it is cause
by unproper mounting. However, he didn't tell me how unproper mounting can
eat up the space & how to claim back the space next time? Anyone mind
telling me?

> ask yourself, would windows be happy if it would run out of disk space?

I thought Linux is so good that it can find the diskspace somewhere else or
even created from air.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:10 PM
Dominik L.. Borkowski
 
Posts: n/a
Default Re: hda1 used 100%

CL wrote:

> The person who setup the server solved the problem. He told me it is cause
> by unproper mounting. However, he didn't tell me how unproper mounting can
> eat up the space & how to claim back the space next time? Anyone mind
> telling me?


sure. go ask the person who told you this very vague explanation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 04:10 PM
CL
 
Posts: n/a
Default Re: hda1 used 100%

Too vague? Okey you see, I setup a cron job to copy some files to a XP
system at night. Sometime it just fail to mount. Without doing anything,
when I try to mount again in the morning, no problem at all. I think this is
what he mean by unproper mounting. Will this make it a little more not so
vague?

I tried to ask him but he is not so friendly or patient to explain to me..

"Dominik L.. Borkowski" <dom@vbi.vt.edu> wrote in message
news:cjtc5p$61p$1@solaris.cc.vt.edu...
> CL wrote:
>
> > The person who setup the server solved the problem. He told me it is

cause
> > by unproper mounting. However, he didn't tell me how unproper mounting

can
> > eat up the space & how to claim back the space next time? Anyone mind
> > telling me?

>
> sure. go ask the person who told you this very vague explanation.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 04:10 PM
CL
 
Posts: n/a
Default Re: hda1 used 100%

Thank you. Problem solved.

"Jeffrey Froman" <jeffrey@fro.man> wrote in message
news:10m4anaic98ip03@corp.supernews.com...
> CL wrote:
>
> > Is there a way to check what use up the space & what is
> > safe to delete?

>
> Two likely suspects are /var/spool/mail and /var/log. Nothing is safe to
> delete if you're not sure what it is :-)
>
> Good luck,
> Jeffrey



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 04:10 PM
Mikhail Zotov
 
Posts: n/a
Default Re: hda1 used 100%

"CL" <cl@xstreamy.com> wrote in message news:<41620e21$1_1@news.tm.net.my>...
> Hi All,
> I am a windows admins needed to support Linux. Today I realise that my hda1
> is full which ussually got about 1GB of free space....
> Is there a way to check what use up the space & what is
> safe to delete?


Do as root:

# cd /
# du -hsx *

M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 04:10 PM
Laurenz Albe
 
Posts: n/a
Default Re: hda1 used 100%

CL <cl@xstreamy.com> wrote:
> The person who setup the server solved the problem. He told me it is cause
> by unproper mounting. However, he didn't tell me how unproper mounting can
> eat up the space & how to claim back the space next time? Anyone mind
> telling me?


I can only guess:

If your /etc/fstab is broken, it may be that some of your file systems
are not mounted as they should on system startup.

If, for example, your /var is on another file system, but is not mounted
during startup, programs will happily scribble into the /var directory,
which is the mount point in the root file system (since /var didn't mount).

This will cause the root file system to fill up.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 04:11 PM
CL
 
Posts: n/a
Default Re: hda1 used 100%

As simple as that. How come I never think of it. Thanks Laurenz.

Laurenz Albe wrote:
> CL <cl@xstreamy.com> wrote:
>
>>The person who setup the server solved the problem. He told me it is cause
>>by unproper mounting. However, he didn't tell me how unproper mounting can
>>eat up the space & how to claim back the space next time? Anyone mind
>>telling me?

>
>
> I can only guess:
>
> If your /etc/fstab is broken, it may be that some of your file systems
> are not mounted as they should on system startup.
>
> If, for example, your /var is on another file system, but is not mounted
> during startup, programs will happily scribble into the /var directory,
> which is the mount point in the root file system (since /var didn't mount).
>
> This will cause the root file system to fill up.
>
> Yours,
> Laurenz Albe

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com