0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Piのイメージをバックアップ&リストア(MacOS)

Last updated at Posted at 2019-10-10

対象となるDiskを特定

diskutil list

backup

diskutil umountDisk /dev/diskN #Nのところは、diskutil listで表示確認
sudo dd if=/dev/disk3 of=newfile.img bs=32m

bs(block size) は、4mでも速度に差があまりないかも。

restore

sudo dd of=/dev/rdiskN if=newfile.img bs=32m

of=/dev/diskN だとやたら時間がかかり終わる気配がなかった。
of=/dev/rdiskN にするとはやい。
PCの空き容量が気になる場合は圧縮するのが良いかもだが、割愛。。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?