You are not logged in.

#1 2012-02-06 20:04:41

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

[SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

It turns out my sda3 partition is 100% full.  My immediate reaction to this apart from being irritated was to clear my pacman cache, thinking this would solve the problem.  It didn't.  I've also tried pruning out some egregiously large log files but that doesn't do anything either.

Apart from clearing the cache and getting rid of log files though I'm not sure what else I can do to get this thing trimmed down to size.  Presumably someone out there has run into a similar situation and solved it?  Any advice on how to deal with it?  Thanks for your time, everyone.

Last edited by dmadenski (2012-02-06 23:41:43)

Offline

#2 2012-02-06 20:10:26

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 470

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

can you tell us what's on this partition?

ezik

Offline

#3 2012-02-06 20:11:48

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

It's my rootfs.

Offline

#4 2012-02-06 20:31:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

What exactly does take up the space?

Please post more info, like the output of 'df -h' and 'df -hi'.

Offline

#5 2012-02-06 20:35:40

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

I'm not actually at my computer at the moment, but I did run 'df -h' earlier while I was trying to suss out what was going wrong.  Basically it said that 'sda3' and 'rootfs' are being used to capacity, 100%.  I didn't use the '-i' option so I can't speak to that, although I will try it once I get back to my own computer.

Part of the problem is that I'm not sure what is taking up the space.  I had thought it was the cache and log files I mentioned previously but I was wrong, and now I'm not sure what it could be.  hmm

Offline

#6 2012-02-06 20:38:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

Offline

#7 2012-02-06 20:39:56

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

Have you tried using something like du or a graphical utility like filelight to find what files are taking up the most space?

Try:

du -a /var | sort -n -r | head -n 20

/var would be my guess where the largest files are. You can also try running this on different directories.

Offline

#8 2012-02-06 20:42:12

hleung
Member
Registered: 2011-01-10
Posts: 20
Website

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

If all of your packages/software works, I suggest clearing the previous versions of your packages:
$ pacman -Sc


Everyone has their own belief, and that belief becomes their own religion.
My bible = "Rapture for the Geeks wink" by Richard Dooling

Offline

#9 2012-02-06 20:45:53

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

I have tried using 'du', which did lead to me chucking a couple very large log files.  I can't run a graphical utility like Filelight or Baobab because xinit won't run at the moment, due to my overstuffed rootfs.  I'll also try running 'du' again with the options you've specified, Pres.  Thanks!  I'll also download ncdu and post the output once I'm back on my own computer.

I did try running 'pacman -Scc' shortly after realizing what was wrong.  It didn't make any difference.

Offline

#10 2012-02-06 21:09:27

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

tune2fs -m 1 /dev/sda3

?

Last edited by Earnestly (2012-02-06 21:57:10)

Offline

#11 2012-02-06 22:19:38

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

Oddly enough, I just came home with intent to keep hacking away at this issue and I found that I was able to run xinit.  I hadn't been able to do that before due to this disk space issue but I certainly won't say no to a little deus ex machina action.

Here's some more info now that I'm back on the machine itself:

[dmadenski@yggdrasil ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.3G  6.9G   14M 100% /
/dev            983M     0  983M   0% /dev
/run            986M  272K  985M   1% /run
/dev/sda3       7.3G  6.9G   14M 100% /
shm             986M  1.3M  984M   1% /dev/shm
/dev/sda1        99M   34M   60M  37% /boot
/dev/sda4       221G   36G  174G  18% /home
[dmadenski@yggdrasil ~]$ df -hi
Filesystem     Inodes IUsed IFree IUse% Mounted on
rootfs           470K  325K  145K   70% /
/dev             246K   607  246K    1% /dev
/run             247K   413  246K    1% /run
/dev/sda3        470K  325K  145K   70% /
shm              247K     8  247K    1% /dev/shm
/dev/sda1         26K    46   26K    1% /boot
/dev/sda4         15M   68K   14M    1% /home
[dmadenski@yggdrasil ~]$ sudo du -a /var | sort -n -r | head -n 20
67840	/var
52272	/var/lib
37876	/var/lib/pacman
35396	/var/lib/pacman/local
10444	/var/log
9276	/var/lib/mlocate
9272	/var/lib/mlocate/mlocate.db
5040	/var/cache
3504	/var/cache/man
3132	/var/lib/upower
2676	/var/log/pm-powersave.log
2488	/var/cache/man/index.db
2476	/var/lib/pacman/sync
1668	/var/lib/pacman/local/chromo-erectus-icon-themes-1.2-1
1660	/var/lib/pacman/local/chromo-erectus-icon-themes-1.2-1/files
1300	/var/log/wicd
1232	/var/lib/pacman/sync/extra.db
1156	/var/lib/pacman/local/libreoffice-sdk-3.4.5-2
1148	/var/lib/pacman/local/libreoffice-sdk-3.4.5-2/files
1096	/var/lib/pacman/sync/community.db

Per your suggestion, karol, I downloaded ncdu and ran it.  Here are the results.

ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help              
--- / -------------------------------------------------------------------
.  35.7GiB [##########] /home                                            
    6.3GiB [#         ] /usr
  140.2MiB [          ] /opt
  139.4MiB [          ] /lib
   66.2MiB [          ] /var
   32.2MiB [          ] /boot
   13.4MiB [          ] /etc
   11.3MiB [          ] /sbin
    5.7MiB [          ] /bin
  272.0KiB [          ] /run
  228.0KiB [          ] /dev
  184.0KiB [          ] /root
   56.0KiB [          ] /tmp
   16.0KiB [          ] /srv
e  16.0KiB [          ] /lost+found
    4.0KiB [          ] /lib64
e   4.0KiB [          ] /mnt
e   4.0KiB [          ] /media
    0.0  B [          ] /proc
    0.0  B [          ] /sys

 Total disk usage:  42.4GiB  Apparent size: 128.1TiB  Items: 470053      

Offline

#12 2012-02-06 22:34:29

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

Did you run a fsck on sda3? Boot off some live media and force an fsck.

/usr is pretty big btw. You should start looking there.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#13 2012-02-06 22:38:05

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

/home is on a separate partition so we can ignore that. Have you tried running ncdu on the /usr directory?

The four main culprits on my /usr are:
/usr/lib/libreoffice
/usr/lib/jvm
/usr/share/icons
/usr/share/locale


Rauchen verboten

Offline

#14 2012-02-06 22:46:27

meph
Member
Registered: 2011-06-06
Posts: 160

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

dmadenski wrote:
Apparent size: 128.1TiB

Looks like it isn't just disk usage what's weird. Or is that normal? (obviously it isn't normal, but perhaps it's a known behavior I'm not aware of, can't even check my own system right now)


Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.

Offline

#15 2012-02-06 22:48:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

If you want to install a lot of software, the default 7 GB / partition may not be enough. Your /home is pretty big and empty, you can either resize your partitions or reinstall your system and use a different partitioning scheme / sizes.

Offline

#16 2012-02-06 23:40:20

dmadenski
Member
From: Portland, OR
Registered: 2008-04-30
Posts: 15

Re: [SOLVED] sda3 = 100% full, and I can't figure how to clean it out.

Turns out /usr/share and /usr/lib were pretty hefty so I trimmed 'em down and freed up some space:

[dmadenski@yggdrasil /]$ sudo du -sh /usr/*
475M	/usr/bin
202M	/usr/include
2.4G	/usr/lib
40K	/usr/local
15M	/usr/sbin
2.3G	/usr/share
114M	/usr/src

This in turn led to the following 13% reduction in used space on sda3.  Huzzah!

[dmadenski@yggdrasil /]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.3G  5.9G  981M  87% /
/dev            983M     0  983M   0% /dev
/run            986M  284K  985M   1% /run
/dev/sda3       7.3G  5.9G  981M  87% /
shm             986M  2.1M  984M   1% /dev/shm
/dev/sda1        99M   34M   60M  37% /boot
/dev/sda4       221G   36G  174G  18% /home

Unless someone wiser than I can point out something I'm missing I think this can be chalked up to sloppy housekeeping on my part.  I imagine in the future it would also be wise to store my pacman cache and log files somewhere else, like in my /home partition.  Thanks for all the help everyone!

Offline

Board footer

Powered by FluxBB