James Melin wrote:
I mounted /dev/dasda1 on /mnt so that du wouldn't traverse all of the mounted 
file systems....

Running  du -B 4k /mnt/ | sort +0nr | less - reveals this:

54846   /mnt/
31154   /mnt/dev
9267    /mnt/lib
7204    /mnt/lib/modules
7200    /mnt/lib/modules/2.6.5-7.283-s390x
6978    /mnt/lib/modules/2.6.5-7.283-s390x/kernel
3788    /mnt/lib/modules/2.6.5-7.283-s390x/kernel/fs

You have a lot of noise there; I generally do this:
To find how much space used:
[EMAIL PROTECTED] ~]$ df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      217G  204G  1.8G 100% /
[EMAIL PROTECTED] ~]$

Okay I have a space problem.

To see the big consumers:
[EMAIL PROTECTED] ~]$ sudo du -mx --max-depth=2 / | sort -n | tail
1948    /var/www
2791    /root
3347    /var/cache
3510    /usr/share
6338    /usr
32717   /home/summer
34627   /home
156592  /var/lib
164521  /var
208731  /
[EMAIL PROTECTED] ~]$

I like megabytes,  I somewhat understand megabytes. "-x" keeps it to one
filesystem. "--max-depth" reduces noise.

The above report suggests checking ~summer (my homedir) and /var/lib (I
hide virtual machines there).


--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to