출처 :http://mbrwizard.tripod.com/
MBRWiz is a command line tool designed to directly modify the MBR, with the capability to set partitions active for booting, delete or hide partitions, back up and restore copies of the MBR, as well as sort the partition entries.
Included in the download is a 32 bit version (MBRWiz.exe) for Windows NT/2K/XP/PE/2003, a 16 bit executable (MBRWizD.exe) for DOS and Win9x, as well as a version for Linux.
MBRWiz v1.53 has been released as Freeware software, by me, Roger Layton. I have designed and developed this software to directly modify the MBR which can (and possibly will) destroy partitions and data on the hard disk. I can take no responsibility for any loss of partition information or data loss by using this program.
Version 1.53 can be downloaded, as freeware,here
Note: I am currently working on version 2.0 with an added/modified feature set, including functionality to Repair the MBR, Write new disk signature, Change partition type, Copy sectors, and more. You can check out thenew stuff here
Please feel free to contact me with any questions, concerns, features, or bugs:software@bigr.net
Visit the Homepage athttp://mbr.bigr.net
Available Command Line Options
| |
/List | Display the partitions listed in the MBR, their order in the MBR, partition type, size, and whether active or hidden. ThePosfield indicates the order the partitions are laid out on disk, whileMBRndxshows them as they're listed in the MBR record. |
/Sort | It isn't uncommon for the partition entries in the MBR to be unsorted, meaning that their order in the MBR doesn't match the order on disk. This normally wasn't a problem until Windows NT/2K/XP came along with its new boot loader, and the requirement for each partition entry in the boot.ini to point to the actual partition number. This option will sort the entries in the MBR to match their order on disk. |
/IsSorted | Returns an ErrorLevel code based on the status of the partition entries: 0 = Sorted 1 = Not Sorted |
/Disk=# | Selects the disk to use for all operations. This switch is always processed first, verifying that all operations specified on the command line will use the disk specified here. If not specified,Disk 0will be used by default. All operations use the physical location of the partition on the disk (the first column in /list), while the MBRndx simply identifies the current position of the partition entry in the MBR. |
/Active=# | Sets the partition specified by # active for booting. If the partition is hidden it will unhide it before setting it active. No other partitions will be hidden, or otherwise changed by this command. DOS and Win9x do not properly recognize multiple visible primary partitions, so make certain you also hide remaining primary partitions if necessary. |
/InActive=# | Sets the partition specified by # in-active, therefore it will no longer be bootable. This option will not automatically set another partition active. An entry of * (asterisk) will cause all partitions to be set as inactive. |
/Hide=# | Hides the partition number specified by #. An entry of * (asterisk) will cause all partitions to be hidden |
/Unhide=# | Un-Hides the partition number specified by #. An entry of * (asterisk) will cause all partitions to be unhidden. |
/Del=# | Deletes the partition specified by #./Del=*removes all partitions on selected disk,Del=**removes all partitions on all disks |
/Wipe=# | Selecting an option of 1 will wipe the MBR clean, effectively removing all information from the first sector of the disk. An option of 2 will remove all information from the first (hidden) 63 sectors of the disk. |
/Save=filename | Saves the current MBR tofilename, where filename is a drive:\path combination to store the file. Substituting the wordSECTORfor filename will store the MBR in a hidden sector on the disk |
/Restore=filename | Reads an MBR file fromfilename, where filename is an existing path:\filename containing the backed up contents of the MBR. Substituting the wordSECTORfor filename will restore the MBR from the hidden sector on the disk,if it has been previously backed up. |
/ShowFile=filename | Show the partition structure from a backed up MBRfilenameorsector. |
/BootMenu | This option will list the available, bootable partitions, and allow the user to select one of them to set active. |
/Shutdown=# | An entry of 1 will force Windows to shutdown. An entry of 2 will force Windows to shutdown and reboot. This option may cause data loss if open programs contain unsaved data. NT/2K/XP/2003 version only. |
/Ignore | Allows the program to complete the specified operation if an error occurs. |
/Result | Displays the return code for visual verification of success/failure. |
/HideErrors | Hides the display of any errors that may occur. |
CommandFile | If no switches are specified on the command line, and a file by the name ofmbrwiz.optexists in the same folder as the executable, then the mbrwiz.opt file will be parsed for possible switches. Switches can be located on the same line, or dispersed across multiple lines. This option can be used when it's not possible to pass switches on the commandline. The following is an example option file to save the disk 1 mbr to hidden sector, then reboot the machine ---------------------------- /disk=1 /save=sector /shutdown=2 ---------------------------- |
'Windows' 카테고리의 다른 글
Management & Instrumentation of Your own Application (0) | 2007.08.22 |
---|---|
VS2005 (VC2005) 배포 문제(?) (0) | 2007.04.28 |
Microsoft Platform SDK와 Visual C++ 2005 Express Edition 사용 (0) | 2007.04.26 |