[PLUG] No space left on device

Michael michael at jamhome.us
Sat Oct 28 04:13:58 UTC 2017


On 2017-10-27 10:28, Steve Dum wrote:
> I have to chime in with my tip, although john has solved the issue.
> First, the biggest issue with / as john saw was that there are lots of
> mount points created in the root partition. If somehow one doesn't get
> made and then later is made, you can't find the problem easily as some
> space use is hidden under the mount. Second, normal du traverses all 
> the
> mount points meaning you have to ignore lots of du output, making it
> difficult to see what's going on. finally du prints data as it's seen,
> and you want to focus attention on big things.  Here is my solution and
> since it's / it must be done as root
> 
>   sudo du  -d 2 -x / |sort -n

But you can sort human readable output
     sudo du -d 2 -x -h / | sort -h

My preference for its abbreviated output is:
     sudo du -sh /* | sort -h

and then descend the directory tree as needed.

-- 
       Michael Rasmussen, Portland Oregon
     Be Appropriate && Follow Your Curiosity



More information about the PLUG mailing list