diff --git a/content/20240204184839 raspi4 家サーバー 作業ログ 1.md b/content/20240204184839 raspi4 家サーバー 作業ログ 1.md index 3a2d59d..2ff93da 100755 --- a/content/20240204184839 raspi4 家サーバー 作業ログ 1.md +++ b/content/20240204184839 raspi4 家サーバー 作業ログ 1.md @@ -201,10 +201,51 @@ $ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin ``` ``` -sudo rpi-clone-setup -t testhostname +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. -[ラズパイ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) +- [ラズパイ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)