デバイス名を調べる
$ cat /proc/partitions
major minor #blocks name win-mounts
...
8 16 15558144 sdb
8 17 15554048 sdb1 X:\
DDコマンドを使用する
パーティション単位 "sdb1"
# バックアップ
dd if=/dev/sdb1 of=sdb1.dd
# リカバリ
dd of=/dev/sdb1 if=sdb1.dd
ディスク全体 "sdb"
# バックアップ
$ dd if=/dev/sdb of=sdb.dd
dd: '/dev/sdb' を開けませんでした: Permission denied
Cygwin環境では管理者権限が必要。
# バックアップ
cygstart --action=runas dd if=/dev/sdb of=sdb.dd status=progress
# リカバリ
cygstart --action=runas dd of=/dev/sdb if=sdb.dd status=progress