Flux rss
Bookmark Bookmark & Share
disco rigido Disco duro Festplatte Disque dur Disco rígido

The role of the hard drive

The hard drive is the component which is used to permanently store data, as opposed to RAM, which is erased whenever the computer is restarted, which is why the term mass storage device is sometimes used to refer to hard drives.

The hard drive is connected to the motherboard using a hard drive controller which acts as an interface between the processor and the hard drive. The hard drive controller manages the drives linked to it, interprets commands sent by the processor and routes them to the drive in question. Hard drives are generally grouped by interface as follows:

When the USB standard appeared, external cases which could connect a hard drive using a USB port were released, making hard drives easy to install and increasing storage capacity for macking backups. These are called external hard drives, as opposed to internal hard drives which are plugged directly into the motherboard; still, they are the same disks, even though they are connected to the computer using a case plugged into a USB port.

Structure

A hard drive is made up of not just one, but several rigid metal, glass, or ceramic disks, stacked very close to one another and called platters.

Hard drive

The disks turn very quickly around an axle (currently several thousand revolutions per minute) in a counter-clockwise direction. A computer works in binart mode, meaning that the data is stored in the form of 0s and 1s (called bits). Hard drives hold millions of these bits, stored very close to one another on a fine magntic layer a few microns thick, which is covered by a protective film.

They are read and written using read heads located on both sides of the platters. These heads are electromagnets which raise and lower themselves in order to read or write data. The read heads are only a few microns from the surface, separated by a layer of air created by the rotation of the disks, which generates a wind of about 250km/h (150 mph)! What's more, these disks are laterally mobile, so that the heads can sweep across their entire surface.

Structure of a hard drive (read heads)

However, the heads are linked to one another and only one of them can read or write at a given moment. The term cylinder is used to refer to all the data stored vertically on each of the disks.

This entire precision mechanism is contained within a fully airtight case, as the smallest particle can degrade the disk's surface. This is why hard drives are closed shut with seals, and the warning "Warranty void if removed", as only hard drive manufacturers can open them (in particle-free "cleanrooms").

How it works

The read/write heads are said to be "inductive", meaning that they can generate a magnetic field. This is especially important in writing: The heads, by creating positive or negative fields, polarise the disk surface in a very tiny area, so that when they are read afterwards, the polarity reversal completes a circuit with the read head, which is then transformed by an analog-digital converter (ADC) into a 0 or 1 which can be understood by the computer.

Tracks on a hard drive

The heads start writing data from the edge of the disk (track 0), then move onward towards the centre. The data is organised in concentric circles called "tracks", which are created by low-level formatting.

The tracks are separated into areas (between two radii) called sectors, containing data (generally at least 512 octets per sector).

Hard drive sectors

The term cylinder refers to all data found on the same track of different platters (i.e. above and below one another), as this forms a "cylinder" of data.

hard drive cylinders

Finally, the term clusters (also called allocation units) refers to minimum area that a file can take up on the hard drive. An operating system uses blocks, which are in fact groups of sectors (between 1 and 16 sectors). A small file may occupy multiple sectors (a cluster).

On old hard drives, addressing was done physically, by defining the position of the date from the coordinates Cylinder/Head/Sector (CHS).

Block mode

Block mode and 32-bit transfer are used to get the best performance out of your hard drive. Block mode involves transferring data in blocks, usually in 512-byte packets, which keeps the processor from having to process a large number of tiny one-bit packets. This way, the processor has the "time" to perform other operations.
Unfortunately, this data transfer mode is only useful for older operating systems (such as MS-DOS), as recent operating systems use their own hard drive manager, which makes this management system obsolete.

There is a BIOS option (IDE HDD block mode or Multi Sector Transfer) which can sometimes determine how many blocks can be managed at once. It is a number between 2 and 32. If you don't know it, there are several solutions available:

  • Check your hard drive's documentation
  • Search for the drive's specifications on the Internet
  • Carry out tests to determine it.

Still, block mode may generate errors in certain systems, due to redundancies in the hard drive manager. The system involves disabling one of the two managers:

  • the 32-bit software manager in the operating system;
  • block mode in the BIOS.

32-bit mode

32-bit mode (as opposed to 16-bit mode) is characterised by 32-bit data transfers. 32-bit transfer is comparable to 32 doors opening and closing all at once. In 32-bit mode, two 16-bit words (groups of bits) are transmitted one after another, then assembled.

The improvements in performance when switching from 16-bit mode to 32-bit mode are generally insignificant. In any event, it is no longer normally possible to select the mode, as the motherboard automatically determines which mode to use depending on the type of hard drive.

However, automatically selecting 32-bit mode may slow down IDE CD-ROM drives whose speed is higher than 24x when they are alone on an IDE ribbon cable. Indeed, when a CD-ROM drive is alone on the cable, the BIOS cannot tell if it is compatible with 32-bit mode (because it is looking for a hard drive), in which case it switches to 16-bit mode. In this case, the transfer speed (incorrectly called the transfer rate) will be lower than the one claimed by the manufacturer.

The solution is to plug the CD-ROM drive and a 32-bit-compatible hard drive into the same ribbon cable.

