On a ext3 fs:
fast:/mnt/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 958488 521864 387936 58% /mnt
fast:/mnt/tmp# cat /dev/zero > zr
cat: write error: No space left on device
fast:/mnt/tmp# ls -l
total 436624
-rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr
fast:/mnt/tmp# rm zr
fast:/mnt/tmp# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 958488 521864 387936 58% /mnt
Is this an expected behaviour?.. Yeah, it is nice to have more space than
you think you have, but...
Thanks
Guennadi
---
Guennadi Liakhovetski
On Fri, Jun 18, 2004 at 12:23:25AM +0200, Guennadi Liakhovetski wrote:
> On a ext3 fs:
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> fast:/mnt/tmp# cat /dev/zero > zr
> cat: write error: No space left on device
>
> fast:/mnt/tmp# ls -l
> total 436624
> -rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr
[...]
> Is this an expected behaviour?.. Yeah, it is nice to have more space than
> you think you have, but...
436192 blocks
958488-521864 = 436624 blocks
I think you have 5% reserved for root, as this is the default setting
when creating ext3 fs'.
LLAP, Martin
--- Guennadi Liakhovetski <[email protected]> wrote:
> On a ext3 fs:
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> fast:/mnt/tmp# cat /dev/zero > zr
> cat: write error: No space left on device
>
> fast:/mnt/tmp# ls -l
> total 436624
> -rw-r--r-- 1 root root 446660608 Jun 18 00:23 zr
>
> fast:/mnt/tmp# rm zr
>
> fast:/mnt/tmp# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda3 958488 521864 387936 58% /mnt
>
> Is this an expected behaviour?.. Yeah, it is nice to have more space
> than
> you think you have, but...
Have you tried running fsck on it? How many inodes are available.
Tom
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
On Fri, 18 Jun 2004, Martin Hermanowski wrote:
> On Fri, Jun 18, 2004 at 12:23:25AM +0200, Guennadi Liakhovetski wrote:
>
> I think you have 5% reserved for root, as this is the default setting
> when creating ext3 fs'.
Oh, I forgot about that again... Wouldn't it be good to have df either
1) report different amounts for root / non-root
or
2) report both
?
Thanks
Guennadi
---
Guennadi Liakhovetski