1 1 0 0 0 1 0 0 0 1 1 1 12 11 10 09 08 07 06 05 04 03 02 01 1 will be the sum mod 2 of positions 3,5,7,9,11: 1 2 will be the sum mod 2 of positions 3,6,7,10,11: 1 4 will be the sum mod 2 of positions 5,6,7,12 8 will be the sum mod 2 of positions 9,10,11,12 Now imagine that one bit gets flipped. 1 0 0 0 0 1 0 0 0 1 1 1 12 11 10 09 08 07 06 05 04 03 02 01 1,3,5,7,9,11: ODD number of 1's BAD 2,3,6,7,10,11: ODD: bad. 4,5,6,7,12 EVEN: good 8,9,10,11,12: ODD: BAD 1+2+8 = 11, that means bit 11 is bad. Flip it. 1 1 0 0 1 1 0 0 0 1 1 1 12 11 10 09 08 07 06 05 04 03 02 01 1: EVEN: Good 2: EVEN: GOOD 4: EVEN: GOOD 8: ODD: BAD 8 = 8, means bit 8 is bad. 1 1 0 0 0 1 0 0 0 1 1 1 12 11 10 09 08 07 06 05 04 03 02 01 This is 1-bit error correction code. It can correct any situation in which there is no more than one bit off. However, if there are two bits off, likely the error will be "corrected" by flipping a third bit. This system, the "Hamming Code" is often taught in classes, but it is not used at all for disk misreads. The system more generally in use is called "Reed-Solomon" it uses matrices and groups and stuff involving abstract algebra. No error detection/correction is perfect, but it can multiple bit errors and detect even more than that. If an error can be corrected, GREAT. If not, it's a misread. A disk itself, a classic magnetic disk: A track is a ring of information on the disk. Disks can contain thousands of tracks. Each track is divided into sectors, and sectors contain a whole bunch of bits. The read head doesn't actually a different position for each track. When a read head is in position, it can read many tracks from the position (and it reads the correct sector by letting the disk rotate into position). The collection of tracks that be read by a head in a specific position is called a cylinder. (With SSD, it's a little different because these drives don't rotate.) When you install a hard drive, it has to be formatted, and formatting will divide the disks into partitions. One group of blocks corresponds to one "drive" and another group corresponds to another "drive". A partition can contain a volume, and a volume can contain a file system. And these file systems don't even have to compatible with each other. (We used to have machines whose hard drives had a Windows partition AND a Linux partition.) (Linux could access the Windows partition but Windows could not access the Linux partition). One way to create a volume without a meaningful file system is to use one of the disk partitions for swap space. Disks also have to account for "bad blocks". A "bad block" is a physically damaged block on the disk preventing accurate reading and/or writing to or from it. If a block gets damaged, you can consider the information on that block to be lost. But the rest of the disk can still be used. (Oftentimes a disk will have bad blocks even when they're new.) And so disks, when they're formatted, will make a note of bad blocks and not put anything in those blocks. These are marked in an internal data structure as not allowing data. Bad blocks can also be created in the normal use of a disk and disk scans can find them and rework the hard drive so that no other information is added to them, but the data already there is probably lost. A "boot block" is a section of the disk specifically to boot the machine. On modern computers, the boot block is actually part of the firmware. (You can control booting by using the BIOS). Modern firmware works kind of a like a small internal hard drive because you can change the firmware with software. Booting the machine, means loading up and starting the operating system. On older machines, this was part of the firmware, or part of a floppy. Generally, the boot stuff is inaccessible by normal means.