Notifications
Clear all

Keeping a fresh RPI 4 development system

1 Posts
1 Users
0 Likes
550 Views
(@jfabernathy)
Member
Joined: 3 years ago
Posts: 141
Topic starter  

Since the Raspberry Pi 4 makes a good development PC for the Pico and other MCUs, I find myself having to rebuild a lot because I did something wrong or just stupid.  It can be a real pain to start over and create a new RPI OS system. 

I watched a series of youtube videos from a guy who has solved this problem for SD Cards and I've started with his solutions and applied it to USB SSDs.

His most recent video on this subject is:

backup SD

What I do is take the backup image file and store it on my NAS for save keeping. The image will have all my favorite apps, configurations, browser setup, etc.

When It's time to create a new SD card or USB3 SSD, I use Raspberry Imager to flash the saved image to the SD card or SSD, then after booting that SD card or SSD on a RPI 4, I use the rasp-config to resize the EXT4 root partition to fill the space completely.

When I get to the point where I need to modify my base image with newer stuff, I boot the saved image on a RPI using a SD card and make the changes, then remove that card and boot a USB SSD image that has the tools needed to make an image file out of an SD and shrink it. Then I save that new image on the NAS.  You need to use the USB SSD to have the space to image the complete SD card prior to it being shrunk.

 

If your code won't compile, have another glass of bourbon. Eventual the problem will be solved.


   
Quote