BootPrep Commands
To use the BootPrep commands, type the following syntax in a command prompt.
BootPrep [/dDrive] [/mMBRBackupFileName] [/bBackupFileName] [/y] [/r] [/iExternalDataFile]
Parameters
- /dDrive
Uppercase drive letter without the colon (:), for example, /dC. The default is the C drive. - /mMBRBackupFileName
Name of file for MBR sector backup, for example, /mmbr.old. If /m is specified with no file name, no backup is created, which is the default behavior. - /bBackupFileName
Name of file for PARTITION BOOT sector backup, for example, /bbootrec.old. If /b is specified with no file name, no backup is created. The default file is Bootrec.old. - /iExternalDataFile
Name of file containing data for the new PARTITION BOOT sector. The default is to use internal data. - /r
Read-only mode. Save output for MBR and BOOT sectors to their backup file locations. - /y
Answers "Yes" to all questions. Use this parameter with caution.
Example
The following code sample shows a typical syntax.
A:\>BootPrep
This example copies the PARTITION BOOT sector of the C drive to A:\Bootrec.old, and then replaces it with a new PARTITION BOOT sector using internal data. The new boot sector is in read/write mode.
See Also
BootPrep | BootPrep Advanced Commands | CompactFlash
Last updated on Wednesday, October 18, 2006
© 2006 Microsoft Corporation. All rights reserved.