Reinstall fresh OS on eMMC

I was tinkering with my new MNT Pocket Reform and was a little confused by the documentation. I loaded the SD card up with an image from my Pop!_OS box, and wasn’t sure exactly how to get the eMMC reflashed with the OS from the SD card as I broke something on the main install.

I can boot to the SD card. So how can I do a fresh clean install? Preferably with encryption to the eMMC if possible as well until I get an NVMe to migrate to.

I’m confused with what image you loaded your SD card up with. You loaded up the SD card with an image of Pop!_OS box? Or: on your Pop!_OS box you flashed an image of Debian unstable onto the SD card? The operating system you use to flash the SD card should not matter.

Assuming you boot MNT Debian unstable from the SD-card you will find the script reform-flash-rescue that you can run using sudo after connecting to internet in some way. That script will download the latest system image and flash it to your eMMC, essentially performing a factory reset.

We do have the reform-setup-encrypted-nvme script but as the name implies, that script is to set up your SSD with an encrypted file system. It could be changed to do the same for eMMC. If you like you could send me a patch that does that.

1 Like

So… turns out I came up with a patch that might be doing what you want. If you’d like to try it, download this version of the script:

You can then run it like this (assuming you are on imx8mplus):

sudo reform-setup-encrypted-nvme /dev/mmcblk2
1 Like

Awesome, I will take a look at this when I have a moment.