Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
14GB of root full, how can that be?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Mon May 03, 2010 8:15 pm    Post subject: 14GB of root full, how can that be? Reply with quote

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
View user's profile Send private message
ziggysquatch
Apprentice
Apprentice


Joined: 16 Nov 2004
Posts: 172
Location: /USA/Minnesota

PostPosted: Mon May 03, 2010 8:38 pm    Post subject: Reply with quote

from / you can do

Code:

du -sk *|sort -n


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
View user's profile Send private message
alunduil
Retired Dev
Retired Dev


Joined: 13 Mar 2005
Posts: 96
Location: San Antonio, TX, USA

PostPosted: Mon May 03, 2010 8:48 pm    Post subject: Reply with quote

Just to make sure you're looking at hidden directories as well:

Code:

du -sx * .[^.]* | sort -n


Regards,

Alunduil
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Tue May 04, 2010 3:59 am    Post subject: Reply with quote

i use those 3 commands
Code:
du -h --max-depth=1 /
df -h
df -i

_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Tue May 04, 2010 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue May 04, 2010 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Tue May 04, 2010 11:02 am    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue May 04, 2010 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Tue May 04, 2010 11:25 am    Post subject: Reply with quote

Try running this:

Code:
ncdu -x /


And if you don't have ncdu:

Code:
emerge -av ncdu

_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue May 04, 2010 11:41 am    Post subject: Reply with quote

phajdan.jr wrote:
Try running this:

Code:
ncdu -x /


And if you don't have ncdu:

Code:
emerge -av 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum