Raspberry Pi root on SSD
Jump to navigation
Jump to search
For Raspberry Pis with the root file system on SSD, I prefer to leave the boot partition on an SD card, particularly when the Pi is to be put in a case like the Argon ONE that makes the SD card inaccessible without a screwdriver. That way, the OS can be reinstalled in the future by copying the distribution image over the SD card, then repeating the transfer procedure listed below.
To install then move the root fs from SD card to SSD:
- Make an SD card, maybe with the lite image, boot it and do the initial dialog.
- Make an ext4 filesystem on the SSD, and copy the root file system with
cp -ax /. /mnt
. - Use
lsblk -o +PARTUUID
- Edit /boot/firmware/cmdline to change root fs.
- Edit /mnt/etc/fstab to change root partition.
- Reboot.
- Install raspberrypi-ui-mods etc.