
Unzip the image...
Windows XP Professional Utility: Setup Disks for Floppy Boot Install 
| Article ID | : | 305595 |
| Last Review | : | May 7, 2007 |
| Revision | : | 1.6 |
| • | A blank floppy disk. |
| • | The Windows XP CD-ROM or an operational Windows XP-based computer. |
| 1. | Format a floppy disk by using the Windows XP format utility. For example, with the floppy disk in the floppy disk drive, type format a: at a command prompt, and then press ENTER. |
| 2. | Copy the Ntldr and the Ntdetect.com files from the I386 folder on the Windows XP Setup CD-ROM, Windows XP Setup floppy disk, or from a computer that is running the same version of Windows XP as the computer that you want to access with the boot floppy. |
| 3. | Create a Boot.ini file (or copy one from a computer that is running Windows XP), and then modify it to match the computer that you are trying to access. The following example works for a single-partition IDE drive with Windows XP installed in the \Windows folder, but the exact value in the [operating systems] section depends on the configuration of the Windows XP computer that you are trying to access: [boot loader]If your computer boots from a SCSI hard drive, you may need to replace the multi(0) entry with scsi(0). If you are using scsi(x) in the Boot.ini file, copy the correct device driver for the SCSI controller in use on the computer to the root of the Setup disk, and then rename it Ntbootdd.sys. Change the disk(0) number to represent the SCSI-ID of the hard drive you want to boot to. If you are using multi(x) in the Boot.ini file, you do not need to do this. |
| 4. | Start your computer by using the floppy disk, and then log on to Windows XP. |
| 1. | Refer to the article Q310994 for directions to download and create the Windows XP Setup disks by using a computer that is running Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows 98 Second Edition (SE), or Microsoft Windows Millennium Edition (Me): 310994 (http://support.microsoft.com/kb/310994/EN-US/) Obtaining Windows XP Setup Boot Disks |
| 2. | Delete all the files from the newly created Setup disk 1. |
| 3. | Copy the Ntdetect.com and the Ntldr files from the I386 folder on the Windows XP CD-ROM to the new disk. |
| 4. | Rename the Ntldr file to Setupldr.bin. |
| 5. | Create a Boot.ini file. The following example works for a single-partition IDE drive with Windows XP installed in the \Windows folder, but the exact value in the [operating systems] section depends on the configuration of the Windows XP computer that you want to start: [boot loader]If your computer starts from a SCSI hard drive, you may need to replace the multi(0) entry with scsi(0). If you are using scsi(x) in the Boot.ini file, copy the correct device driver for the SCSI controller in use on the computer to the root of the setup disk, and then rename it Ntbootdd.sys. Change the disk(0) number to represent the SCSI-ID of the hard drive you want to start to. If you are using multi(x) in the Boot.ini file, you do not need to do this. |
| 6. | Start your computer by using the floppy disk, and then log on to Windows XP. |
| • | Damaged boot sector. |
| • | Damaged master boot record (MBR). |
| • | Virus infections. |
| • | Missing or damaged Ntldr or Ntdetect.com files. |
| • | Incorrect Ntbootdd.sys driver. |
| • | To boot from the shadow of a broken mirror. Please note that you may need to modify the Boot.ini file to do this. |
| • | Incorrect or damaged device drivers that are installed in the System folder. |
| • | Boot issues that occur after you see the Windows XP startup (Osloader) screen. |
| • | Microsoft Windows XP Home Edition |
| • | Microsoft Windows XP Professional |
Keywords: | kbacwsurvey kbenv kbhowto kbhowtomaster KB305595 |
Unzip the image to get the file.MbrFix.exe
Copyright (C) 2004 Systemintegrasjon AS
MbrFix /drive{ /yes } { /byte }
The program is made for Windows NT, Windows 2000, Windows XP, Windows Server 2003 and Windows PE.
You need administrative privileges to make it work!
MbrFix /drivedriveinfo Display drive information
MbrFix /drivelistpartitions Display partition information
MbrFix /drivesavembr Save MBR and partitions to file
MbrFix /driverestorembr Restore MBR and partitions from file
MbrFix /drivefixmbr Update MBR code to W2K/XP/2003
MbrFix /driveclean Delete partitions in MBR
MbrFix /drivereadsignature {/byte} Read disk signature from MBR
MbrFix /drivegeneratesignature Generate disk signature in MBR
MbrFix /drivereadstate Read state from byte 0x1b0 in MBR
MbrFix /drivewritestate Write state to byte 0x1b0 in MBR
Drive numbering
Commands restorembr, fixmbr, generatesignature, writestate and clean will ask for confirmation unless /yes is included.
If the /byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD.
The program reports an errorlevel as 0 for OK and other values for errors.
The exception to this is the ReadState command which returns the state as a return code as well as printing to stdout. Any errors for this command are returned as negative values because of this.
Well, I was testing Windows Embedded XP using a virtual PC, and was booting Windows PE from a CD-ROM to partition a brand new harddisk (quite cheap, since it was virtual !). Using the diskpart.exe utility (found in Windows XP and Windows Server 2003, available as a download for Windows 2000), I created the partition, made it Active, assigned it a drive letter. I then used the format.exe utility to format it to NTFS (format C: /fs:ntfs).
DISKPART> detail part
Partition 1
Type: 07
Hidden: No
Active: Yes
Volume ### Letter Lable Fs Type Size Status Info.
---------- --- ----------- ----- ---------- ------- --------- --------
* Volume 1 C WinXP NTFS Partition 149 MB OK System
I then mounted a network drive to my physical computer and copied the boot.ini, ntldr, ntdetect.com, windows folder, program files folder, etc. from the Windows Embedded XP image directory. Everything to make it boot.
Well everything should be OK, so I rebooted the (virtual) computer and expected it to boot up Windows Embedded XP.
But not so! It just sat there with a nice black screen. No error message at all.
Some investigation later on the Internet, I found this very informative page by Daniel B. Sedory: http://www.geocities.com/thestarman3/asm/mbr/MBR_in_detail.htm, containing a wealth of MBR info. The info on one of the pages states that the MBR code is installed on the drive when the Windows setup program runs and no MBR code exists already. Hmm.., seemed to be right on the mark.
I searched further on the Internet, but the only utilities I found which could install MBR code was for other operating systems, like FDISK.exe /MBR for DOS (but I wouldn't boot to DOS...) or the fixmbr command in the Windows 2000/XP/2003 Recovery Console. Didn't want that either. Wanted something to work on a Windows 32 bit platform, to be able to fix the problem in other cases when using Win PE and just plain copying in the operating system files. So, then I was left to make the utility myself!
Problem solved: After booting up Windows PE from CD again, the command MBRFix /drive 0 fixmbr /yes solved it all. Embedded XP booted like a charm.
C:\> MbrFix /drive 0 listpartitions
# Boot Size (MB) Type
1 Yes 151001 6 DOS 3.31+ 16-bit FAT (over 32M)
2 1623 12 WIN95 OSR2 32-bit FAT, LBA-mapped
3 0 0 None
4 0 0 None
C:\> MbrFix /drive 0 savembr Backup_MBR_0.bin
C:\> MbrFix /drive 0 restorembr Backup_MBR_0.bin
You are about to Restore MBR,
are you sure (Y/N)? Y
C:\> MbrFix /drive 0 fixmbr /yes
The commands readstate and writestate use a byte at offset 0x1b0 to store state. The commands are only useful in a scenario where you use Windows PE to roll out other MS operating systems, and you have no other place to store information about where you are in the installation process. This location in the MBR is unused as far as known.
Daniel B. Sedory, for his compilation of information on http://www.geocities.com/thestarman3/asm/mbr/MBR_in_detail.htm and for his feedback on the program.
The program is delivered AS-IS, that is without any form of guarantee. You may freely use the program for any legal purpose, and you may freely distribute it as long as this file is distributed along the program file.
Incorrect use of this program may cause loss of all data on your disk-drives. All use of this program is at the risk of the user. Systemintegrasjon AS does not accept any liability for any damage the program might cause.
If you do not accept these terms, you must delete the program, MbrFix.exe, at once!
Developed by Kåre Smith, 29. november 2004
http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.php
| Article ID | : | 314503 |
| Last Review | : | May 7, 2007 |
| Revision | : | 2.3 |
| • | Master boot record |
| • | Partition tables |
| • | Boot sector |
| • | NTLDR file |
| 1. | Create a Windows XP boot disk to start the computer. For additional information about how to create a Windows XP boot disk, click the following article number to view the article in the Microsoft Knowledge Base: 305595 (http://support.microsoft.com/kb/305595/) HOW TO: Create a boot disk for an NTFS or FAT Partition with Windows XP If you can start the computer from the boot disk without receiving an error message, the damage is limited to the master boot record, the boot sector, or the NTLDR file. After Windows XP is running, immediately back up all data before you try to fix the boot sector.Use Disk Management to view the partition information and to verify that the disk partition (or partitions) is correct. To use Disk Management, follow these steps:
If you do not have a current backup copy of the data on the computer, contact a computer specialist to determine the best method of data recovery and configuration. | ||||
| 2. | Run a current virus scanning program to verify that no virus is present. | ||||
| 3. | Repair the master boot record by using the FIXMBR command from the Windows XP Recovery Console. For additional information about how to use the Recovery Console, click the following article number to view the article in the Microsoft Knowledge Base: 307654 (http://support.microsoft.com/kb/307654/) How to install and use the Recovery Console in Windows XP Note For additional information about an error message that you may receive when you use the FIXMBR command, click the following article number to view the article in the Microsoft Knowledge Base: 266745 (http://support.microsoft.com/kb/266745/) Error message when you run fixmbr command Warning If your computer is infected with a virus and you use the FIXMBR command, you may not be able to start the computer. Before you use this command, make sure that the computer is not infected with a virus. | ||||
| 4. | If the primary boot partition is a FAT partition, use the FIXBOOT command from the Windows XP Recovery Console to write a new boot sector on the system partition, and then use the FIXMBR command to repair the master boot record. |
| 1. | Use the Windows XP CD-ROM to start your computer. On the Welcome to Setup screen, press ENTER to set up Windows XP. |
| 2. | Press F8 to agree to the license agreement. |
| 3. | Use the ARROW keys to select the Windows XP installation that you want to repair, and then press R. Windows XP Setup repairs the installation files, Windows XP automatically restarts, and then the Setup program finishes the repair of your Windows XP installation. |
| 4. | Follow the remaining steps to set up Windows. Note You must have your 25-character Product Key to complete these steps. |
| • | Microsoft Windows XP Home Edition |
| • | Microsoft Windows XP Professional |
Keywords: | kbvirus kbenv kbfaq kbprb kbusage KB314503 |