Update. This bug exists in du. I should add this is a virtualbox mounted folder shared from the local host. However Nautilus and ls has the sizes correct so I don't think it matters that it is a virtualbox mount.
rrosso@u910:/media/mediazone$ uname -a
Linux u910 2.6.31-11-generic #36-Ubuntu SMP Fri Sep 25 06:37:23 UTC 2009 x86_64 GNU/Linux
Du reports wrong size
rrosso@u910:/media/mediazone$ du -sh 2009.TriNations/
767M 2009.TriNations/
Windows 7 D:\Mediazone\2009.TriNations
5.98 GB (6,425,764,846 bytes)
My own C code I wrote to tally:
rrosso@u910:~/Desktop$ ./myDu /media/mediazone/2009.TriNations/
6.0G /media/mediazone/2009.TriNations/
rrosso@u910:/media/mediazone$ sudo aptitude show coreutils | grep Version
Version: 7.4-2
Filesizes wrong with du:
rrosso@u910:~/Desktop$ du -shL /media/mediazone/2009.TriNations/*
130M /media/mediazone/2009.TriNations/090912_NZvSA.wmv
117M /media/mediazone/2009.TriNations/2009.Tri.Nations.Game.2.South.Africa.vs.New.Zealand.Bloemfontein
110M /media/mediazone/2009.TriNations/e-090919_NZvAUS.wmv
131M /media/mediazone/2009.TriNations/Rugby-(Tri Nations 2009_ South Africa vs. Australia)-2009-08-08-0.mkv
149M /media/mediazone/2009.TriNations/Rugby-(Tri Nations 2009_ South Africa vs. New Zealand)-2009-08-01-0.mkv
132M /media/mediazone/2009.TriNations/Rugby.Union.Tri.Nations.2009.Australia.v.New.Zealand.20090822.Sky.NZ.mp4
Filesizes correct with ls:
rrosso@u910:~/Desktop$ ls -lh /media/mediazone/2009.TriNations/
total 650M
-rwxrwxrwx 1 root root 1.1G 2009-09-12 20:26 090912_NZvSA.wmv
drwxrwxrwx 1 root root 4.0K 2009-07-27 18:19 2009.Tri.Nations.Game.2.South.Africa.vs.New.Zealand.Bloemfontein
-rwxrwxrwx 1 root root 876M 2009-09-20 09:17 e-090919_NZvAUS.wmv
-rwxrwxrwx 1 root root 1.1G 2009-08-08 20:06 Rugby-(Tri Nations 2009_ South Africa vs. Australia)-2009-08-08-0.mkv
-rwxrwxrwx 1 root root 1.2G 2009-08-02 13:44 Rugby-(Tri Nations 2009_ South Africa vs. New Zealand)-2009-08-01-0.mkv
-rwxrwxrwx 1 root root 1.1G 2009-08-25 13:44 Rugby.Union.Tri.Nations.2009.Australia.v.New.Zealand.20090822.Sky.NZ.mp4
Update. This bug exists in du. I should add this is a virtualbox mounted folder shared from the local host. However Nautilus and ls has the sizes correct so I don't think it matters that it is a virtualbox mount.
rrosso@ u910:/media/ mediazone$ uname -a
Linux u910 2.6.31-11-generic #36-Ubuntu SMP Fri Sep 25 06:37:23 UTC 2009 x86_64 GNU/Linux
Du reports wrong size u910:/media/ mediazone$ du -sh 2009.TriNations/
rrosso@
767M 2009.TriNations/
Nautilus /media/mediazone
10 items, totalling 6.0 GB
Windows 7 D:\Mediazone\ 2009.TriNations
5.98 GB (6,425,764,846 bytes)
My own C code I wrote to tally: u910:~/ Desktop$ ./myDu /media/ mediazone/ 2009.TriNations / mediazone/ 2009.TriNations /
rrosso@
6.0G /media/
rrosso@ u910:/media/ mediazone$ sudo aptitude show coreutils | grep Version
Version: 7.4-2
Filesizes wrong with du: u910:~/ Desktop$ du -shL /media/ mediazone/ 2009.TriNations /* mediazone/ 2009.TriNations /090912_ NZvSA.wmv mediazone/ 2009.TriNations /2009.Tri. Nations. Game.2. South.Africa. vs.New. Zealand. Bloemfontein mediazone/ 2009.TriNations /e-090919_ NZvAUS. wmv mediazone/ 2009.TriNations /Rugby- (Tri Nations 2009_ South Africa vs. Australia) -2009-08- 08-0.mkv mediazone/ 2009.TriNations /Rugby- (Tri Nations 2009_ South Africa vs. New Zealand) -2009-08- 01-0.mkv mediazone/ 2009.TriNations /Rugby. Union.Tri. Nations. 2009.Australia. v.New.Zealand. 20090822. Sky.NZ. mp4
rrosso@
130M /media/
117M /media/
110M /media/
131M /media/
149M /media/
132M /media/
Filesizes correct with ls: u910:~/ Desktop$ ls -lh /media/ mediazone/ 2009.TriNations / Nations. Game.2. South.Africa. vs.New. Zealand. Bloemfontein -2009-08- 08-0.mkv -2009-08- 01-0.mkv Tri.Nations. 2009.Australia. v.New.Zealand. 20090822. Sky.NZ. mp4
rrosso@
total 650M
-rwxrwxrwx 1 root root 1.1G 2009-09-12 20:26 090912_NZvSA.wmv
drwxrwxrwx 1 root root 4.0K 2009-07-27 18:19 2009.Tri.
-rwxrwxrwx 1 root root 876M 2009-09-20 09:17 e-090919_NZvAUS.wmv
-rwxrwxrwx 1 root root 1.1G 2009-08-08 20:06 Rugby-(Tri Nations 2009_ South Africa vs. Australia)
-rwxrwxrwx 1 root root 1.2G 2009-08-02 13:44 Rugby-(Tri Nations 2009_ South Africa vs. New Zealand)
-rwxrwxrwx 1 root root 1.1G 2009-08-25 13:44 Rugby.Union.