Raspberry Pi 5 clonezilla boot from usb

Raspberry Pi 5 clonezilla boot from usb

clonezilla usb

取得 Clonezilla arm64 zip; 解壓縮到 usb /dev/sdc1

mount/dev/sdc1 /mnt

wget https://free.nchc.org.tw/clonezilla-live/experimental/arm/3.2.0-31/clonezilla-live-3.2.0-31-arm64.zip
unzip clonezilla-live-3.2.0-31-arm64.zip /mnt

取得 efi , download RPi5_UEFI_Release_v0.3.zip from https://github.com/worproject/rpi5-uefi/releases

解壓縮到 usb /dev/sdc1

unzip RPi5_UEFI_Release_v0.3.zip /mnt/

ls /mnt
arm64-release.txt  bcm2712-rpi-5-b.dtb  boot  Clonezilla-Live-Version  config.txt  EFI  GPL  home  live  RPi5_UEFI_Release_v0.3.zip  RPI_EFI.fd

raspberry pi

預設開機

RPI5 目前預設都是 sd-card 開機

測試 usb only

沒有接 sd-card
接上clonezilla usb 直接可以用 clonezilla live

有 sd-card 的狀況

預設會sd-card 開機,開機登入之後可以修改開機順序

在 rpi os 內修改 boot order

sudo rpi-eeprom-config --edit

更改 BOOT_ORDER Try USB first, followed by SD then repeat

BOOT_UART=1
POWER_OFF_ON_HALT=0
BOOT_ORDER=0xf14

修改完之後就會優先開 usb ; 如果 usb 開機失敗就會為到 sd-card 開機

測試:

2025-02-13-153033.webm

reference

https://forums.raspberrypi.com/viewtopic.php?t=366106
https://github.com/worproject/rpi5-uefi/releases
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#eeprom-boot-flow