View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Mon May 03, 2010 8:15 pm Post subject: 14GB of root full, how can that be? |
|
|
I have a 14GB / partition, portage tree is located under a separate partition, still on my laptop when I was using it as compiling machine I've never filled it.
how can I findout what's taking so much space? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
ziggysquatch Apprentice
Joined: 16 Nov 2004 Posts: 172 Location: /USA/Minnesota
|
Posted: Mon May 03, 2010 8:38 pm Post subject: |
|
|
from / you can do
to see which directories are the biggest then move into that directory and do the same until you track down which directory.
How is your partitioning set up? Do you have /var on a separate partition? I've had that get pretty huge before. |
|
Back to top |
|
|
alunduil Retired Dev
Joined: 13 Mar 2005 Posts: 96 Location: San Antonio, TX, USA
|
Posted: Mon May 03, 2010 8:48 pm Post subject: |
|
|
Just to make sure you're looking at hidden directories as well:
Code: |
du -sx * .[^.]* | sort -n
|
Regards,
Alunduil |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Tue May 04, 2010 9:28 am Post subject: |
|
|
If it's not because of inodes (df -h saying you have space free but df -i saying you ran out of inodes) you can also use xdiskusage if you prefer a graphical representation |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue May 04, 2010 10:19 am Post subject: |
|
|
du -h --max-depth=1 /
Code: |
6.8M /bin
280K /dev
18M /etc
250G /mnt
779M /opt
48K /tmp
0 /sys
806M /var
22G /usr
0 /boot
56G /home
du: cannot access `/proc/27331/task/27331/fd/4': No such file or directory
du: cannot access `/proc/27331/task/27331/fdinfo/4': No such file or directory
du: cannot access `/proc/27331/fd/4': No such file or directory
du: cannot access `/proc/27331/fdinfo/4': No such file or directory
0 /proc
18M /sbin
658K /root
4.0K /.kde4
5.3M /lib32
86M /lib64
0 /media
4.0K /.config
273M /export
329G / |
df -h
Code: |
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 14G 14G 907M 94% /
udev 10M 280K 9.8M 3% /dev
/dev/mapper/Database-home
250G 56G 195G 23% /home
/dev/mapper/Mainframe-var
20G 659M 20G 4% /var
/dev/mapper/Mainframe-portageTree
9.9G 277M 9.1G 3% /usr/portage-tree
/dev/mapper/Mainframe-portageBin
38G 9.1G 29G 25% /usr/portage-bins
/dev/mapper/Mainframe-shared
5.0G 33M 5.0G 1% /mnt/shared
/dev/mapper/Database-media
917G 250G 621G 29% /mnt/media
shm 1004M 0 1004M 0% /dev/shm
|
df -i
Code: |
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 0 0 0 - /
udev 256996 1351 255645 1% /dev
/dev/mapper/Database-home
0 0 0 - /home
/dev/mapper/Mainframe-var
0 0 0 - /var
/dev/mapper/Mainframe-portageTree
655360 139164 516196 22% /usr/portage-tree
/dev/mapper/Mainframe-portageBin
0 0 0 - /usr/portage-bins
/dev/mapper/Mainframe-shared
0 0 0 - /mnt/shared
/dev/mapper/Database-media
61054976 2718 61052258 1% /mnt/media
shm 256996 1 256995 1% /dev/shm
|
I find the output of the nodes rather strange... _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Tue May 04, 2010 11:02 am Post subject: |
|
|
That du output doesn't really say anything because you let it traverse to other mount points
make a clean mount of your root partition first
Code: |
mkdir /mnt/clean
mount /dev/rootdevice /mnt/clean
|
(yes you can mount device several times in several locations
then cd /mnt/clean/ and run du there
the nodes are strange yes but not every filesystem works internally with the inode model (that's an ext2/3 thing), so they may not have a inode limit and thus they can not tell how many % of inodes are in use |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue May 04, 2010 11:12 am Post subject: |
|
|
that wont give me a other mountpoint less partiton... it gives me the same partition layout with the mount points _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Tue May 04, 2010 11:41 am Post subject: |
|
|
phajdan.jr wrote: | Try running this:
And if you don't have ncdu:
|
thanks, well 12.4 GB is share where 3.6 of them are games... :-S not sure what I can clean, maybe I'll move the games into another 10 gb partition
but still that seems alot _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|