BSD原始磁盘
BSD通常具有2种磁盘设备类型:bufferend和unbuffered(原始)。从hdutil(1)
手册页:
DEVICE SPECIAL FILES
Since any /dev entry can be treated as a raw disk image, it is worth
noting which devices can be accessed when and how. /dev/rdisk nodes
are character-special devices, but are "raw" in the BSD sense and
force block-aligned I/O. They are closer to the physical disk than
the buffer cache. /dev/disk nodes, on the other hand, are buffered
block-special devices and are used primarily by the kernel's
filesystem code.
It is not possible to read from a /dev/disk node while a filesystem
is mounted from it, ...
由于第二段,必须卸载磁盘才能dd
在“原始模式”下使用它。
dd块大小
从dd(1)
手册页:
Where sizes are specified, a decimal, octal, or hexadecimal number of bytes
is expected. If the number ends with a ``b'', ``k'', ``m'', ``g'', or ``w'',
the number is multiplied by 512, 1024 (1K), 1048576 (1M), 1073741824 (1G) or
the number of bytes in an integer, respectively. Two or more numbers may be
separated by an ``x'' to indicate a product.
默认的块大小为512字节...
bs
参数的情况下也一样慢。您dd
在Linux上是否有用于安装的别名(alias
在提示符下键入)?