RSS

MBR reparieren ohne Windows-CD

Wenn man sich den MBR zerschossen hat, weil z.B. eine Linux-Deinstallation den Bootloader Grub dort hinterlassen hat, dann hilft unter XP normalerweise der Start von der XP-CD, Aufruf der Reparaturkonsole und ein beherztes “fixmbr“. Oder auch ein “fixboot c:”

Blöd ist, wenn die CD das nicht kann - sei es, weil man nur eine Recorvery-CD hat, oder man erst gar nicht von der Installations-CD booten kann, weil sie z.B. beschädigt ist.

Für solche Fälle sollte man immer einen “Bart” haben - sprich eine WindowsPE-CD, die man mit Barts Lagerweij´s PE-Builder erstellt hat. Normalerweise gibt´s dort zwar auch kein fixmbr, aber man sollte sich bei der Erstellung das Tool “MbrFix.exe” darauf kopieren:

Tool to fix or create Master Boot Record (MBR) on harddisks, for instance when using Windows PE.
With an x64-edition as well as the 32-bit edition.
Now with experimental support for Windows Vista MBR!
The new version has some new, cool features, like creating DOS boot sectors, changing partition types, etc!

Hat mich auch gehilft ;-)

Die Kommandozeilenoptionen sprechen eine deutliche Sprache:

Usage:
    MbrFix /drive <num> {/partition <part>} <command> { /yes } { /byte }
Requirements:

The program is made for Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista and Windows PE. Both 32-bit and 64-bit x64 editions are supported.

You need administrative privileges to make it work!

Purpose:

Perform several Master Boot Record (MBR) tasks, like backing up, restoring, fixing the boot code in the MBR, etc. The utility should not be used for GUID Partition Table (GPT) disks. The utility now, by popular demand, also come in a x64-version running unde x64-editions of Windows and PE.

Commands:
    MbrFix /drive <num> driveinfo              Display drive information
    MbrFix /drive <num> drivesize              Returns drive size in MB as return value
    MbrFix /drive <num> listpartitions         Display partition information
    MbrFix /drive <num> savembr <file>         Save MBR and partitions to file
    MbrFix /drive <num> restorembr <file>      Restore MBR and partitions from file
    MbrFix /drive <num> fixmbr {/vista}        Update MBR code to W2K/XP/2003 or Vista
    MbrFix /drive <num> clean                  Delete all partitions in MBR
    MbrFix /drive <num> readsignature {/byte}  Read disk signature from MBR
    MbrFix /drive <num> writesignature <hex>   Write disk signature to MBR
    MbrFix /drive <num> generatesignature      Generate disk signature in MBR
    MbrFix /drive <num> readstate              Read state from byte 0x1b2 in MBR
    MbrFix /drive <num> writestate <state>     Write state to byte 0x1b2 in MBR
    MbrFix /drive <num> readdrive <startsector> <sectorcount> <file>
                                               Save sectors from drive to file
    MbrFix /drive <num> /partition <part> fixbootsector <os>
                                               Update Boot code in boot sector
    MbrFix /drive <num> /partition <part> getpartitiontype
                                               Get partition type
    MbrFix /drive <num> /partition <part> setpartitiontype <typenum>
                                               Set partition type
    MbrFix /drive <num> /partition <part> setactivepartition
                                               Set active partition
    MbrFix /drive <num> getactivepartition     Get active partition
    MbrFix volumeinformation driveletter       Get volume information for partition
    MbrFix flush {driveletter(s)}              Flush files to disk for partition
    MbrFix listpartitiontypes                  List partition types

Drive numbering <num> starts on 0.

Partition numbering <part> starts on 1.

Commands restorembr, fixmbr, generatesignature, writestate, clean, setactivepartition and fixbootsector 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. Writesignature requires the new signature to be specified as 8 hex digits.

If /vista is used with the fixmbr command, a Windows Vista MBR is written instead of a Win2000/XP/2003 MBR. The Vista MBR should work with the other OS’es as well.

When fixing boot sector of a chosen partition, the wanted OS version must be specified. For now, the only valid choices are WIN98, DOS5 and DOS6.

The purpose of the fixbootsector command is to insert boot code for loading DOS from a partition created and formatted as FAT using the Windows 2000/XP/2003 tools, since those tools inserts boot code for loading NTLDR.

Hinterlasse einen Kommentar

Deine E-Mail wird niemals veröffentlicht. Erforderliche Felder sind als * markiert.

*
*
  • Zufälliger Beitrag:

  • Vor einem Jahr

  • Archiv

  • Anmelden/Registrieren