Stupid File Size Calculations

| | Comments (0)

I back up my PS3 to a USB drive, which has a FAT32 partition. The archive folder reported only 3.2GB, but there was about 7.2GB in use.

The Finder and du both reported 3.2GB. I finally tracked it down to a file that is 4GB, but reports as 0. Most of the time. Note that even ls -s gets it wrong, but ls -l gets it right.

$ du archive2_00.dat 
0	archive2_00.dat
$ ls -s archive2_00.dat 
0 archive2_00.dat
$ ls -l archive2_00.dat 
-rwxrwxrwx  1 pudge  pudge  4294966784 Feb 21 22:21 archive2_00.dat

The Finder was similarly confused:

Well, There's Your Problem

use.perl.org

Now Playing: Writ On Water - Trappease

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

About this Entry

This page contains a single entry by pudge published on March 4, 2008 2:23 PM.

Presidential Percentages was the previous entry in this site.

LCE041 Way Down in the Hole ("The Wire" Theme) is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.