Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all Suddenly my disk that contains everything but the home dirs and which is usually only approx 9% full is now 100 % full... Any suggestions on how to ...
  1. #1
    tqz
    tqz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    46

    [SOLVED] disk space being hogged!!!

    Hello all

    Suddenly my disk that contains everything but the home dirs and which is usually only approx 9% full is now 100 % full...

    Any suggestions on how to find how this has happened? How can i find the largest files minus the mounted dirs which are on other disks?

    Thanks in advance

    t

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Google: bash disk hogs

    There are simple to advanced solutions.

    A simple one:

    Code:
    du -s /* | sort -nr
    Look over the dir's in the root and move down from there - repeating the commands needed. If /var is taking more space than expected:

    Code:
    du -s /var/* | sort -nr
    And continue on...

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    A better solution than iterating with du over and over is ncdu
    NCurses Disk Usage

    It
    - iterates only ones (thus saving IO and time)
    - sorts by size
    - lets you naviagte back and forth through the directories
    - you can even delete dirs within it
    You must always face the curtain with a bow.

  4. #4
    tqz
    tqz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    46
    Sorted...i did something silly! Thanks for your help Irithori and HROAdmin26...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...