Disk Map 2 4

broken image


Trusted Mac download Disk Map 2.6. Virus-free and 100% clean download. Get Disk Map alternative downloads. Start the Disk Management utility. On Windows Server 2012 and later, on the taskbar, right-click the Windows logo, and then choose Disk Management. On Windows Server 2008, choose Start, Administrative Tools, Computer Management, Disk Management. Review the disks. The root volume is an EBS volume mounted as C:.

  1. Disk Map 2 4 Free
  2. Disk Map 2 404
-->

Applies to

  • Windows 10

MBR2GPT.EXE converts a disk from the Master Boot Record (MBR) to the GUID Partition Table (GPT) partition style without modifying or deleting data on the disk. The tool is designed to be run from a Windows Preinstallation Environment (Windows PE) command prompt, but can also be run from the full Windows 10 operating system (OS) by using the /allowFullOS option.

MBR2GPT.EXE is located in the WindowsSystem32 directory on a computer running Windows 10 version 1703 (also known as the Creator's Update) or later.The tool is available in both the full OS environment and Windows PE. To use this tool in a deployment task sequence with Configuration Manager or Microsoft Deployment Toolkit (MDT), you must first update the Windows PE image (winpe.wim, boot.wim) with the Windows ADK 1703, or a later version.

See the following video for a detailed description and demonstration of MBR2GPT.

You can use MBR2GPT to:

Disk
  • Convert any attached MBR-formatted system disk to the GPT partition format. You cannot use the tool to convert non-system disks from MBR to GPT.
  • Convert an MBR disk with BitLocker-encrypted volumes as long as protection has been suspended. To resume BitLocker after conversion, you will need to delete the existing protectors and recreate them.
  • Convert operating system disks that have earlier versions of Windows 10 installed, such as versions 1507, 1511, and 1607. However, you must run the tool while booted into Windows 10 version 1703 or later, and perform an offline conversion.
  • Convert an operating system disk from MBR to GPT using Configuration Manager or MDT provided that your task sequence uses Windows PE version 1703 or later.

Offline conversion of system disks with earlier versions of Windows installed, such as Windows 7, 8, or 8.1 are not officially supported. The recommended method to convert these disks is to upgrade the operating system to Windows 10 first, then perform the MBR to GPT conversion.

Important

After the disk has been converted to GPT partition style, the firmware must be reconfigured to boot in UEFI mode.
Make sure that your device supports UEFI before attempting to convert the disk.

Disk Prerequisites

Before any change to the disk is made, MBR2GPT validates the layout and geometry of the selected disk to ensure that:

  • The disk is currently using MBR
  • There is enough space not occupied by partitions to store the primary and secondary GPTs:
    • 16KB + 2 sectors at the front of the disk
    • 16KB + 1 sector at the end of the disk
  • There are at most 3 primary partitions in the MBR partition table
  • One of the partitions is set as active and is the system partition
  • The disk does not have any extended/logical partition
  • The BCD store on the system partition contains a default OS entry pointing to an OS partition
  • The volume IDs can be retrieved for each volume which has a drive letter assigned
  • All partitions on the disk are of MBR types recognized by Windows or has a mapping specified using the /map command-line option

If any of these checks fails, the conversion will not proceed and an error will be returned.

Syntax

MBR2GPT /validate|convert [/disk:] [/logs:] [/map:=] [/allowFullOS]

Options

OptionDescription
/validateInstructs MBR2GPT.exe to perform only the disk validation steps and report whether the disk is eligible for conversion.
/convertInstructs MBR2GPT.exe to perform the disk validation and to proceed with the conversion if all validation tests pass.
/disk:Specifies the disk number of the disk to be converted to GPT. If not specified, the system disk is used. The mechanism used is the same as that used by the diskpart.exe tool SELECT DISK SYSTEM command.
/logs:Specifies the directory where MBR2GPT.exe logs should be written. If not specified, %windir% is used. If specified, the directory must already exist, it will not be automatically created or overwritten.
/map:=Specifies additional partition type mappings between MBR and GPT. The MBR partition number is specified in decimal notation, not hexadecimal. The GPT GUID can contain brackets, for example: /map:42={af9b60a0-1431-4f62-bc68-3311714a69ad}. Multiple /map options can be specified if multiple mappings are required.
/allowFullOSBy default, MBR2GPT.exe is blocked unless it is run from Windows PE. This option overrides this block and enables disk conversion while running in the full Windows environment.
Note: Since the existing MBR system partition is in use while running the full Windows environment, it cannot be reused. In this case, a new ESP is created by shrinking the OS partition.

Examples

Validation example

In the following example, disk 0 is validated for conversion. Errors and warnings are logged to the default location, %windir%.

Disk Map 2 4 Free

Conversion example

In the following example:

  1. Using DiskPart, the current disk partition layout is displayed prior to conversion - three partitions are present on the MBR disk (disk 0): a system reserved partition, a Windows partition, and a recovery partition. A DVD-ROM is also present as volume 0.
  2. The OS volume is selected, partitions are listed, and partition details are displayed for the OS partition. The MBR partition type is 07 corresponding to the installable file system (IFS) type.
  3. The MBR2GPT tool is used to convert disk 0.
  4. The DiskPart tool displays that disk 0 is now using the GPT format.
  5. The new disk layout is displayed - four partitions are present on the GPT disk: three are identical to the previous partitions and one is the new EFI system partition (volume 3).
  6. The OS volume is selected again, and detail displays that it has been converted to the GPT partition type of ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 corresponding to the PARTITION_BASIC_DATA_GUID type.

As noted in the output from the MBR2GPT tool, you must make changes to the computer firmware so that the new EFI system partition will boot properly.

Specifications

Disk conversion workflow

The following steps illustrate high-level phases of the MBR-to-GPT conversion process:

  1. Disk validation is performed.
  2. The disk is repartitioned to create an EFI system partition (ESP) if one does not already exist.
  3. UEFI boot files are installed to the ESP.
  4. GPT metadata and layout information is applied.
  5. The boot configuration data (BCD) store is updated.
  6. Drive letter assignments are restored.

Creating an EFI system partition

For Windows to remain bootable after the conversion, an EFI system partition (ESP) must be in place. MBR2GPT creates the ESP using the following rules:

  1. The existing MBR system partition is reused if it meets these requirements:
    a. It is not also the OS or Windows Recovery Environment partition.
    b. It is at least 100MB (or 260MB for 4K sector size disks) in size.
    c. It is less than or equal to 1GB in size. This is a safety precaution to ensure it is not a data partition.
    d. The conversion is not being performed from the full OS. In this case, the existing MBR system partition is in use and cannot be repurposed.
  2. If the existing MBR system partition cannot be reused, a new ESP is created by shrinking the OS partition. This new partition has a size of 100MB (or 260MB for 4K sector size disks) and is formatted FAT32.

If the existing MBR system partition is not reused for the ESP, it is no longer used by the boot process after the conversion. Other partitions are not modified.

Important

If the existing MBR system partition is not reused for the ESP, it might be assigned a drive letter. If you do not wish to use this small partition, you must manually hide the drive letter.

Partition type mapping and partition attributes

Since GPT partitions use a different set of type IDs than MBR partitions, each partition on the converted disk must be assigned a new type ID. The partition type mapping follows these rules:

  1. The ESP is always set to partition type PARTITION_SYSTEM_GUID (c12a7328-f81f-11d2-ba4b-00a0c93ec93b).
  2. If an MBR partition is of a type that matches one of the entries specified in the /map switch, the specified GPT partition type ID is used.
  3. If the MBR partition is of type 0x27, the partition is converted to a GPT partition of type PARTITION_MSFT_RECOVERY_GUID (de94bba4-06d1-4d40-a16a-bfd50179d6ac).
  4. All other MBR partitions recognized by Windows are converted to GPT partitions of type PARTITION_BASIC_DATA_GUID (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

In addition to applying the correct partition types, partitions of type PARTITION_MSFT_RECOVERY_GUID also have the following GPT attributes set:

  • GPT_ATTRIBUTE_PLATFORM_REQUIRED (0x0000000000000001)
  • GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)

For more information about partition types, see:

Persisting drive letter assignments

The conversion tool will attempt to remap all drive letter assignment information contained in the registry that correspond to the volumes of the converted disk. If a drive letter assignment cannot be restored, an error will be displayed at the console and in the log, so that you can manually perform the correct assignment of the drive letter. Important: this code runs after the layout conversion has taken place, so the operation cannot be undone at this stage.

The conversion tool will obtain volume unique ID data before and after the layout conversion, organizing this information into a lookup table. It will then iterate through all the entries in HKLMSYSTEMMountedDevices, and for each entry do the following:

  1. Check if the unique ID corresponds to any of the unique IDs for any of the volumes that are part of the converted disk.
  2. If found, set the value to be the new unique ID, obtained after the layout conversion.
  3. If the new unique ID cannot be set and the value name starts with DosDevices, issue a console and log warning about the need for manual intervention in properly restoring the drive letter assignment.

Troubleshooting

The tool will display status information in its output. Both validation and conversion are clear if any errors are encountered. For example, if one or more partitions do not translate properly, this is displayed and the conversion not performed. To view more detail about any errors that are encountered, see the associated log files.

Logs

Four log files are created by the MBR2GPT tool:

  • diagerr.xml
  • diagwrn.xml
  • setupact.log
  • setuperr.log

These files contain errors and warnings encountered during disk validation and conversion. Information in these files can be helpful in diagnosing problems with the tool. The setupact.log and setuperr.log files will have the most detailed information about disk layouts, processes, and other information pertaining to disk validation and conversion. Note: The setupact*.log files are different than the Windows Setup files that are found in the %Windir%Panther directory.

The default location for all these log files in Windows PE is %windir%.

Interactive help

To view a list of options available when using the tool, type mbr2gpt /?

The following text is displayed:

Return codes

MBR2GPT has the following associated return codes:

Return codeDescription
0Conversion completed successfully.
1Conversion was canceled by the user.
2Conversion failed due to an internal error.
3Conversion failed due to an initialization error.
4Conversion failed due to invalid command-line parameters.
5Conversion failed due to error reading the geometry and layout of the selected disk.
6Conversion failed because one or more volumes on the disk is encrypted.
7Conversion failed because the geometry and layout of the selected disk do not meet requirements.
8Conversion failed due to error while creating the EFI system partition.
9Conversion failed due to error installing boot files.
10Conversion failed due to error while applying GPT layout.
100Conversion to GPT layout succeeded, but some boot configuration data entries could not be restored.
Disk Map 2 4
  • Convert any attached MBR-formatted system disk to the GPT partition format. You cannot use the tool to convert non-system disks from MBR to GPT.
  • Convert an MBR disk with BitLocker-encrypted volumes as long as protection has been suspended. To resume BitLocker after conversion, you will need to delete the existing protectors and recreate them.
  • Convert operating system disks that have earlier versions of Windows 10 installed, such as versions 1507, 1511, and 1607. However, you must run the tool while booted into Windows 10 version 1703 or later, and perform an offline conversion.
  • Convert an operating system disk from MBR to GPT using Configuration Manager or MDT provided that your task sequence uses Windows PE version 1703 or later.

Offline conversion of system disks with earlier versions of Windows installed, such as Windows 7, 8, or 8.1 are not officially supported. The recommended method to convert these disks is to upgrade the operating system to Windows 10 first, then perform the MBR to GPT conversion.

Important

After the disk has been converted to GPT partition style, the firmware must be reconfigured to boot in UEFI mode.
Make sure that your device supports UEFI before attempting to convert the disk.

Disk Prerequisites

Before any change to the disk is made, MBR2GPT validates the layout and geometry of the selected disk to ensure that:

  • The disk is currently using MBR
  • There is enough space not occupied by partitions to store the primary and secondary GPTs:
    • 16KB + 2 sectors at the front of the disk
    • 16KB + 1 sector at the end of the disk
  • There are at most 3 primary partitions in the MBR partition table
  • One of the partitions is set as active and is the system partition
  • The disk does not have any extended/logical partition
  • The BCD store on the system partition contains a default OS entry pointing to an OS partition
  • The volume IDs can be retrieved for each volume which has a drive letter assigned
  • All partitions on the disk are of MBR types recognized by Windows or has a mapping specified using the /map command-line option

If any of these checks fails, the conversion will not proceed and an error will be returned.

Syntax

MBR2GPT /validate|convert [/disk:] [/logs:] [/map:=] [/allowFullOS]

Options

OptionDescription
/validateInstructs MBR2GPT.exe to perform only the disk validation steps and report whether the disk is eligible for conversion.
/convertInstructs MBR2GPT.exe to perform the disk validation and to proceed with the conversion if all validation tests pass.
/disk:Specifies the disk number of the disk to be converted to GPT. If not specified, the system disk is used. The mechanism used is the same as that used by the diskpart.exe tool SELECT DISK SYSTEM command.
/logs:Specifies the directory where MBR2GPT.exe logs should be written. If not specified, %windir% is used. If specified, the directory must already exist, it will not be automatically created or overwritten.
/map:=Specifies additional partition type mappings between MBR and GPT. The MBR partition number is specified in decimal notation, not hexadecimal. The GPT GUID can contain brackets, for example: /map:42={af9b60a0-1431-4f62-bc68-3311714a69ad}. Multiple /map options can be specified if multiple mappings are required.
/allowFullOSBy default, MBR2GPT.exe is blocked unless it is run from Windows PE. This option overrides this block and enables disk conversion while running in the full Windows environment.
Note: Since the existing MBR system partition is in use while running the full Windows environment, it cannot be reused. In this case, a new ESP is created by shrinking the OS partition.

Examples

Validation example

In the following example, disk 0 is validated for conversion. Errors and warnings are logged to the default location, %windir%.

Disk Map 2 4 Free

Conversion example

In the following example:

  1. Using DiskPart, the current disk partition layout is displayed prior to conversion - three partitions are present on the MBR disk (disk 0): a system reserved partition, a Windows partition, and a recovery partition. A DVD-ROM is also present as volume 0.
  2. The OS volume is selected, partitions are listed, and partition details are displayed for the OS partition. The MBR partition type is 07 corresponding to the installable file system (IFS) type.
  3. The MBR2GPT tool is used to convert disk 0.
  4. The DiskPart tool displays that disk 0 is now using the GPT format.
  5. The new disk layout is displayed - four partitions are present on the GPT disk: three are identical to the previous partitions and one is the new EFI system partition (volume 3).
  6. The OS volume is selected again, and detail displays that it has been converted to the GPT partition type of ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 corresponding to the PARTITION_BASIC_DATA_GUID type.

As noted in the output from the MBR2GPT tool, you must make changes to the computer firmware so that the new EFI system partition will boot properly.

Specifications

Disk conversion workflow

The following steps illustrate high-level phases of the MBR-to-GPT conversion process:

  1. Disk validation is performed.
  2. The disk is repartitioned to create an EFI system partition (ESP) if one does not already exist.
  3. UEFI boot files are installed to the ESP.
  4. GPT metadata and layout information is applied.
  5. The boot configuration data (BCD) store is updated.
  6. Drive letter assignments are restored.

Creating an EFI system partition

For Windows to remain bootable after the conversion, an EFI system partition (ESP) must be in place. MBR2GPT creates the ESP using the following rules:

  1. The existing MBR system partition is reused if it meets these requirements:
    a. It is not also the OS or Windows Recovery Environment partition.
    b. It is at least 100MB (or 260MB for 4K sector size disks) in size.
    c. It is less than or equal to 1GB in size. This is a safety precaution to ensure it is not a data partition.
    d. The conversion is not being performed from the full OS. In this case, the existing MBR system partition is in use and cannot be repurposed.
  2. If the existing MBR system partition cannot be reused, a new ESP is created by shrinking the OS partition. This new partition has a size of 100MB (or 260MB for 4K sector size disks) and is formatted FAT32.

If the existing MBR system partition is not reused for the ESP, it is no longer used by the boot process after the conversion. Other partitions are not modified.

Important

If the existing MBR system partition is not reused for the ESP, it might be assigned a drive letter. If you do not wish to use this small partition, you must manually hide the drive letter.

Partition type mapping and partition attributes

Since GPT partitions use a different set of type IDs than MBR partitions, each partition on the converted disk must be assigned a new type ID. The partition type mapping follows these rules:

  1. The ESP is always set to partition type PARTITION_SYSTEM_GUID (c12a7328-f81f-11d2-ba4b-00a0c93ec93b).
  2. If an MBR partition is of a type that matches one of the entries specified in the /map switch, the specified GPT partition type ID is used.
  3. If the MBR partition is of type 0x27, the partition is converted to a GPT partition of type PARTITION_MSFT_RECOVERY_GUID (de94bba4-06d1-4d40-a16a-bfd50179d6ac).
  4. All other MBR partitions recognized by Windows are converted to GPT partitions of type PARTITION_BASIC_DATA_GUID (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

In addition to applying the correct partition types, partitions of type PARTITION_MSFT_RECOVERY_GUID also have the following GPT attributes set:

  • GPT_ATTRIBUTE_PLATFORM_REQUIRED (0x0000000000000001)
  • GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)

For more information about partition types, see:

Persisting drive letter assignments

The conversion tool will attempt to remap all drive letter assignment information contained in the registry that correspond to the volumes of the converted disk. If a drive letter assignment cannot be restored, an error will be displayed at the console and in the log, so that you can manually perform the correct assignment of the drive letter. Important: this code runs after the layout conversion has taken place, so the operation cannot be undone at this stage.

The conversion tool will obtain volume unique ID data before and after the layout conversion, organizing this information into a lookup table. It will then iterate through all the entries in HKLMSYSTEMMountedDevices, and for each entry do the following:

  1. Check if the unique ID corresponds to any of the unique IDs for any of the volumes that are part of the converted disk.
  2. If found, set the value to be the new unique ID, obtained after the layout conversion.
  3. If the new unique ID cannot be set and the value name starts with DosDevices, issue a console and log warning about the need for manual intervention in properly restoring the drive letter assignment.

Troubleshooting

The tool will display status information in its output. Both validation and conversion are clear if any errors are encountered. For example, if one or more partitions do not translate properly, this is displayed and the conversion not performed. To view more detail about any errors that are encountered, see the associated log files.

Logs

Four log files are created by the MBR2GPT tool:

  • diagerr.xml
  • diagwrn.xml
  • setupact.log
  • setuperr.log

These files contain errors and warnings encountered during disk validation and conversion. Information in these files can be helpful in diagnosing problems with the tool. The setupact.log and setuperr.log files will have the most detailed information about disk layouts, processes, and other information pertaining to disk validation and conversion. Note: The setupact*.log files are different than the Windows Setup files that are found in the %Windir%Panther directory.

The default location for all these log files in Windows PE is %windir%.

Interactive help

To view a list of options available when using the tool, type mbr2gpt /?

The following text is displayed:

Return codes

MBR2GPT has the following associated return codes:

Return codeDescription
0Conversion completed successfully.
1Conversion was canceled by the user.
2Conversion failed due to an internal error.
3Conversion failed due to an initialization error.
4Conversion failed due to invalid command-line parameters.
5Conversion failed due to error reading the geometry and layout of the selected disk.
6Conversion failed because one or more volumes on the disk is encrypted.
7Conversion failed because the geometry and layout of the selected disk do not meet requirements.
8Conversion failed due to error while creating the EFI system partition.
9Conversion failed due to error installing boot files.
10Conversion failed due to error while applying GPT layout.
100Conversion to GPT layout succeeded, but some boot configuration data entries could not be restored.

Determining the partition type

You can type the following command at a Windows PowerShell prompt to display the disk number and partition type. Example output is also shown:

You can also view the partition type of a disk by opening the Disk Management tool, right-clicking the disk number, clicking Properties, and then clicking the Volumes tab. See the following example:

If Windows PowerShell and Disk Management are not available, such as when you are using Windows PE, you can determine the partition type at a command prompt with the DiskPart tool. To determine the partition style from a command line, type diskpart and then type list disk. See the following example:

In this example, Disk 0 is formatted with the MBR partition style, and Disk 1 is formatted using GPT.

Known issue

MBR2GPT.exe cannot run in Windows PE

When you start a Windows 10, version 1903-based computer in the Windows Preinstallation Environment (Windows PE), you encounter the following issues:

Issue 1 When you run the MBR2GPT.exe command, the process exits without converting the drive.

Issue 2 When you manually run the MBR2GPT.exe command in a Command Prompt window, there is no output from the tool.

Issue 3 When MBR2GPT.exe runs inside an imaging process such as a Microsoft Endpoint Manager task sequence, an MDT task sequence, or by using a script, you receive the following exit code: 0xC0000135/3221225781.

Cause

This issue occurs because in Windows 10, version 1903 and later versions, MBR2GPT.exe requires access to the ReAgent.dll file. However, this dll file and its associated libraries are currently not included in the Windows PE boot image for Windows 10, version 1903 and later.

Workaround

To fix this issue, mount the Windows PE image (WIM), copy the missing file from the Windows 10, version 1903 Assessment and Development Kit (ADK) source, and then commit the changes to the WIM. To do this, follow these steps:

  1. Mount the Windows PE WIM to a path (for example, C:WinPE_Mount). For more information about how to mount WIM files, see Mount an image.

  2. Copy the ReAgent files and the ReAgent localization files from the Window 10, version 1903 ADK source folder to the mounted WIM.

    For example, if the ADK is installed to the default location of C:Program Files (x86)Windows Kits10 and the Windows PE image is mounted to C:WinPE_Mount, run the following commands from an elevated Command Prompt window:

    Note

    You can access the ReAgent files if you have installed the User State Migration Tool (USMT) as a feature while installing Windows Assessment and Deployment Kit.

    Command 1:

    This command copies three files:

    • ReAgent.admx
    • ReAgent.dll
    • ReAgent.xml

    Command 2:

    This command copies two files:

    • ReAgent.adml
    • ReAgent.dll.mui

    Note

    If you aren't using an English version of Windows, replace 'En-Us' in the path with the appropriate string that represents the system language.

  3. After you copy all the files, commit the changes and unmount the Windows PE WIM. MBR2GPT.exe now functions as expected in Windows PE. For information about how to unmount WIM files while committing changes, see Unmounting an image.

Related topics

Windows 10 Enterprise system requirements
Windows 10 Specifications
Windows 10 IT pro forums

A hard disk is a sealed unit containing a number of platters in a stack. Hard disks may be mounted in a horizontal or a vertical position. In this description, the hard drive is mounted horizontally.

Electromagnetic read/write heads are positioned above and below each platter. As the platters spin, the drive heads move in toward the center surface and out toward the edge. In this way, the drive heads can reach the entire surface of each platter. Sitesucker 3 1.

Making Tracks

On a hard disk, data is stored in thin, concentric bands. A drive head, while in one position can read or write a circular ring, or band called a track. There can be more than a thousand tracks on a 3.5-inch hard disk. Sections within each track are called sectors. A sector is the smallest physical storage unit on a disk, and is almost always 512 bytes (0.5 kB) in size.

The figure below shows a hard disk with two platters.

Parts of a Hard Drive

The structure of older hard drives (i.e. prior to Windows 95) will refer to a cylinder/ head/ sector notation. A cylinder is formed while all drive heads are in the same position on the disk.

The tracks, stacked on top of each other form a cylinder. This scheme is slowly being eliminated with modern hard drives. All new disks use a translation factor to make their actual hardware layout appear continuous, as this is the way that operating systems from Windows 95 onward like to work.

To the operating system of a computer, tracks are logical rather than physical in structure, and are established when the disk is low-level formatted. Tracks are numbered, starting at 0 (the outermost edge of the disk), and going up to the highest numbered track, typically 1023, (close to the center). Similarly, there are 1,024 cylinders (numbered from 0 to 1023) on a hard disk.

The stack of platters rotate at a constant speed. The drive head, while positioned close to the center of the disk reads from a surface that is passing by more slowly than the surface at the outer edges of the disk.

To compensate for this physical difference, tracks near the outside of the disk are less-densely populated with data than the tracks near the center of the disk. The result of the different data density is that the same amount of data can be read over the same period of time, from any drive head position.

The disk space is filled with data according to a standard plan. One side of one platter contains space reserved for hardware track-positioning information and is not available to the operating system. Thus, a disk assembly containing two platters has three sides available for data. Track-positioning data is written to the disk during assembly at the factory. The system disk controller reads this data to place the drive heads in the correct sector position.

Sectors and Clusters

A sector, being the smallest physical storage unit on the disk, is almost always 512 bytes in size because 512 is a power of 2 (2 to the power of 9). The number 2 is used because there are two states in the most basic of computer languages — on and off.

Each disk sector is labelled using the factory track-positioning data. Sector identification data is written to the area immediately before the contents of the sector and identifies the starting address of the sector.

The optimal method of storing a file on a disk is in a contiguous series, i.e. all data in a stream stored end-to-end in a single line. As many files are larger than 512 bytes, it is up to the file system to allocate sectors to store the file's data. For example, if the file size is 800 bytes, two 512 k sectors are allocated for the file.

A cluster can consist of one or more consecutive sectors. The number of sectors is always an exponent of 2. A cluster could consist of 1 sector (2^0), or, more frequently, 8 sectors (2^3). The only odd number a of sectors a cluster could consist of is 1. It could not be 5 sectors or an even number that is not an exponent of 2. It would not be 10 sectors, but could be 8 or 16 sectors.

Disk Map 2 404

They are called clusters because the space is reserved for the data contents. This process protects the stored data from being over-written. Later, if data is appended to the file and its size grows to 1600 bytes, another two clusters are allocated, storing the entire file within four clusters.

If contiguous clusters are not available (clusters that are adjacent to each other on the disk), the second two clusters may be written elsewhere on the same disk or within the same cylinder or on a different cylinder — wherever the file system finds two sectors available.

A file stored in this non-contiguous manner is considered to be fragmented. Fragmentation can slow down system performance if the file system must direct the drive heads to several different addresses to find all the data in the file you want to read. The extra time for the heads to travel to a number of addresses causes a delay before the entire file is retrieved.

Cluster size can be changed to optimize file storage. A larger cluster size reduces the potential for fragmentation, but increases the likelihood that clusters will have unused space. Using clusters larger than one sector reduces fragmentation, and reduces the amount of disk space needed to store the information about the used and unused areas on the disk.

Most disks used in personal computers today rotate at a constant angular velocity. The tracks near the outside of the disk are less densely populated with data than the tracks near the center of the disk. Thus, a fixed amount of data can be read in a constant period of time, even though the speed of the disk surface is faster on the tracks located further away from the center of the disk.

Modern disks reserve one side of one platter for track positioning information, which is written to the disk at the factory during disk assembly.

It is not available to the operating system. The disk controller uses this information to fine tune the head locations when the heads move to another location on the disk. When a side contains the track position information, that side cannot be used for data. Thus, a disk assembly containing two platters has three sides that are available for data.





broken image