I’m a big dumb idiot and may or may not have set a fresh password on my system image and then gone on vacation for 2 weeks and forgot it… what’s the best way to reflash my eMMC to factory settings? I’ve flashed an SD card with a bootable image, but it’s not immediately apparent how to use reform-migrate to use that to overwrite the existing partition on the eMMC.
Alternative : you make a new system image on a SD card (see Software section in the manual), then boot on it, set a known password, mount your eMMC and then overwrite your user password hash in the “/etc/shadow” file with the one from the system you just set up in the SD card. Then reboot without the SD card and then you password would be the one you’ve set up.
There could be a simpler way (like a single mode) but I didn’t find any. Maybe smarter people than me would find something simpler.
Or alternatively, lets say you mounted your rootfs on emmc on /mnt
, you do this to set a new password for user hoborg
:
sudo chroot /mnt passwd hoborg
Nice, that’s a way better solution!
This solution worked perfectly! I have successfully reset my password and gotten back into my eMMC boot. Thank you!