2013年7月2日火曜日

[Windows]MbrFix(MBRのバックアップ取得)

MbrFixはマスターブートレコード(MBR)のバックアップ、復元、またコードの操作をしたりできるツールです。
定期的にバックアップして MBR が書き変わっていないかどうかチェックしたりするのに使っています。


ダウンロード

Sysint (www.sysint.no)というサイトから mbrfix.zip をダウンロードします。
Download を選択
mbrFix の DOWNLOAD を選択
※画面は2013.7.2のものです。

ダウンロードしたファイルを展開すると、3つのファイルが含まれています。
  • 64 ビット OS で動作するときに使うのが MbrFix64.exe
  • 32 ビット OS で動作するときに使うのが MbrFix.exe
  • MbrFix.htm がヘルプファイル。コマンドラインオプションの確認ができます。


MbrFix の実行

1個目の HDD の MBR をバックアップする MbrFix /drive 0 savembr Backup_MBR_0.bin
※ドライブ番号は 0 からです。

1個目の HDD の MBR をリストアする MbrFix /drive 0 restorembr Backup_MBR_0.bin

1個目の HDD の MBR を Windows7 のものに書き換える MbrFix /drive 0 fixmbr /win7

ドライブ情報を見る MbrFix.exe /drive 0 driveinfo
Drive 0
Cylinders = 60801
Tracks (heads) per cylinder = 255
Sectors per track = 63
Bytes per sector = 512
Disk size = 500105249280 (Bytes) = 465 (GB)

コマンドラインオプションを見るとドライブやパーティション情報を見たり、書き換えたりできるみたいです。
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|/win7}  Update MBR code to W2K/XP/2003, Vista or Win7
    MbrFix /drive <num> clean                  Delete all partitions on the selected disk
    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


Windows Tools のページに戻る

0 件のコメント:

コメントを投稿