[Mageia-dev] df lying?
Anssi Hannula
anssi at mageia.org
Mon Jan 7 14:15:30 CET 2013
07.01.2013 08:40, Felix Miata kirjoitti:
> 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
[...]
> Free blocks: 6648127
This seems to be in line with the above "df" output.
What is the result of "du -sk /disks/esata"?
It should be approximately same as the number of used 1K-blocks in "df"
output (968990412).
[...]
--
Anssi Hannula
More information about the Mageia-dev
mailing list