请楼主再看我建议增加的参数(有补充): /mbr /r /m /n
/mbr 原来就有,只恢复标准的MBR (据称引用的是XP的,兼容性好)
/r 文件名 恢复指定文件 (不加载 /m /n 的情况下 ,默认为 1~432字节 ,即 前27行 见下图的红色区域)
/m 序数 自定义恢复字节范围开始字节,限制1~446 ,m - n不能为负数
/n 序数 自定义恢复字节范围结尾字节,限制1~446,m - n不能为负数
图例:
1、红色部分:MBR,理论上最多占用446个字节,本例实际占用420个字节,为了打出一些富裕,需要432个字节(每行16字节*27行,红色部分)。
2、蓝色部分:本来应该是MBR的一部分,但实践证明这4个字节不要覆盖,这是微软磁盘数字签名区(防盗版用?不得而知),清0无法启动,改成其它值会在WIN下报“发现新硬件”,总之不要动就OK了。
3、黄色部分:硬盘分区表
4、橙色部分:结束标志
示例:
1, 恢复母机产生的a.mbr到本机 (用于恢复通常情况的MBR,即小于432字节的MBR)
dsptw 0 /mbr /r a.mbr 或
dsptw 0 /mbr /r a.mbr /m 1 /n 432
2, 仅恢复母机产生的a.mbr里的“微软磁盘数字签名”到本机 (用于恢复万能GHOSTXP防蓝屏死机等特殊用途)
dsptw 0 /mbr /r a.mbr /m 441 /n 444
楼主:由于/m /n不急于使用且编程可能较困难可暂时不必开发(可在今后考虑为字节级的对拷、备份和恢复单独设置一个参数,不仅限于MBR,对任何扇区的任何一小段字符集都可以操作,就像 /D 参数一样,使用start bytes offset等参数,思考成熟后再推出)。
/R 是我急需的,最好这两天完成,谢谢。
Last edited by gmy on 2008-5-7 at 09:12 PM ]
Please ask the landlord to take a look at the parameters I suggest adding (with supplements): /mbr /r /m /n
/mbr was originally there, only restores the standard MBR (it is said to refer to XP's, which has good compatibility)
/r file name restores the specified file (when not loading /m /n, it defaults to 1~432 bytes, that is, the first 27 lines, see the red area in the picture below)
/m ordinal custom recovery byte range start byte, limited to 1~446, m - n cannot be negative
/n ordinal custom recovery byte range end byte, limited to 1~446, m - n cannot be negative
Legend:
1. Red part: MBR, theoretically occupies up to 446 bytes. In this example, it actually occupies 420 bytes. To leave some room, 432 bytes are needed (16 bytes per line * 27 lines, red part).
2. Blue part: Originally should be part of MBR, but practice proves that these 4 bytes should not be overwritten. This is the Microsoft disk digital signature area (for anti-piracy? Unknown). Clearing it cannot boot, changing it to other values will report "found new hardware" under WIN. In short, just don't touch it.
3. Yellow part: hard disk partition table
4. Orange part: end mark
Example:
1. Restore the a.mbr generated by the mother machine to the local machine (used to restore the MBR in normal cases, that is, the MBR smaller than 432 bytes)
dsptw 0 /mbr /r a.mbr or
dsptw 0 /mbr /r a.mbr /m 1 /n 432
2. Only restore the "Microsoft disk digital signature" in the a.mbr generated by the mother machine to the local machine (used for special purposes such as restoring the universal GHOSTXP anti-blue screen死机)
dsptw 0 /mbr /r a.mbr /m 441 /n 444
Landlord: Since /m /n is not urgent to use and programming may be more difficult, it can be temporarily not developed (it can be considered in the future to set a parameter for byte-level copying, backup and restoration separately, not limited to MBR, can operate any small segment of character set of any sector, just like the /D parameter, use parameters such as start bytes offset, and launch it after mature consideration).
/R is what I urgently need, it is best to complete it in these two days, thank you.
Last edited by gmy on 2008-5-7 at 09:12 PM ]