#author("2017-07-23T22:28:17+09:00","default:nowsky","nowsky")
*Raspbian [#e88dd0e7]
-[[Raspbian:+https://www.raspberrypi.org/downloads/raspbian/]]

Raspberry Pi用としてメンテナンスされているDebian系ディストリビューションの一つ。
Debian系なのでAPT(apt-get)を利用してパッケージをインストールする事が出来る。
初期設定を簡素化する為にRaspbian特有のシェルスクリプトが準備されており、
Linux初心者でも楽に最低限のOS設定をする事が出来るようになっている。

~
*イメージバックアップ [#idb40e4e]
Raspberry PiではSDカードにOSをインストールする事を前提としている為、
ddコマンドによるイメージバックアップ・リストアが簡単に実行できるが、
小さい容量のSDカードへリストアすると、SDカード容量不足でddが欠落してしまう。
 
よって、Raspberry Pi(Raspbian)では専用のOSコピー(バックアップ)コマンドが用意されており、
こちらを利用する方が正確にコピーを取得する事が出来る。
 
#region(&color(#ff0000){rpi-clone};)
-&font(b){参考サイト};
[[billw2/rpi-clone:+https://github.com/billw2/rpi-clone]]
[[Raspberry PiでIoTなシステム開発:+http://www.homu.net/raspberry-pi%E3%81%A7iot%E3%81%AA%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E9%96%8B%E7%99%BA%EF%BC%9Asd%E3%82%AB%E3%83%BC%E3%83%89%E3%81%AE%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%E3%81%AFrpi/]]
 
-&font(b){コマンド実行};
バックアップ取得前に、コピー先SDカードをRaspberry Piに接続しておく。
今回はSDカードが、&color(#ff0000){"/dev/sda"};に接続されているとする。
 # git clone https://github.com/billw2/rpi-clone
 # ./rpi-clone sda -f
 ---
 Do you want to initialize the destination disk /dev/sda? (yes/no): "yes"
 You may enter a label for the destination rootfs /dev/sda2: [Enter]
 Final check, is it Ok to proceed with the clone (yes/no)?: "yes"
 Starting the filesystem rsync to sda
 (This may take several minutes)...
 ---
 Hit Enter when ready to unmount the /dev/sda partitions... [Enter]
 unmounting /mnt/clone/boot
 unmounting /mnt/clone
#endregion