Technical specifications

  • Capacity: Amount of data which can be stored on a hard drive.
  • Transfer rate: Quantity of data which can be read or written from the disk per unit of time. It is expressed in bits per second.
  • Rotational speed: The speed at which the platters turn, expressed in rotations per minute (rpm for short). Hard drive speeds are on the order of 7200 to 15000 rpm. The faster a drive rotates, the higher its transfer rate. On the other hand, a hard drive which rotates quickly tends to be louder and heats up more easily.
  • Latency (also called rotational delay): The length of time that passes between the moment when the disk finds the track and the moment it finds the data.
  • Average access time: Average amount of time it takes the read head to find the right track and access the data. In other words, it represents the average length of time it takes the disk to provide data after having received the order to do so. It must be as short as possible.
  • Radial density: number of tracks per inch (tpi).
  • Linear density: number of bits per inch (bpi) on a given track.
  • Surface density: ratio between the linear density and radial density (expressed in bits per square inch).
  • Cache memory (or buffer memory): Amound of memory located on the hard drive. Cache memory is used to store the drive's most frequently-accessed data, in order to improve overall performance;
  • Interface: This refers to the connections used by the hard drive. The main hard drive interfaces are:

Resources on this subject



Last update on Thursday October 16, 2008 02:43:12 PM.This document entitled « Hard drive » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Partition - Partitioning a hard drive What is a partition? The partitioning of a hard drive occurs after the drive has been physically formatted but before it is logically formatted. It involves creating areas on the disk where data will not be mixed. It can be used, for example, to... en.kioskea.net/contents/repar/partitio.php3
PC Assembly - Hard drive installation Hard drives, CD-ROM, DVD-ROM drives and floppy drive The motherboard usually has two IDE (Integrated Device Electronics) connectors: The first connector is known as the primary device controller; The second is known as the secondary device... en.kioskea.net/contents/assemblage/branchement-disques-durs.php3
Formatting - Formatting a hard drive Before trying to understand formatting, you first need to understand how a hard drive works. Many people do not distinguish low-level formatting (also called physical formatting) from high-level formatting (also called logical formatting). Even... en.kioskea.net/contents/repar/format.php3
Formatting Your Hard DriveFormatting Your Hard Drive Formatting and installing your Hard drive using the installation CD ] A hard disk drive is a non-volatile device mainly for data storage. Usually faster than any other storage device, this essential... en.kioskea.net/faq/sujet-194-formatting-your-hard-drive
Installing Windows XP on a SATA hard driveInstalling Windows XP on a SATA hard drive Motherboard Model Downloading SATA drivers Windows Installation With floppy Without floppy Another way You can install Windows XP on a SATA hard drive… It may not be easy as the system... en.kioskea.net/faq/sujet-2544-installing-windows-xp-on-a-sata-hard-drive
New Hard drive installed – what to be done?New Hard drive installed – what to be done? Initializing the HDD Creating new partitions and formatting First You bought a new hard drive but it doesn’t appear in My Computer? It needs to be initialized and formatted for... en.kioskea.net/faq/sujet-2413-new-hard-drive-installed-what-to-be-done
Can't copy to external hard drive (Solved)Hello, I have just bought a 100g external hard drive. Bare with me as I am a novice. Hard drive advertised as being able to use on both Mac and PC. I have both - Windows XP and a mac OSX. My PC doesn't recognise the HD at all. Mac does but when I try... en.kioskea.net/forum/affich-106900-can-t-copy-to-external-hard-drive
2nd SATA Hard Drive not shown on my computer (Solved)Hello, I have had a WD 160GB SATA hard drive as my primary HD and I recently bought a Seagate 80GB SATA hard drive to use as a secondary storage space. I connected all the power, SATA cables correctly and when I boot my comp, it shows on the display... en.kioskea.net/forum/affich-32218-2nd-sata-hard-drive-not-shown-on-my-computer
How to recover crashed hard drive?my hard drive crashed after removing a virus. also encounted slow pc performance. how can i recover all my data, i tried to slave my hard drive but has local disk error, when i click open a message "do you want to format it now?" appears. please... en.kioskea.net/forum/affich-8449-how-to-recover-crashed-hard-drive
Download Hard Drive Recovery File RecoveryHard Drive Recovery is a tool to restore a damaged hard disk. It allows to repair the damaged disk and restore the partitions. The application is also capable of recovering the formated data or simply deleting them. The data recovery assistant... en.kioskea.net/telecharger/telecharger-2642-hard-drive-recovery-file-recovery
Download R-Drive ImageR-Drive Image creates disk image files for backup or for your CD / DVD. The image files can then be stored in the various removable media. The program is capable of restoring images on removable media or hard disk. Advantage R-Drive Image creates... en.kioskea.net/telecharger/telecharger-3146-r-drive-image
Download Driver / SATA RAID motherboard Gigabyte GA-MA78G-DS3HWith the current technology, SATA hard drives take place on the market for storage units. Known for their high transfer speed, motherboards are attributed recent interfaces for connecting SATA hard drives. Here's to you, the last updated driver if you... en.kioskea.net/telecharger/telecharger-1113-driver-sata-raid-motherboard-gigabyte-ga-ma78g-ds3h
The file systemWhat is a file system? Even though hard drives can be very small, they still contain millions of bits and therefore need to be organised so that information can be located. This is the purpose of the file system. Remember that a hard drive is made... en.kioskea.net/contents/repar/filesys.php3
Memory managementDescription of the memory The physical memory on a system falls into two categories: the random access memory: made up of integrated circuits, therefore very fast mass storage: made up of magnetic supports (hard drive, magnetic tapes, etc.), much... en.kioskea.net/contents/systemes/memoire.php3
PC Assembly - Organising drives and cablesOrganising internal components Hard drives and other internal devices (floppy disk drive, CD-ROM/DVD-ROM drives or burners) may be installed in any internal drive bay. However, installation of these devices may be restricted by the... en.kioskea.net/contents/assemblage/organisation-interne.php3