From 6f96e0b26446c7619b99e023eea5db4f4f79ecb3 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(WSL2)" Date: Mon, 5 Feb 2024 10:56:10 +0900 Subject: [PATCH] commit(auto) --- ...0204221948 raspberry piをSSD bootに設定.md | 73 +++++++++++++++++++ content/index.md | 10 +-- 2 files changed, 76 insertions(+), 7 deletions(-) create mode 100755 content/20240204221948 raspberry piをSSD bootに設定.md diff --git a/content/20240204221948 raspberry piをSSD bootに設定.md b/content/20240204221948 raspberry piをSSD bootに設定.md new file mode 100755 index 0000000..a26d88b --- /dev/null +++ b/content/20240204221948 raspberry piをSSD bootに設定.md @@ -0,0 +1,73 @@ +# 20240204221948 raspberry piをSSD bootに設定 +#raspi #ssd +色々と情報を見たが、一番簡単で確実な方法は、 +- microSDにRaspberry Pi Imagerで必要なOSを書きこむ +- SSDをRaspberry Pi Imagerで必要なOSを書きこむ 20240204 時点ではraspi-cloneではうまくいかなかった。 +- microSDでブート、bootloaderを最新にする +- raspi-configで起動をSSDに設定 +という手順が確実そう。 + +#### SSDのフォーマット +SSDをUSBで接続。認識されると、こんな感じになる。 + +``` +$ dmesg +[ 2371.382886] sd 0:0:0:0: [sda] Attached SCSI disk +[ 2555.521771] usb 2-2: USB disconnect, device number 3 +[ 2555.565777] sd 0:0:0:0: [sda] Synchronizing SCSI cache +[ 2555.801704] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK +[ 2627.619831] usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd +[ 2627.652398] usb 2-2: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=f0.01 +[ 2627.652420] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 +[ 2627.652433] usb 2-2: Product: RTL9210 +[ 2627.652442] usb 2-2: Manufacturer: Realtek +[ 2627.652451] usb 2-2: SerialNumber: 012345678905 +[ 2627.684644] usb 2-2: Enable of device-initiated U1 failed. +[ 2627.685583] usb 2-2: Enable of device-initiated U2 failed. +[ 2627.714973] usb 2-2: Enable of device-initiated U1 failed. +[ 2627.716024] usb 2-2: Enable of device-initiated U2 failed. +[ 2627.720692] scsi host0: uas +[ 2628.284123] scsi 0:0:0:0: Direct-Access Realtek RTL9210 NVME 1.00 PQ: 0 ANSI: 6 +[ 2628.302746] sd 0:0:0:0: Attached scsi generic sg0 type 0 +[ 2628.306857] sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB) +[ 2628.308244] sd 0:0:0:0: [sda] Write Protect is off +[ 2628.308260] sd 0:0:0:0: [sda] Mode Sense: 37 00 00 08 +[ 2628.310966] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA +[ 2628.312278] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes +[ 2628.312300] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes +[ 2628.324088] sda: sda1 sda2 +[ 2628.324372] sd 0:0:0:0: [sda] Attached SCSI disk +[ 2753.358307] sda: sda1 sda2 +``` + +fdiskで全部のパーティーションを削除。状況によって異なるので割愛。 +#### bootloaderのバージョン確認 +``` +$ vcgencmd bootloader_version +2023/01/11 17:40:52 +version 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 (release) +timestamp 1673458852 +update-time 0 +capabilities 0x0000007f +``` + +`sudo raspi-config` + +A7 Boot ROM Versionを最新に。 +`E1 Latest Use the latest version boot ROM software` を選択して再起動。 + +``` +$ vcgencmd bootloader_version +2024/01/22 10:41:21 +version 51ed67b03b3dde4e76b345370f312d07aabf45b8 (release) +timestamp 1705920081 +update-time 1707048097 +capabilities 0x0000007f +``` + +ここまでできたら、USBブートにする。最初の手順で作ったSSDをraspi4に接続。microSDは外して起動。 + +cf. +- [ラズパイ4をUSB接続のSSDから起動する方法(USBブート) | ラズパイダ](https://raspida.com/rpi4-ssd-usb-boot) +- [Raspberry PiのバックアップをCLIから作成する | Vogelbarsch](https://vogelbarsch.com/2020-08-27-140104/) +- [Rasberry Piでrpi-cloneを使ってバックアップ | TomoSoft](https://tomosoft.jp/design/?p=8721) \ No newline at end of file diff --git a/content/index.md b/content/index.md index cfe1d47..625fda1 100755 --- a/content/index.md +++ b/content/index.md @@ -1,5 +1,6 @@ -# index +# index(public) + #index #root kazboのpublic notesにようこそ。 @@ -9,10 +10,5 @@ kazboのpublic notesにようこそ。 kazboことKazuki Saita/斉田一樹の書きちらかしたメモが堆積したものから、ある程度有用かもしれない内容を、publicに公開しようとしているものです。 [[20240122201309 全体的な書き方の方針|全体的な書き方の方針]] -## public -[[000000000002 メモ ノートの書き方]] +[[000000000002 メモ ノートの書き方|メモ ノートの書き方]] -## private(非公開の内容) -- [[000000000006 Read_Later]] -- [[999999999999 scratch]] -- [[00_Capture/index|Capture index]] \ No newline at end of file