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.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

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.