A spindle motor in the drive rotates the magnetic medium at a certain speed, while a stepper motor-operated mechanism moves the magnetic read/write heads radially along the surface of the disk. Both read and write operations require the media to be rotating and the head to contact the disk media, an action originally accomplished by a disk-load solenoid. Later drives held the heads out of contact until a front-panel lever was rotated (5¼-inch) or disk insertion was complete (3½-inch). To write data, current is sent through a coil in the head as the media rotates. The head's magnetic field aligns the magnetization of the particles directly below the head on the media. When the current is reversed the magnetization aligns in the opposite direction, encoding one bit of data. To read data, the magnetization of the particles in the media induce a tiny voltage in the head coil as they pass under it. This small signal is amplified and sent to the
floppy disk controller, which converts the streams of pulses from the media into data, checks it for errors, and sends it to the host computer system.
Formatting A blank unformatted diskette has a coating of magnetic oxide with no magnetic order to the particles. During formatting, the magnetizations of the particles are aligned forming tracks, each broken up into
sectors, enabling the controller to properly read and write data. The tracks are concentric rings around the center, with spaces between tracks where no data is written; gaps with padding bytes are provided between the sectors and at the end of the track to allow for slight speed variations in the disk drive, and to permit better interoperability with disk drives connected to other similar systems. Each sector of data has a header that identifies the sector location on the disk. A
cyclic redundancy check (CRC) is written into the sector headers and at the end of the user data so that the disk controller can detect potential errors. Some errors are
soft and can be resolved by re-trying the read operation; other errors are permanent and will signal a failure to the operating system if multiple attempts to read the data still fail
Insertion and ejection After a disk is inserted, a catch or lever mechanism engages to prevent the disk from accidentally emerging, engage the spindle clamping hub, and in two-sided drives, engage the second read/write head with the media In some 5¼-inch drives, insertion of the disk compresses and locks an ejection spring which partially ejects the disk upon opening the catch or lever. This enables a smaller concave area for the thumb and fingers to grasp the disk during removal Newer 5¼-inch drives and all 3½-inch drives automatically engage the spindle and heads when a disk is inserted, doing the opposite with the press of the eject button On
Macintosh computers with built-in 3½-inch disk drives, the ejection button is replaced by software controlling an ejection motor which only does so when the operating system no longer needs to access the drive. The user could drag the image of the floppy drive to the trash can on the desktop to eject the disk. In the case of a power failure or drive malfunction, a loaded disk can be removed manually by inserting a straightened
paper clip into a small hole at the drive's front panel, just as one would do with a
CD-ROM drive in a similar situation. The
X68000 has soft-eject 5¼-inch drives. Some late-generation
IBM PS/2 machines have soft-eject 3½-inch disk drives as well for which
PC DOS 5.02 and higher includes an EJECT command.
Finding track zero Before a disk can be accessed, the drive needs to synchronize its head position with the disk tracks. In either case, the head is moved so that it is approaching track zero position of the disk. When a drive with the sensor has reached track zero, the head stops moving immediately and is correctly aligned. Drives without a sensor such as the Apple II mechanism attempt to move the head the maximum possible number of positions needed to reach track zero, knowing that once this motion is complete, the head will be positioned over track zero. This physical striking is responsible for drive clicking during the boot and when disk errors occurred and track zero synchronization was attempted.
Finding sectors All 8-inch and some 5¼-inch drives use methods to locate sectors, known as either hard sectors or soft sectors, with the small hole in the jacket, off to the side of the spindle hole, used for timing reference. A light beam sensor detects when a punched hole in the disk is visible through the hole in the jacket. For a soft-sectored disk, there is only a single hole, which is used to locate the first sector of each track. For a hard-sectored disk, there are many holes, one for each sector row, plus an additional hole in a half-sector position, that is used to indicate sector zero. The Apple II computer system is notable in that it does not have an index-hole sensor and ignores the presence of hard or soft sectoring. Instead, it uses special repeating data synchronization patterns written to the disk between each sector, to assist the computer in finding and synchronizing with the data in each track. Most 3½-inch drives use a constant speed drive motor and contain the same number of sectors across all tracks. This is sometimes referred to as
constant angular velocity. In order to fit more data onto a disk, some 3½-inch drives (notably the
Macintosh External 400K and 800K drives) instead use
constant linear velocity, which uses a variable-speed drive motor that spins more slowly as the head moves away from the center of the disk, maintaining the same speed of the head(s) relative to the surface(s) of the disk. This allows more sectors to be written to the longer middle and outer tracks as the track length increases. == Historical sequence of floppy disk formats ==