0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi: OS の複製

Posted at

OS の複製というのは、SDカードの複製になります。

img ファイルへの変換

sudo dd if=/dev/sda of=raspi_backup.img bs=4M status=progress
sync

img ファイルの縮小

pishrink.sh を使います。

pishrink.sh のダウンロード

wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh

pishrink.sh を実行

./pishrink.sh raspi_backup.img

実行前のサイズ

15931539456

実行後のサイズ

7891841536

SD カードへの書き込み

rpi-imager を使います。
host 名や、WiFi の設定を変更できます。

Use custom を選びます。

image.png

設定を編集する

image.png

ホスト名
Wi-Fi 設定などが変更できます。
image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?