Re: How to "wipe" ALL Mac file's slack space?
- From: Santa Claus <santa@xxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 19:47:28 -0400
In article <noneof-766A98.12574229062007@xxxxxxxxxxxxxxxxxxxxxxx>,
Mark Conrad <noneof@xxxxxxxxxxxxxxxxxx> wrote:
Differences between sectors, blocks, clusters, and slack space -
Sectors
*******
Sectors are the smallest storage units on a disk drive. A sector is a
fixed size, commonly 512 bytes on a Mac disk drive.
(sector is half of one KB, or two sectors per KB)
not completely correct. the newer drives (especially optical drives)
use sector sizes that are much larger than 512 bytes.
for a CD, read this wiki (cd-rom) snippet. Each sector is 2352 bytes,
and contains 2048 bytes of PC (MODE1) Data, 2336 bytes of PSX/VCD
(MODE2) Data, or 2352 bytes of AUDIO.
Slack space
***********
The part of the last 4KB cluster space that is NOT used by a file.
With a very large file, only the very last 4KB cluster of that large
file has any "slack space".
i once wrote a program that wrote a block of zeros in the slack space by
the following method.
1) get the current eof position.
2) set the current write position to the current eof.
3) write a cluster of nulls (hex 00) to the end of the file.
4) reset the eof of the file to the original position.
this must be done with every file. i wrote it mainly to make
compressing files and folders much more effective and it worked.
.
- Follow-Ups:
- Re: How to "wipe" ALL Mac file's slack space?
- From: Mark Conrad
- Re: How to "wipe" ALL Mac file's slack space?
- References:
- How to "wipe" ALL Mac file's slack space?
- From: Mark Conrad
- Re: How to "wipe" ALL Mac file's slack space?
- From: Mark Conrad
- How to "wipe" ALL Mac file's slack space?
- Prev by Date: Re: How to "wipe" ALL Mac file's slack space?
- Next by Date: Wish I'd thought of that!
- Previous by thread: Re: How to "wipe" ALL Mac file's slack space?
- Next by thread: Re: How to "wipe" ALL Mac file's slack space?
- Index(es):
Relevant Pages
|