Here is the output from strace:
statfs("/media/Backup", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
f_blocks=180268930, f_bfree=175392411, f_bavail=166235261, f_files=45793280,
f_ffree=45742365, f_fsid={460585388, 379467950}, f_namelen=255,
f_frsize=4096}) = 0
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdc1            721075720  19506076 664941044   3% /media/Backup

Thanks,
Aaron

On Mon, Feb 22, 2010 at 9:06 PM, Bob Proulx <b...@proulx.com> wrote:

> Aaron Barany wrote:
> > However, it doesn't take into account the fact that GParted says
> > that 669.07 GB is available, while df states that only 635 GB is
> > available.
>
> I am not familiar with GParted but partition tools show the size of
> the partition.  The filesystem will consume some amount of disk blocks
> in order to support having a filesystem upon it.  I expect that is
> what you are seeing.  The filesystem size will always be less than the
> raw partition size.
>
> > Additionally, the difference in capacity and available space
> > reported by df (53 GB) is almost 3x the 19 GB it reports as used,
> > which makes sense if it isn't reporting hard links correctly since I
> > have 3 snapshots of my backup. This is also corroborated in the
> > GNOME properties dialog for the drive: in the pie chart it states
> > that 53.5 GB is used and 634.1 GB is free, while in the Contents
> > section it states that the files total in 18.3 GB, which matches the
> > output for df when you take rounding into account, complete with the
> > 3:1 ratio.  This doesn't look like it's just space used up as
> > root...
>
> Please run 'strace' on your 'df' command and report back the raw
> numbers being reported by the filesystem.  Something like this:
>
>  $ strace -v -e statfs df /media/Backup
>
> That will tell us the data that 'df' is receiving from the system.
>
> Thanks,
> Bob
>

Reply via email to