|
|
本帖最后由 sairen139 于 2021-3-13 23:15 编辑
dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress] 其中: bs代表镜像时缓冲块的大小,通常建议设得大一点,比如1M、10M等(单位可用:c表示字节,w表示双字,d表示4字节,q表示8字节,k表示1024字节,M表示k*k字节,G表示k*k*k字节),默认为512字节 count表示镜像的块总数 if与of分别表示镜像源与镜像目标的设备文件路径 seek表示在备份时对of后面的部分也就是目标文件跳过多少块再开始写 skip表示备份时对if后面的部分也就是原文件跳过多少块再开始备份 --size表示对源设备的读取进行大小校验,以避免IO死循环等错误 --list表示列出可利用的磁盘(分区)设备文件,在if与of中指定的这是这些设备名称 --progress表示显示镜像进度[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]全选代码[/url]
[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]复制[/url]
对软盘做镜像:dd if=\\.\a: of=c:\temp\disk1.img bs=1440k[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]全选代码[/url]
[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]复制[/url]
先用 dd --list,查到要镜像的设备路径为:\\?\device\harddisk1\dr5[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]全选代码[/url]
[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em][url=]复制[/url]
E:\>dd if=\\?\device\harddisk1\dr5 of=r:\aa.img --size
rawwrite dd for windows version 0.5.Written by John Newbigin <jn@it.swin.edu.au>This program is covered by the GPL. See copying.txt for details250880+0 records in250880+0 records out
|
|