Errr........
This newbie thought that windows dosen't see other partitions not FAT formated or whatever. Whilst inside windows try MS-DOS and issue " fdisk " and follow the prompts.
Not sure if this is what you are doing, just thought I'ld mention it.
Regards
Frank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213
Len Lawrence wrote:
On Wed, 19 May 2004 19:48:18 -0400 Mike Adolf <[EMAIL PROTECTED]> wrote:
Greetings
If I do 'df' if get
/dev/ide/host0/bus0/target1/lun0/part7 49G 755M 48G 2% /home
Says I have 48G free.
If I run a C program calling statfs("/home", &fs), I get:
type of filesystem = 61267 optimal transfer block size = 4096 total data blocks in file system= 1510072 free blocks in fs = 905771 free blocks avail to non-superuser = 829062 total file nodes in file system = 768544 free file nodes in fs= 631185 file system id = 0 maximum length of filenames= 255
3710038016 bytes left
The numbers don't add up. What am I missing? I'm running 10.0 CE.
Aye, you are right, they don't add up. Just out of interest I tried the
function under 9.2 and the result looked OK. The filesystem type is the same as yours (ext2/3)
============================================
#include <stdio.h>
#include <stdlib.h>
#include <sys/vfs.h>
int main ( int argc, char * argv[ ] ) { int status;
struct statfs partition;
status = statfs( "/home", &partition ); if ( !status ) { printf( "filesystem type: %0X\n", partition.f_type ); printf( "block size : %ld\n", partition.f_bsize ); printf( "free blocks : %ld\n", partition.f_blocks ); } return status; } =============================================
df -h /home
/dev/ide/host0/bus0/target0/lun0/part9 35G 5.6G 30G 17% /home
Program output :
filesystem type: EF53 block size : 4096 free blocks : 9070563
Your numbers look as if they have been divided by 12.5 = 8%.
Could somebody else check this out under Mandrake 10?
------------------------------------------------------------------------
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
