[Mageia-dev] df lying?

Felix Miata mrmazda at earthlink.net
Mon Jan 7 07:40:45 CET 2013


What is upstream for df command? In openSUSE 12.2, Cauldron & F18 on the same 64 bit system, df on the only partition on my 1TB data HD is obviously lying as to usage and free on a nearly full EXT2 
partition:

# df    # before copy
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sdb1      968990412 942397904  26592508  98% /disks/esata

-rw-rw-r-- 1 5548561312 Jan  6 14:59 monk0714IonE-201301061400s2.ts
-rw-rw-r-- 1 5548200540 Jan  6 15:59 monk0715IonE-201301061500s2.ts
-rw-rw-r-- 1 5548657192 Jan  6 16:59 monk0716IonE-201301061600s2.ts
-rw-rw-r-- 1 5547676772 Jan  6 17:59 monk0801IonE-201301061700s2.ts
-rw-rw-r-- 1 5546660256 Jan  6 18:59 monk0802IonE-201301061800s2.ts
-rw-rw-r-- 1 5547738436 Jan  6 19:59 monk0803IonE-201301061900s2.ts
-rw-rw-r-- 1 5548427644 Jan  6 20:59 monk0804IonE-201301062000s2.ts

# df    # after copying above 37,925,705K bytes in 7 files to
#       # /disks/esata from another system on the network
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sdb1      968990412 942397904  26592508  98% /disks/esata

Unless this is a bug in df, how is this lack of info possible given the following filesystem info (e.g., no reserved blocks, and no journal) about the partition?

tune2fs 1.42.5 (29-Jul-2012)
Filesystem volume name:   full1TazboxWD
Last mounted on:          /disks/esata
Filesystem UUID:          6a2c01da-93cd-4f99-99b1-d369d4ff0eca
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              61054976
Block count:              244189952
Reserved block count:     0
Free blocks:              6648127
Free inodes:              61054448
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      965
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   256
Filesystem created:       Fri Jun 22 00:20:53 2012
Last mount time:          Sun Jan  6 22:56:27 2013
Last write time:          Mon Jan  7 01:18:02 2013
Mount count:              8
Maximum mount count:      -1
Last checked:             Tue Jul 31 00:00:02 2012
Check interval:           0 (<none>)
Lifetime writes:          899 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Default directory hash:   half_md4
Directory Hash Seed:      9c9136f6-5dac-4152-aa29-6e1d33712a3b
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

  Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the Mageia-dev mailing list