[mythtv-users] disk usage weirdness

Dennis Lou dlou99 at yahoo.com
Fri Apr 23 10:45:04 EDT 2004


From: Henk Poley <hpoley at dds.nl>
>Op vrijdag 23 april 2004 05:37, schreef Dennis Lou:
>> I noticed that the backend status reports disk
>> usage differently than df.
>>
>> This is what mythbackend reports:
>>  Disk Usage:
>>     * Total Space: 54,218 MB
>>     * Space Used: 49,745 MB
>>     * Space Free: 4,473 MB
>>
>> and this is what df -h reports:
>> [root at localhost /]# df -h
>> Filesystem            Size  Used Avail Use% Mounted
on
>> /dev/hda2              56G   46G  7.3G  87% /
>> /dev/hda1              99M   14M   80M  15% /boot
>> none                  125M     0  125M   0%
/dev/shm
>
>Linux automagicaly reserves some space to keep 
>fragmentation low. Only root 
>can use that (that's why df as root reports the full 
>free space). It has been 
>on the list before. There's also some command to 
>disable this barrier for 
>normal users also (don't know if that's smart
though).

Hm, hadn't seen it on the list before...

In any case, df as root gives the same result as
df as normal user:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              56G   48G  5.8G  90% /
/dev/hda1              99M   14M   80M  15% /boot
none                  125M     0  125M   0% /dev/shm
$ su
Password:
[root at localhost dlou]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              56G   48G  5.8G  90% /
/dev/hda1              99M   14M   80M  15% /boot
none                  125M     0  125M   0% /dev/shm

Even if you do the math and adjust by 5%, it still
doesn't add up.  Space used is space used.  No 
matter the reserve, that particular figure 
shouldn't be different.

Then there's this weirdness:
# du -sh /
30G     /

-Dennis


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash


More information about the mythtv-users mailing list