Inside your hard disk is a stack of one or more optically perfect platters where data is stored magnetically. When the drive is originally formatted, it is laid out in a pattern of concentric circles ("cylinders") and wedges (sectors).
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

[About BTH]  [User Agreement]  [Privacy Policy]  [Site Map]  [Contact Form]  [Advertise on BTH]  [News Feed]

Google
Web
This Site

How is Data Written, Stored On, and Erased From Hard Disks?

One of my favorite IT Directors, Buzz Eyler of the Orcutt Unified School District, tells me that, "Most people have no clue how data is stored on a hard drive running Windows. A discussion of how it is written and marked for erasing would help a lot of people understand what's happening under the hood of their computer."

First, a little background: Inside your hard disk is a stack of one or more optically perfect platters where data is stored magnetically. When the drive is originally formatted, it is laid out in a pattern of concentric circles ("cylinders") and wedges. Try to imagine a hybrid of a record album and a pizza pie... or a dartboard. However, rather than 8 slices of pizza, or about 80 places big enough to land your dart, there may be hundreds of millions of extremely small "Sectors."

A Sector is 512 "bytes" in size - or big enough to hold about 256 characters. Windows chunks these out into "Clusters", each of which holds about 64 Sectors. Every time you create a file, Windows sets aside - "allocates" - at least one Cluster, and then writes your data to it. Whenever a file exceeds one Cluster in size, the computer allocates another entire Cluster. But even if a file consists of one letter, which is 2 bytes in size, the computer allocates approximately 32,000 (actually 32,768) bytes of space.

The file may then be written to only the first 2 bytes of the Cluster, leaving the great majority of the Cluster unchanged, as "file slack." The Cluster won't be assigned to another file until the original file is deleted - that is, until the original is sent to the Recycle Bin, and the Recycle Bin emptied.

But this one Cluster isn't the only place to which your data is written. Furthermore, where and in how many places data is written can be somewhat dependent upon the application writing it.

When a file is saved, there are several attributes saved with it. One is the date the file was created; one is the date the file was last changed, or modified; one is the date the file was last accessed. This information is kept as part of a file listing called a "directory." This directory is viewed by the user as the contents of a folder.

Let us take for example, Microsoft Word, the leading word processing program for office computers. As soon as the user begins a Word document, an invisible, temporary work file is created (call it "Work File A"), and parts of the new document get written to the virtual memory file (which in Windows XP, is called pagefile.sys). We can call it the "VM file."

When the user saves the document, a file is created on the hard disk with the name the user gives it; call it "User Document." We think we have created one document, but the data we're typing is going into three separate files. If we close the document, "Work File A" is deleted, but it doesn't go away - more on this later.

Computer Sections

RSS Feed RSS Feed

Basic PC Anatomy
The Computers Back Connector Panel
How to Choose a Computer Case
PC Processor Fundamentals
AMD Sempron Processor
AMD Athlon 64 Processor
The AMD Athlon 64 X2 Processor
Intel Celeron D Processor
Intel's Core 2 processors
CPU Sockets Roundup
Understanding Computer Memory
Power Supply Form Factors
Hardware Resources Explained
Device Driver Basics
How Does a Laptop Battery Work?
Understanding Graphic Cards
A+ Certification Study Guide
Motherboard Basics
General Overview Of Motherboards
Motherboard Form Factors
Understanding Your PC's CPU Clock Speed and Front Side Bus
Understanding The Speed Of New Pci Express Data Bus
A Guide To Building Your Own PC
Intermediate PC Build-it-Yourself Guide
Tips and Techniques For Building Your Own PC
Build Your Own Computer
How to Build a Computer
Building Your Own PC! - The Motherboard is the Core of the PC
XFX nForce 680i LT SLI Socket 775 Barebone Kit
Mach Speed P4MSD-800 D2 Motherboard and Intel Pentium D 940 3.20GHz Processor Bundle
Asus M2N4-SLI Socket AM2 AMD Athlon 64 X2 4600+ Barebone Kit
Anatomy of a Hard Drive
Hard Disk Drive Basics
How a Hard Disks Work
The Master Boot Record (MBR)
PC Disk File Systems
Serial ATA Hard Drive
How is Data Written, Stored On, and Erased From Hard Disks?
The Universal Serial Bus
IEEE-1394 FireWire
The Small Computer System Interface (SCSI)
Plug and Play Resource Allocation
Get Familiar With MSDOS.SYS
Become Familiar with the Windows Registry
Understanding the Software Layers of a Computer
Advanced Micro Devices (AMD) Chipsets
Intel Chipsets
VIA Chipsets
Basic Computer Thermodynamics
A Guide to Basic PC Cooling
How Does the CPU Cache Work?
How does a CD Burner work?
Understanding Your Motherboard
All About Your Computer's BIOS
Expansion Cards
Power and Your PC
Hard Drives - ATA versus SATA
Inkjet Printers
How a laser Printer Works

[Site User Agreement]  [Advertise on This site]  [Search This Site]  [Contact Form]
Copyright©2001-2007 Bucaro TecHelp P.O.Box 18952 Fountain Hills, AZ 85269