Let's get this out of the way up front: I don't use Ubuntu so some of the following may not apply.
Option 1:
Lastly, your drive should support PCIe gen2. The Pi5 is not certified for gen3 so by forcing it you may encounter issues that may otherwise be avoided.
Option 1:
- Boot entirely from SD
- Make sure the partitions on the NVMe drive are not mounted
- Install and run gparted.
- Reduce the size of the root partition on the NVMe drive and move it's start position to the right
- Create a new FAT32 partition in the space freed up.
- Mount the new FAT32 partition somewhere and copy the contents of /boot/firmware to it
- Shut down, remove SD card, boot
- Further tweaks may be required.
- Beg, borrow, or steal a USB/NVMe enclosure
- Use that with Raspberry Pi imager to write a clean OS install to the NVMe drive
- Boot entirely from SD card
- Use the ubuntu equivalent of RPiOS' SD card copier tool to copy the entire OS tp the NVME drive.
Lastly, your drive should support PCIe gen2. The Pi5 is not certified for gen3 so by forcing it you may encounter issues that may otherwise be avoided.
Statistics: Posted by thagrol — Mon Oct 14, 2024 6:31 pm