LoginSignup
0
0

More than 5 years have passed since last update.

SDカードやUSBメモリのバックアップ・リカバリ

Last updated at Posted at 2018-12-29

デバイス名を調べる

$ 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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0