Microsoft KB Archive/817708

= &quot;Setup Was Unable to Format the Drive&quot; error message appears during ASR restore =

Article ID: 817708

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows XP Professional x64 Edition
 * Microsoft Windows XP Professional for Itanium-based systems

-



SYMPTOMS
While you are performing an Automated System Recovery (ASR) restore on an Itanium computer (IA64), you may receive the following error message:

Setup was unable to format the drive

The ASR process formats one partition completely. ASR seems to format the second partition correctly, but then you receive the error message. At this point, you must restart the computer. But, because the operating system partition (the boot partition) has already been formatted, you cannot successfully restart the computer.



CAUSE
The first partition that is formatted is the partition where the operating system is. The second partition that is formatted is the Extensible Firmware Interface (EFI) System Partition, but the formatting process fails because the ASR.sif file that is on the ASR floppy disk has the wrong value listed for &quot;sectors per cluster.&quot;



RESOLUTION
The resolution that this article describes is a preventative measure. If you are in a situation where you must restore to gain access to the operating system again, see the &quot;Workaround&quot; section of this article.

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
No prerequisites are required.

Restart requirement
You must restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Service pack information
To resolve this problem, obtain the latest service pack for Windows XP. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

322389 How to obtain the latest Windows XP service pack

Prerequisites
To apply this hotfix, you must have Windows XP Service Pack 1 (SP1) installed on the computer.

Restart requirement
You must restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.



WORKAROUND
To work around this issue, correct the ASR.sif file so that you can start the ASR restore process on the computer.

This procedure uses an example ASR.sif file. The ASR.sif file that you use will look similar, but the numbers will be different. Put the ASR floppy disk that was created during the ASR backup process in another computer. Open the ASR.sif file in a text editor, such as Notepad. The relevant section of ASR.sif will be similar to the following:

[PARTITIONS.GPT]

1=1,0,2,,&quot;c12a7328-f81f-11d2-ba4b-00a0c93ec93b&quot;,&quot;0a575940-189b-01c3-92e0-3c772e43ac40&quot;,0x1,&quot;EFI system partition&quot;,0x06,63,706797,0x1000

2=1,1,0,,&quot;e3c9e316-0b5c-4db8-817d-f92df00215ae&quot;,&quot;a142f920-1af0-01c3-a1f4-04622fd5ec6d&quot;,0x0,&quot;Microsoft reserved partition&quot;,0x00,706860,257040,0x0

3=1,2,1,,&quot;ebd0a0a2-b9e5-4433-87c0-68b6b72699c7&quot;,&quot;b126f760-1af0-01c3-92e0-3c772e43ac40&quot;,0x0,&quot;Basic data partition&quot;,0x07,963900,20482875,0x1000

Note The lines in this example wrap for readability.

The only significant line is the EFI system partition line:

1=1,0,2,,&quot;c12a7328-f81f-11d2-ba4b-00a0c93ec93b&quot;,&quot;0a575940-189b-01c3-92e0-3c772e43ac40&quot;,0x1,&quot;EFI system partition&quot;,0x06,63,706797,0x1000

The EFI system partition is the partition that it is failing to format. You must know the size of this partition. Take the value 706797 (the second-last number on that line) and multiply it by 512. This equals 361,880,064. This means that the example system has an EFI system partition of about 361 MB. Compare this value to the following table:

      Drive size (logical volume)     FAT type   Sectors     Cluster size (decimal)     Cluster size (hexadecimal) -- 15 MB or less        12-bit       8           4096                      0x1000 16 MB - 127 MB       16-bit       4           2048                      0x800 128 MB - 255 MB      16-bit       8           4096                      0x1000 256 MB - 511 MB      16-bit      16           8192                      0x2000 512 MB - 1,023 MB    16-bit      32          16384                      0x4000 1,024 MB - 2,048 MB  16-bit      64          32768                      0x8000

This means that you must format this example partition with 8-KB clusters (8,192 bytes). However, the file says to format it as 4-KB clusters (4096 bytes) (the last number in the same line, 0x1000, equals 4,096 in decimal form). Therefore, you must change the 0x1000 to 0x2000 (the decimal equivalent of 0x2000 is 8,192).

The new version of the line is:

1=1,0,2,,&quot;c12a7328-f81f-11d2-ba4b-00a0c93ec93b&quot;,&quot;0a575940-189b-01c3-92e0-3c772e43ac40&quot;,0x1,&quot;EFI system partition&quot;,0x06,63,706797,0x2000

Save the file, and then start the ASR restore process with the modified ASR floppy disk. The process should now complete successfully.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

