lkml.org 
[lkml]   [2004]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NTFS disk usage on Linux 2.6
Do a "properties" within Windows on the folder - windows will report the 
_actual_ size of the file in it's listings, not the amount of space it
takes up. I presume that that's what is going on.

Haakon Riiser wrote:

>Has anyone else noticed that the reported disk space usage on
>NTFS is completely unreliable on Linux 2.6? Just issued the
>command "du -sh" on my main Windows XP partition, and on 2.6.1,
>the reported disk usage is bigger than the partition size.
>
>Here's the output from "du -sh *" in Windows' root directory
>under Linux 2.6.1:
>
> 0 AUTOEXEC.BAT
> 0 CONFIG.SYS
> 43M Documents and Settings
> 0 IO.SYS
> 0 MSDOS.SYS
> 48K NTDETECT.COM
> 366M Program Files
> 0 RECYCLER
> 20K System Volume Information
> 12G WINDOWS
> 0 boot.ini
> 232K ntldr
> 768M pagefile.sys
>
>Same command on 2.4.24:
>
> 0 AUTOEXEC.BAT
> 0 CONFIG.SYS
> 41M Documents and Settings
> 0 IO.SYS
> 0 MSDOS.SYS
> 48K NTDETECT.COM
> 366M Program Files
> 2.0K RECYCLER
> 21K System Volume Information
> 1.4G WINDOWS
> 1.0K boot.ini
> 230K ntldr
> 770M pagefile.sys
>
>(The contents of the filesystem was, of course, identical in both
>cases -- I did not run Windows in between these tests.)
>
>Compare the disk space used by the WINDOWS directory in the
>two listings. On 2.4.24, it correctly reports 1.4G, while
>2.6.1 reports 12G, which is 2G more than the total space on
>the filesystem.
>
>I also compared this to the listings produced by "ls -lR"
>(summing the numbers on the "total ..." lines). The result
>was the same as with du -sh.
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.046 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site