バックアップのすすめ
Pythonのライブラリを入れる前に丸ごとバックアップするよ!
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
SDカードは壊れやすいっていうよね。寿命も短いとか。
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
ねこっぴの場合はSDカードが壊れた! ってことはあんまり記憶になくて、それよりも慣れないLinuxをいじりすぎて正常じゃなくなって、戻んなくなってバックアップから復帰する…が多いかにゃあ。
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
一番あるのが、Pyhonのライブラリ入れたいと思って、やりかたわからないからwebの上がっているやり方をそのままコピペ。うまくインストールできない。いろんなサイトの違うやり方を試す。結果インストールもアンインストール(なに入れたかもわかんなくなる)もできない。ドツボ。パターンにゃね…。
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
普通にWindows使ってるとパーミッション、ファイルの権限みたいのはあんま意識しないから、そのへんに問題が起きるとお手上げですね….。
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
Linuxに詳しくなるために勉強するのはいいと思うんにゃけど、他にやりたいことをやってる途中にそれが起きるので、どうしてもトラブル起きないように知識をつけるというより、困ったら簡単に元に戻せる方法にチカラが注がれてしまいます。
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
では、第1回~第7回までの内容で、Pythonがまっさらなこの状態でバックアップとりましょー!
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
もういっかい最初から全部設定しなおして! とか言われたら多分全部片付けてゲームはじめるもんにゃ。
SDカードにバックアップする
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
SDにそのままコピーするのがおすすめにゃ。簡単。スタートメニューからSD Card Copier 起動にゃ。
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
同じ容量のSDカードをMicroSDカードUSBアダプタでUSBに装着…する前に、起動してコピー元の名前を確認しとくと安心かも。
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy5-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy5-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
あらためて同じ容量のSDカードをMicroSDカードUSBアダプタでUSBに装着。コピー元、コピー先を確認。Start !
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy2B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy2B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy3B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy3B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
完成です!念のため電源OFFにしてSDカード入れ替えて動くか確認忘れないでね。
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy4.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/raspberrypi-sdcopy4.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
大きい容量のSDにもコピーできるけど、次回はそれより大きい..とかなるので注意にゃよ。
SSD運用中も同じ方法でOK。SSDを丸ごとラズパイからバックアップ
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
「X68000Zにはどのラズパイを選べばいい?」で紹介してるケースに使ってるけど、SSD運用中は同じSSDを外付けSSDケースに入れてUSBでつないで SD Card Copier で丸コピーとれるにゃ。
![](https://nekopom.jp/wp-content/uploads/2023/06/SSD.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/SSD.jpg)
番長の購入したケース・SSDケース・SSD
HDDにイメージとしてバックアップ
DD for Windows でイメージ化
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
WindowsのHDDに、SDカードをまるまるイメージとしてファイルにして保存する方法も紹介にゃ。こちらはたまに失敗することあるのでチェックが必要だから少し時間かかるかにゃ。
DD for Windows のダウンロード 2023/06/12現在 Ver.0.9.9.8をDL
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
ダウンロードしたファイルを解凍してフォルダの中のDDWin.exeを起動にゃ。
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-00.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-00.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-01-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-01-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-02.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-02.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-01-2-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-01-2-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
セーブ予定のファイル名を入力するにゃ。ファイルが出来てそこに読み込まれていくにゃよ。
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-03.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-03.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
このボタンで開始にゃ!
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-04B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-04B.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
おっけ~!「はい」
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-07.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-07.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-12.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-12.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-icon-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-icon-1.jpg)
DD for Windows で作ったイメージが正常かチェック
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
完了!! でもね、終わったと思ってたら照合したら失敗してることもたまーにあるにゃ。絶対照合してにゃ。
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-08c.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-08c.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-16.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-16.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
おっけ~!「はい」
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-11.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-11.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-13-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-13-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
![](https://nekopom.jp/wp-content/uploads/2023/05/pipoko.png)
一致しましたー!
DD for Windows でイメージをSDカードに書き込む
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
![](https://nekopom.jp/wp-content/uploads/2023/06/nekoppi.png)
書き込みはいままでと同じ要領で「書込」
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-13-2.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-13-2.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-05-1.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-18.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-18.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-15.jpg)
![](https://nekopom.jp/wp-content/uploads/2023/06/DDwin-15.jpg)