Emon,

You are very obervant :)  Your first case is interesting.

Okay, here is my dab at explanation:

Your first case:

$ df -h /boot
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6              48M   37M   11M  78% /boot
$ du -hs /boot
4.2M    /boot

This is interesting.  It's not a normal case.  I think you have a file
which is being used by a process, but you have unlinked the file, i.e.
deleted it.  Until that process exits, the space taken up by the file
will not be releases and the process will be able to use the file,
until it closes it.  This is a well defined behaviour in Unix.

To test the theory, if you know the process, kill it.  Otherwise,
reboot and see if this resolves the issue.

Now your second case:

$ df -h /opt
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda8             1.2G  676M  470M  60% /opt
$ du -hs /opt
698M    /opt

Hmm, more interesting, I can't explain it :)  Generally, du should
show a bit smaller number than df.  That's because du does not count
the file system overheads.  The "bit" is 5-10%, not like your first
example.

Anyone to the rescue?

--
Mojahed


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/hYOolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe send a blank mail to:
        [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/bdlug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to