D&C GLug - Home Page

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

Re: [LUG] Low diskspace on /

 

On 13 Aug 2014, at 17:25, Joseph Bennie <jay@xxxxxxxxxxx> wrote:

> 
> 
> 
> On 13 Aug 2014, at 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
> 
> It looks like you need to 
> 
> apt-get clean
> 

and a little more info 

http://www.tecmint.com/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management/

> Jay 
> 
>> 
>> 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