Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

What's using my disk space?

  • 20-12-2003 5:19pm
    #1
    Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭


    On my Debian server I have everything except /boot in one 4GB partition. That partition is 93% full, which is a little too much for comfort.

    Is there an easy way to determine the total size of a particular directory and all its subdirs? What I mean is, can I quickly tell that (say) /var is using 2GB and /home 500MB, so /var is a bigger problem; then /var/cache has 1.5GB, so it's a bigger problem than /var/spool... you get the idea.


Comments

  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    du -sh /*

    will produce this:
    4.7M	/bin
    7.3M	/boot
    420K	/dev
    15M	/etc
    609M	/home
    4.0K	/initrd
    55M	/lib
    16K	/lost+found
    4.0K	/misc
    17G	/mnt
    139M	/opt
    5.0K	/proc
    648K	/root
    12M	/sbin
    6.7M	/tmp
    2.5G	/usr
    103M	/var
    


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    Actually, I just remembered a cool utility I used on Windows. Just tried it under wine, and here's the results:

    http://sleepygeek.org/~phaxx/spacemonger-linux/

    You can get a copy of the spacemonger executable from there too. That version is free, I hear they're working on a new one that won't be though.

    wine-spacemonger3.png


  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    Originally posted by phaxx
    du -sh /*

    will produce this:
    # du -sh /*
    2.9M    /bin
    5.1M    /boot
    4.0K    /cdrom
    64K     /dev
    7.4M    /etc
    4.0K    /floppy
    294M    /home
    4.0K    /initrd
    0       /initrd.img
    40M     /lib
    28K     /lost+found
    4.0K    /mnt
    130M    /proc
    5.1M    /root
    2.8M    /sbin
    72K     /tmp
    550M    /usr
    2.5G    /var
    0       /vmlinuz
    0       /vmlinuz.old
    
    # du -sh /var/*
    1.3M    /var/backups
    852M    /var/cache
    140M    /var/lib
    4.0K    /var/local
    8.0K    /var/lock
    17M     /var/log
    1.5M    /var/mail
    216K    /var/run
    716M    /var/share
    140M    /var/spool
    20K     /var/tmp
    682M    /var/www
    
    Thanks a bunch - now I know where to start thinking about cleaning up. For a start, what the hell do I have in /var/www??


  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    Originally posted by phaxx
    Actually, I just remembered a cool utility I used on Windows. Just tried it under wine, and here's the results:
    That's pretty cool!


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    Originally posted by oscarBravo
    Thanks a bunch - now I know where to start thinking about cleaning up. For a start, what the hell do I have in /var/www??

    Probably the Apache manual, and er.. maybe you dropped a cd image in there. :)


  • Advertisement
  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    Originally posted by phaxx
    Probably the Apache manual, and er.. maybe you dropped a cd image in there. :)
    You're psychic, dude: I put a Debian CD there months ago - completely forgot about it. Back to a more comfortable 77% now. Thanks again!


  • Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭hamster


    Hey that's an excellent visual tool! :eek:


  • Registered Users, Registered Users 2 Posts: 15,817 ✭✭✭✭po0k


    As snaga said this morning on #boards.ie "<Snaga> does it make an excel sheet of the results?"

    Maybe in v2.1.0 :)

    Cool tool phaxx


  • Registered Users, Registered Users 2 Posts: 1,842 ✭✭✭phaxx


    Originally posted by oscarBravo
    You're psychic, dude:

    Nah, just root.

    *grin*


  • Technology & Internet Moderators Posts: 28,830 Mod ✭✭✭✭oscarBravo


    :eek: /oscarBravo frantically checks his firewall...!


  • Advertisement
Advertisement