commit(auto)
This commit is contained in:
parent
b9397f3516
commit
3ac4f2f229
1 changed files with 10 additions and 57 deletions
|
@ -31,19 +31,25 @@
|
|||
完全に同じことを、USBのSSDで実施する。
|
||||
microSDはブートの設定を変更する目的で作っている。設定変更後には使用しない。
|
||||
|
||||
同様の手順を、SSDにも実施する。
|
||||
|
||||
### ルーターの設定
|
||||
- DHCPスタティックIP設定 を追加
|
||||
|
||||
### 起動
|
||||
書きこんだらRaspi 4に挿して、LANケーブルなど繋いで起動。
|
||||
microSDに必要なデータを書きこんだら、Raspi 4に挿して、LANケーブルなど繋いで起動。
|
||||
wsl2上のubuntuから、sshで接続確認。
|
||||
ここまでできたら、SSD bootの設定をする。
|
||||
ここまでできたら、SSD bootの設定をする。
|
||||
|
||||
### SSD bootに設定
|
||||
色々と情報を見たが、一番簡単で確実な方法は、
|
||||
- microSDにRaspberry Pi Imagerで必要なOSを書きこむ
|
||||
- SSDをRaspberry Pi Imagerで必要なOSを書きこむ 20240204 時点ではraspi-cloneではうまくいかなかった。
|
||||
- microSDでブート、bootloaderを最新にする
|
||||
- SSDを
|
||||
- raspi-configで起動をSSDに設定
|
||||
という手順が確実そう。
|
||||
|
||||
#### SSDのフォーマット
|
||||
SSDをUSBで接続。認識されると、こんな感じになる。
|
||||
|
||||
```
|
||||
|
@ -77,7 +83,7 @@ $ dmesg
|
|||
```
|
||||
|
||||
fdiskで全部のパーティーションを削除。状況によって異なるので割愛。
|
||||
bootloaderのバージョン確認
|
||||
#### bootloaderのバージョン確認
|
||||
```
|
||||
$ vcgencmd bootloader_version
|
||||
2023/01/11 17:40:52
|
||||
|
@ -101,59 +107,6 @@ update-time 1707048097
|
|||
capabilities 0x0000007f
|
||||
```
|
||||
|
||||
```
|
||||
$ sudo apt install git
|
||||
```
|
||||
|
||||
```
|
||||
$ git clone https://github.com/billw2/rpi-clone.git
|
||||
$ cd rpi-clone
|
||||
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
|
||||
```
|
||||
|
||||
```
|
||||
sudo rpi-clone-setup -t saipi4(ホストネームなので各自で変更してください)
|
||||
```
|
||||
|
||||
```
|
||||
$ sudo fdisk -l
|
||||
```
|
||||
で、USB接続したSSDがどこに接続せされているかを確認。自分の場合 /dev/sda
|
||||
```
|
||||
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
|
||||
Disk model: RTL9210 NVME
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: C678576F-F4F8-417E-9A1E-032A60DF551C
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 534528 567295 32768 16M Microsoft reserved
|
||||
/dev/sda2 567296 500115455 499548160 238.2G Microsoft basic data
|
||||
```
|
||||
|
||||
```
|
||||
$ sudo ./rpi-clone sda -f
|
||||
```
|
||||
あとは適当にyesとかを選択しつつ、最後までやる。 コピーされると、こんな感じになる。
|
||||
|
||||
```
|
||||
$ sudo fdisk -l
|
||||
|
||||
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
|
||||
Disk model: RTL9210 NVME
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: 0x37e8fc91
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
/dev/sda1 8192 1056767 1048576 512M c W95 FAT32 (LBA)
|
||||
/dev/sda2 1056768 500118191 499061424 238G 83 Linux
|
||||
```
|
||||
|
||||
ここまでできたら、USBブートにする
|
||||
|
||||
cf.
|
||||
|
|
Loading…
Reference in a new issue