How in the heck, do you get zero byte files?! - DFWstangs Forums
 
LinkBack Thread Tools Display Modes
post #1 of 4 (permalink) Old 09-29-2003, 06:44 PM Thread Starter
Married Man on 14Feb2010
 
TexasDevilDog's Avatar
 
Join Date: Jun 2001
Location: Fort Worth, Texas (North Side)
Posts: 14,140
Angry How in the heck, do you get zero byte files?!

I downloaded a trial version of this software. I find that I have 13,618 zero byte files. Which ain't bad, they're zero right? They are consuming 106MB of space!
TexasDevilDog is offline  
Sponsored Links
Advertisement
 
post #2 of 4 (permalink) Old 09-29-2003, 07:16 PM
Rolling with the homies
 
evil jose's Avatar
 
Join Date: Apr 2000
Location: Oak Cliff... that's my hood...
Posts: 43,271
Corrupted files?




2008 Lincoln MKZ
1995 Mustang GT Convertible
2002 F-150 SuperCrew


1995 Ford Taurus SHO
2003 Yamaha R6

evil jose is offline  
post #3 of 4 (permalink) Old 09-29-2003, 08:02 PM
IA2
 
mikeb's Avatar
 
Join Date: Mar 2001
Posts: 22,413
If a program creates a file but never writes data to it - viola, a 0 byte file. Looks like windows goes ahead and allocates a sector for the file anyway.

Have you run scandisk lately?

Last edited by mikeb; 09-29-2003 at 08:04 PM.
mikeb is offline  
 
post #4 of 4 (permalink) Old 09-30-2003, 03:04 AM
You lookin' at mah EYE?!
 
DarkWolf's Avatar
 
Join Date: May 2000
Location: Portland, OR
Posts: 8,316
The way the file systems work, you have clusters within the sectors. The clusters are of a particular size (say 4k), and you cannot have more than one file occupying a single cluster ... though you can have one file occupying more than one cluster.

So, in reality, while the file's size may be 0 bytes, it's still taking up 4k of your disk (or, however large your cluster sizes are).

I know NTFS will do 512byte clusters, on up to 4k by default, depending on partition size. I can't remember the exact breakdown, but I think it's up to 2GB partitions = 512byte clusters, over 2GB partitions = 4K clusters. It can also be configured to go up to 64k clusters, regardless of partition size, though why anyone would want to waste that much space ... I have no clue.

FAT32 is 4k on up to 32k depending on partition size. I can't remember the breakdown though. I believe it's 2GB = 4k, over 2GB = 32k

FAT16 is 2k for partitions under 512meg, and 32k for any partitions over 512meg.

DarkWolf
Graphic Design / Photography / Web Design
DarkWolf is offline  
Sponsored Links
Advertisement
 
Reply

Bookmarks

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome