Sei sulla pagina 1di 4

MBR ~~~ MBR.EXE is a utility intended to complement other TeraByte Unlimited products. MBR.

EXE allows you to manipulate a drive's master boot record (MBR). For example, MBR.EXE is capable of deleting all the partitions in a MBR, zeroing out a MBR, installing a standard MBR, and more. Installation: ~~~~~~~~~~~~~ Simply copy the program file to a directory on your hard drive, or to a bootable floppy diskette. MBR.EXE can be run from a command prompt, or from a batch file. Usage (mode 1 of 2): ~~~~~~~~~~~~~~~~~~~~ mbr hdnum [/RESET] [/ZERO] [/DEL] [/INSTALL] [/REBOOT] hdnum /RESET /ZERO /DEL /INSTALL Hard drive number whose MBR will be acted on (0-15). Used in combination with MBR code installed with SELM below. Set the entire MBR to zero (deletes all MBR partitions). Delete all partitions in MBR. Install MBR code using the follow addtional parameters: [STD] [SEL to fkey "msg"] [SELM to fkey "msg" fsid fsidhid] STD W7 SEL SELM Install standard MBR code. Install Windows 7 MBR code. Install MBR code that will display 'msg' and boot a hidden FAT/FAT32 partition if 'fkey' is pressed within 'to' seconds. The ondisk MBR is not modified. Install MBR code that will display 'msg' and boot a partition with a file system id of 'fsidhid' if 'fkey' is pressed within 'to' seconds. The MBR is modifed so that the partition is marked active and the file system is changed to 'fsid'. To reset the MBR back to the prior settings, use the /RESET switch before modifying the MBR again. Reboot the computer after the selected action is carried out.

/REBOOT

Additional usage notes: ~~~~~~~~~~~~~~~~~~~~~~~ * If the /INSTALL SEL or /INSTALL SELM command parameters are to be used, there must be one and only one partition available that matches. For example, the /INSTALL SEL command parameters cause a hidden FAT/FAT32 partition to be booted from, if the defined F-key is pressed. If there is more than one hidden FAT/FAT32 partition, however, the F-key defined by the /INSTALL SEL command parameters will not work. * If the /INSTALL SELM command parameters are used, the /RESET command should

be run when the alternate partition is booted from. This will reset the MBR to its previous configuration. Examples of use: ~~~~~~~~~~~~~~~~ mbr 1 /zero MBR.EXE will write zeros to the MBR of hard drive 1. Note: Hard drive 1 is the SECOND hard drive, since these numbers start at 0. mbr 2 /del MBR.EXE will delete each partition in the MBR of hard drive 2. mbr 2 /del /reboot Same as above, except that the system will reboot immediately after MBR.EXE performs the requested action. mbr 0 /install std MBR.EXE will install a standard MBR to hard drive 0. mbr 0 /install sel 5 12 "Press F12 to boot the recovery partition" MBR.EXE will install a MBR to hard drive 0. The MBR will display the message "Press F12 to boot the recovery partition" for 5 seconds, and the F12 key will cause a hidden FAT/FAT32 to be selected for booting. mbr 0 /install selm 10 9 "Press F9 for recovery" 0xC 0xDB MBR.EXE will install a MBR to hard drive 0. The MBR will display the message "Press F9 to boot the recovery partition" for 10 seconds. If the F9 key is pressed within 10 seconds, it will cause a partition with the file system ID 0xDB to be booted from. The MBR will then be modified to mark the new boot partition active, and the file system ID of it will be changed to 0xC. Once booted in the partition whose file system ID was originally 0xDB, the command line "mbr 0 /reset" should be run, in order to set the MBR back to the state it was in before the file system ID and active partition values were changed. Usage (mode 2 of 2): ~~~~~~~~~~~~~~~~~~~~ mbr hdnum entry [/ISACT] [/DEL] [/[U]H] [/A] [/SET id] [/ISFSID id] [/REBOOT] hdnum entry /ISACT /DEL Hard drive number whose MBR will be acted on (0-15). MBR entry number (0-3). Returns ERRORLEVEL 1 if the entry (zero based) is marked active. Delete the entry.

/[U]H /A /SET /ISFSID /REBOOT

Unhide or Hide the FAT/FAT32/NTFS/HPFS entry. Set the entry active. Set the file system id of the entry. Returns ERRORLEVEL 1 if the entry file system id matches id Reboot the computer after the selected action is carried out.

Examples of use: ~~~~~~~~~~~~~~~~ mbr 0 2 /isact MBR.EXE will set ErrorLevel to 1 if MBR entry 2 on hard drive 0 is marked active: @echo off mbr 0 2 /isact if errorlevel 1 goto label mbr 0 2 /isfsid 0xC MBR.EXE will set ErrorLevel to 1 if MBR entry 2 on hard drive 0 has a file system ID of 0xC: @echo off mbr 0 2 /isfsid 0xC if errorlevel 1 goto label mbr 2 1 /del MBR.EXE will delete MBR entry 1 on hard drive 2. mbr 1 0 /h mbr 1 0 /u The command lines above will, respectively: - Instruct MBR.EXE to hide MBR entry 0 on hard drive 1. - Instruct MBR.EXE to unhide MBR entry 0 on hard drive 1. mbr 0 1 /a MBR.EXE will set MBR entry 1 on hard drive 0 active. mbr 0 1 /a /reboot Same as above, except that the system will reboot immediately after MBR.EXE performs the requested action. mbr 1 1 /set 0xD MBR.EXE will set the file system ID of MBR entry 1 on hard drive 1 to 0xD. License

~~~~~~~ Please refer to the LICENSE.TXT file included with the zip archive.

Potrebbero piacerti anche