D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Low diskspace on /

 

That's a slightly different command than I gave, and the -h bit helps make it more human friendly, imo.


On 13 August 2014 17:19, Julian Hall <linux@xxxxxxxxxxxx> wrote:
Thanks Simon.. that's what I did, the second part that is. these are the top listed (assuming in size order as below that do sem to get smaller):

Cerce ~ # du -x /|sort -rn|more
9231712ÂÂÂ /
5205576ÂÂÂ /usr
2181916ÂÂÂ /usr/lib
1843864ÂÂÂ /var
1783328ÂÂÂ /usr/share
1431444ÂÂÂ /lib
1313428ÂÂÂ /lib/modules
1086380ÂÂÂ /var/cache
979212ÂÂÂ /var/cache/apt
898768ÂÂÂ /var/cache/apt/archives

I think that means /usr is 5Gb?

Julian


On 13/08/14 17:00, Simon Avery wrote:
There aren't that many off root in your setup that aren't listed, why not descend into each one and " du -h --max-depth=1 " ?

Or just run that off root - only shows a summary for each dir.


On 13 August 2014 16:47, stinga <stinga+dcglug@xxxxxxxxxxxxx> wrote:
On 13/08/14 16:38, Julian Hall wrote:
du -k <dir>|sort -rn|more

Thanks for that.. how do I tell it to /just/ list / and ignore all my mounted drives? At the moment it's wasting time churning out data on all my other partitions including my NAS box. All I want to know is what directories on / are eating all the space.
-x


-- 
'ooroo

Stinga...(:)-)
---------------------------------------------------
Email: stinga+dclug@xxxxxxxxxxxxx   o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should use  >  (O)  X<  ~  Fish!!
the hammer. If it moves and      `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq






--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq