Showing posts with label disk partition. Show all posts
Showing posts with label disk partition. Show all posts

Thursday, May 30, 2013

Low-Level vs High-Level Formatting

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 organized 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.

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

Finally, these tracks are divided into pieces called sectors.


There are millions of tracks and each has around 60 to 120 sectors.
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.

Physical formatting therefore consists in organizing 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 organized 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!


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.

Types of Hard Drive Partitions and Drive Partitioning Operations

Disk partition
A partition is a part or section of a hard disk, or, in other words, a storage space unit of the highest level on it. You can have only one partition, occupying 100% of your HD, or divide your hard disk into multiple partitions (each for a certain purpose), determine their size, install the operating and file system you want. As a result, your single physical hard drive will turn into several smaller logical disks.
Actually a hard disk can exist on your machine without any partitions on it, but it’ll be pointless because you won’t be able to implement even basic tasks, say, install an operating system and thus store and access your data properly. It need be added that you can install the majority of Windows OSes onto a non-partitioned disk - in this case the operating system will implement partitioning itself in the course of installation.


Types of hard drive partitions

Primary Partition is a partition that is needed to store and boot an operating system, though applications and user data can reside there as well, and what’s more, you can have a primary partition without any operating system on it. There can be up to a maximum of four primary partitions on a single hard disk, with only one of them set as active (see “Active partition”).
Active (boot) partition is a primary partition that has an operating system installed on it. It is used for booting your machine. If you have a single primary partition, it is regarded as active. If you have more than one primary partition, only one of them is marked active (in a given PC session).
Extended partition can be sub-divided into logical drives and is viewed as a container for logical drives, where data proper is located. An extended partition is not formatted or assigned a drive letter. The extended partition is used only for creating a desired number of logical partitions.
Logical drive is created within an extended partition. A logical partition is a way to extend the initial limitation of four partitions. An extended partition can contain up to 24 logical partitions (you’re limited by the number of drive letters and the amount of hard drive space available for creating drives; of course, it’s senseless to use 24 partitions on a system in most cases, because it will be a data organization nightmare). Logical partitions are used for storing data mainly, they can be formatted and assigned drive letters; their details are listed in the extended partition’s table - EMBR (Extended Master Boot Record).


Drive partitioning operations

There are 2 types of partition operations: basic and advanced. The former are more frequent, but you are likely to need to perform the latter ones either. So, let’s analyze both types.
Basic partition operations:
  • Create partition
  • Increase/decrease partition size
  • Increase free space
If a partition’s capacity is not sufficient for storing extra data on it, you might need to increase its space. The increase free space wizard will help you fulfill this task.
  • Move partition
In what cases do you move partitions? First, if you want to change the letter order assigned by the OS. Then in case you need to work with some older OS that can boot from binary partitions located at the beginning of the disk, you also perform this kind of operation. Speeding up partition operations and changing partition configuration are also implemented by means of moving partitions.
  • Copy partition
You perform this operation when you create a partition backup or want to move all data from an old disk to a new one.
  • Delete partition
After a partition is deleted, its space is added to unallocated disk space. It can be used for a new partition or to resize an existing partition.
  • Delete partition and destroy data (Wipe process)
To securely wipe out data stored on the deleted partition use special partitioning tools, which include powerful hard disk/partition wiping utilities.
  • Split partition
You can split a partition in two or create an empty partition from another partition’s free space.
  • Merge partitions
You can merge two partitions, even if their file systems are different. All data will stay intact and reside on the resulting partition.
  • Explore partition
You can explore and manage partition contents before configuring operations on that partition.
  • Changing partition labels
The partition label is a name assigned to a partition for easier recognition, for example, “System”, “Data”, etc.
  • Format partition
To organize a file system that supports files and folders data storage, you must format a partition.
  • Checking hard disk partitions for errors
  • Defragmenting a partition
Defragmentation is reorganizing file storage on a hard disk partition so that parts of files are not spread about the disk, which allows the red head to move less across the disk and thus, increases PC and server performance.
Advanced partition operations:
  • Changing partition letter
Some operating systems assign letters to hard disk partitions at startup. Connecting an additional disk as well as creating or deleting a partition on existing disks might change your system configuration. As a result, some applications might stop working or user files might not be opened. To avoid this, you can change letters assigned by the operating system.
  • Converting a file system
Some file systems do not support large-sized partitions, files, or disks. They may also have a limited root size. To improve these characteristics you can use this particular feature.
Supported conversions:
FAT 16→ FAT 32
FAT 16→NTFS
FAT 32→FAT 16
FAT 32→NTFS
NTFS→FAT 16
NTFS→FAT 32
Ext2→Ext3
Ext3→Ext2
  • Hiding a partition
This option is necessary for protecting important information from unauthorized or casual access. Partition software usually allows you to hide both primary and logical partitions.
  • Unhiding a partition
This feature lets the operating system see the partition, assign a letter and provide access to its files.
  • Setting active partition
Since a hard disk can have only one active partition, the latter must be set.
  • Resizing a root
The FAT 16 partition is located in a special place and has a limited size. Advanced partitioning tools enable you to change the size of existing partitions.
  • Changing cluster size
A file occupies at least one cluster (one unit of disk space allocation for files and directories). Smaller clusters reduce slack disk space.
  • Changing partition type
This operation is performed to change a hexadecimal value that defines the file and operating system suitable for a partition.