I believe my setup is correct (cmdline.txt updated root=… and rootfs imaged to hdd). However when booting, the kernel complains that it can’t find root= and lists available devices that only includes ram0 .. ram16 devices. I tried root=/dev/sda2 (only usb msd plugged in at boot) as well as root=PARTUUID=… and both fail with the same error. For whatever reason it looks like it can’t see the USB hdd even though its already powered up, spinning already (its got its own power) when I apply power to the RPI.
Is there anything obvious to check?
The only thing to note is the hard disk already has 200G worth of data on it (/dev/sda1) and a empty 2nd partition that is 16GB at the end of the disk. I ONLY image the rootfs onto /dev/sda2 of the hdd and it appears fine to avoid having to move the original /dev/sda1 data.
On my desktop:
Code: Select all
# usb hdd on /dev/sdb, sd card on /dev/sdc # image buster rootfs to hdd losetup /dev/loop0 ./rpi-buster.img partprobe /dev/loop0 dd if=/dev/loop0p2 of=/dev/sdb2 bs=1M losetup -D # image to SD dd if=./rpi-buster.img of=/dev/sdc bs=1M # remount /dev/sdb2 and edit etc/fstab so / mount based on PARTUUID