View previous topic :: View next topic |
Author |
Message |
Elfir3 n00b
Joined: 04 Nov 2005 Posts: 17
|
Posted: Thu Apr 12, 2007 4:43 pm Post subject: Another "no space left on device" error [solved] |
|
|
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 |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Apr 12, 2007 4:49 pm Post subject: |
|
|
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? ( ) _________________ "You have to invite me in" |
|
Back to top |
|
|
Elfir3 n00b
Joined: 04 Nov 2005 Posts: 17
|
Posted: Thu Apr 12, 2007 5:11 pm Post subject: |
|
|
Yeah, there is some
I tried fsck, but it didn't find anything wrong. du didn't tell anything interesting either ... |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Thu Apr 12, 2007 5:23 pm Post subject: |
|
|
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 |
|
|
Elfir3 n00b
Joined: 04 Nov 2005 Posts: 17
|
Posted: Thu Apr 12, 2007 5:29 pm Post subject: |
|
|
I love you Hopeless
Thanks for loosing your time with me |
|
Back to top |
|
|
|