Flux rss

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 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. The surface of each cylinder, which is originally uniform, is divided during formatting (by divided we mean of course that the surface particles are magnetised...) into little parcels that can be more easily located.

Low-level formatting

The purpose of low-level formatting is to divide the disk surface into basic elements:

  • tracks
  • sectors
  • cylinders

Remember that a hard drive consists of several circular platters rotating around an axis and covered on either side by a magnetic oxide which, since it is polarised, can be used to store data.

hard drive cylinders

The tracks are the concentric areas written on both sides of a platter.

disk tracks

Finally, these tracks are divided into pieces called sectors.

disk sectors
There are millions of tracks and each has around 60 to 120 sectors.

A cylinder refers to all the data located on the same track of different platters (i.e. vertically on top of each other) as this forms a "cylinder" of data in space.

cylinder

Physical formatting therefore consists in organising the surface of each platter into entities called trackers and sectors, by polarising the disk areas using the write heads. Tracks are numbered starting from 0, then the heads polarise concentrically the surface of the platters. When the head goes from one track to the next, it leaves a gap. Each track is itself organised into sectors (numbered starting from 1) and separated by gaps. Each of these sectors starts with an area reserved for system information called a prefix and ends with an area called a suffix
The purpose of low-level formatting is therefore to prepare the disk surface to receive data (and therefore does not depend on the operating system) and to mark "defective sectors" using tests performed by the manufacturer.

When you buy a hard drive, it has already undergone low-level formatting. SO YOU DO NOT NEED TO PERFORM LOW-LEVEL FORMATTING!

Checksum

During the formatting, check tests (algorithms allowing the validity of sectors to be tested using checksums) are performed and each time a sector is considered defective, the (invalid) checksum is written in the prefix. It can no longer be used thereafter and is said to be "marked defective".

When the disk reads the data, it sends a value that depends on the content of the sent packet, and which is initially stored with the data. The system calculates this value based on the data received, and then it compares it with the one that is stored with the data. If these two values are different, the data are no longer valid and there is probably a problem with the disk surface.
The cyclic redundancy check (CRC), is based on the same principle to check the integrity of a file.

Analysis utilities such as scandisk or chkdsk operate differently:
they write data on sectors considered to be valid, and then read them and compare them. If they are the same, the utility goes on to the next sector, otherwise it marks the sector as defective.

High-level formatting

Logical formatting occurs after the low-level formatting. It creates a file system on the disks that will allow an operating system (DOS, Windows 95, Linux, OS/2, Windows NT, ...) to use the disk space to store and access files.

Operating systems use different file systems, so the type of logical formatting will depend on the operating system you install. So, if you format your disk with a single file system, this naturally limits the number and type of operating systems that you can install (in fact, you can only install operating systems that use the same file system).

Fortunately, there is a solution to this problem which is to create partitions. Each of the partitions can effectively have its own file system, and you can therefore install different types of operating systems.

If you forget to use the "/s" switch when formatting a hard drive using the format command under DOS, it may prevent the operating system from starting. The system will then display the following message:
Non System disk / Disk error
In this case, it is useful to have a system disk that you can boot from and execute the command sys a: c:.


Last update on Thursday October 16, 2008 02:43:15 PM.
This document entitled « Formatting - Formatting a 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.
Formatted hard drive Hey there, Just wanted to know if its possible to get back the data on a formatted hard drive and if yes how can it be done ? en.kioskea.net/forum/affich-26775-formatted-hard-drive
Get back data on formatted hdd Hey there, Just wanted to know if its possible to get back the data on a formatted hard drive and if yes how can it be done ? en.kioskea.net/forum/affich-28522-get-back-data-on-formatted-hdd
Hard disk copy Hello, I'm trying to make an exact copy of my hard drive. What I want to do is copy my hard drive, bit for bit and make it bootable so I can reload it onto my formatted hard drive without having to re-install. I've freshly installed XP Pro... en.kioskea.net/forum/affich-7828-hard-disk-copy
Formatting your drive with Fat32Formatting your drive with Fat32 Windows XP normally refuse to format a partition higher than 40 GB with FAT32. however this operation performs properly with NTFS The solution for this issue is to boot your installation CD and use the... en.kioskea.net/faq/sujet-676-formatting-your-drive-with-fat32
Connecting a DvicoTVIX HD-6500A hard drive on a TV in HDMIConnecting a DvicoTVIX HD-6500A hard drive on a TV in HDMI Problem I had my hard drive plugged to my HDMI television, but still have no image on my screen. Solution To connect the hard drive on television in HDMI, you must navigate directly... en.kioskea.net/faq/sujet-995-connecting-a-dvicotvix-hd-6500a-hard-drive-on-a-tv-in-hdmi
Partition MergePartition Merge Merge two partitions with Windows Vista Merge two partitions with a particular software If you have a partitioned hard drive and you are running out of space on one of them, you can choose to merge it with another... en.kioskea.net/faq/sujet-318-partition-merge
Formated Hard driveHello, A friend was tring to be helpful and formated my hard drive of my Dell Laptop. Now I have no operating systen on it. I am very computer litterate but I can not bypass the fact that it needs the floppy and the cd rom in at the same time (they... en.kioskea.net/forum/affich-25366-formated-hard-drive
Possible to get my data back?Hey there, Just wanted to know if its possible to get back the data on a formatted hard drive and if yes how can it be done ? en.kioskea.net/forum/affich-31795-possible-to-get-my-data-back
Pc shuts down during Hard drive formatHello, I have encountered a weird problem. Lately my computer has been shutting down without warning. So I decided to format the hard drive. While doing so, the computer stopped at 15% hard drive format and shut down completely. I was unable to start... en.kioskea.net/forum/affich-23701-pc-shuts-down-during-hard-drive-format
Computer - 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... en.kioskea.net/pc/disque.php3
History of the hard drive The first hard drive was invented in early 1956, at the request of the US Air Force, by the company IBM. It was called the RAMAC 305 (with the name standing for Random Access Method of Accounting and Control), a group of 50 aluminium disks each 61 cm... en.kioskea.net/histoire/disque.php3
Formatting a hard disk 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/repar/format.php3