Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Another "no space left on device" error [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Elfir3
n00b
n00b


Joined: 04 Nov 2005
Posts: 17

PostPosted: Thu Apr 12, 2007 4:43 pm    Post subject: Another "no space left on device" error [solved] Reply with quote

Hi all,

I recently started a new gentoo install. But, when i got my /home/ partition back, i cannot write anything on it as a user.
In facts, it creates the file, then I got the message << write error: No space left on device >>, and leaves the file empty.
When I'm root, I don't get any message, and the file is filled with data.

Code:

localhost home # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda4             96124904  91487980         0 100% /home

localhost home # df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda4            12222464  363316 11859148    3% /home


... well, think that's all i can tell about it :/ Any clues ?


Last edited by Elfir3 on Thu Apr 12, 2007 5:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Thu Apr 12, 2007 4:49 pm    Post subject: Reply with quote

What is the actual problem, i.e. should there definitely be some free space on the drive?

du -chs /home/*, see if you can figure out where the space is gone.

And how about fsck'ing it? ( :twisted: )
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Elfir3
n00b
n00b


Joined: 04 Nov 2005
Posts: 17

PostPosted: Thu Apr 12, 2007 5:11 pm    Post subject: Reply with quote

Yeah, there is some ;)
I tried fsck, but it didn't find anything wrong. du didn't tell anything interesting either ...
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Thu Apr 12, 2007 5:23 pm    Post subject: Reply with quote

When you say some, are you talking about around 3-5% free space?

If so, some filesystems reserve at least that much space for the root user only which would explain why you get no errors while writing to it as root.

It really doesn't make much sense on a /home partition, so here's how to get rid of it (assuming it's an ext3 filesystem);
Code:
tune2fs -r 0 /dev/sda4

_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Elfir3
n00b
n00b


Joined: 04 Nov 2005
Posts: 17

PostPosted: Thu Apr 12, 2007 5:29 pm    Post subject: Reply with quote

I love you Hopeless :D

Thanks for loosing your time with me ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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