Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
df -h says I'm not using all of my partition space...
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
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 152

PostPosted: Tue Apr 10, 2012 3:23 am    Post subject: df -h says I'm not using all of my partition space... Reply with quote

... but the USE% = 100%?

Somehow, I've filled up my root partition (ext3). Now, I can't even boot up normally - things try to write to the root, and, obviously, can't. I've booted using the live disk. Here's my df -h:

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 170G 164G 0 100% /mnt/gentoo

df -i:


Filesystem Inodes IUsed IFree IUse% Mounted on

/dev/sda3 22511616 1283181 21228435 6% /mnt/gentoo

I've tried a fsck, and it is reporting clean:

/dev/sda3: clean, 1283181/22511616 files, 43566296/45018146 blocks

Any suggestions on how to tackle this?
Back to top
View user's profile Send private message
kechara
n00b
n00b


Joined: 23 Feb 2005
Posts: 15
Location: Aabenraa, Denmark

PostPosted: Tue Apr 10, 2012 10:26 am    Post subject: Reply with quote

If I remember correctly then the system reserves some space on the drive for itself. It would correspond with you getting a full disk when approximately 5% is still free.

As for what is filling up your partition I would check the logs. This is where I has a similar problem.
Code:
du -h /var/log

should be able to show you how much space is used for the logs. If not here, then check the rest of /var or maybe /usr/portage? You get the idea :)
_________________
Regards,
Kechara

- Give the world a smile, and it'll laugh right back at you
Back to top
View user's profile Send private message
Arkhelion
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2010
Posts: 127
Location: France

PostPosted: Tue Apr 10, 2012 12:44 pm    Post subject: Reply with quote

Hi,

I personnally like to use :
Code:
du -h --max-depth=1 /


And then I dig...
_________________
Arkhelion
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Tue Apr 10, 2012 1:58 pm    Post subject: Re: df -h says I'm not using all of my partition space... Reply with quote

fuzzybee wrote:
Any suggestions on how to tackle this?


Code:
rm /usr/portage/distfiles/*
Back to top
View user's profile Send private message
Arkhelion
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2010
Posts: 127
Location: France

PostPosted: Tue Apr 10, 2012 2:07 pm    Post subject: Reply with quote

As far as I'm concerned, I'd rather do:
Code:
#emerge gentoolkit
#eclean-dist [-d]


This will only remove unused distfiles so you can quickly rebuild installed packages without redownloading the distfile.

I use eclean-dist in each and every update process on my boxes.

EDIT: Oh! and you can also read this.
_________________
Arkhelion
Back to top
View user's profile Send private message
Dont Panic
Guru
Guru


Joined: 20 Jun 2007
Posts: 317
Location: SouthEast U.S.A.

PostPosted: Tue Apr 10, 2012 3:12 pm    Post subject: Reply with quote

Arkhelion wrote:
I personnally like to use :
Code:
du -h --max-depth=1 /


And then I dig...

I like to drop the -h (human readable) option, and run it through sort. It saves time digging.

But I usually won't do this on the whole root tree since it will search /proc and all my mounts also
Code:
du /var | sort -n | less
du /home | sort -n | less
du /usr | sort -n | less
etc...
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Tue Apr 10, 2012 3:39 pm    Post subject: Reply with quote

Dont Panic wrote:
I like to drop the -h (human readable) option, and run it through sort. It saves time digging.


"sort -h", my friend.
Back to top
View user's profile Send private message
Arkhelion
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2010
Posts: 127
Location: France

PostPosted: Tue Apr 10, 2012 4:22 pm    Post subject: Reply with quote

EatMeerkats wrote:
"sort -h", my friend.
Using this one too.
_________________
Arkhelion
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