Trashed my pocket reform: how to use reform-migrate?

Hi there!

I somehow trashed my pocket reform:

  • see 1st screenshot, not quite sure how I did it, maybe I just shut it down the harsh way instead of graceful shutdown… Then got dropped into some kind if initramfs prompt, ran fsck and then somehow a bunch of things got deleted… :frowning:


  • I’ve just copied the system image on SD Card which I can boot from. I want to now reinstall the OS with reform-migrate, I’m not very clear what partition I should give it as an argument? (see third screenshot)

Probably the reformemmcroot partition right? ie /dev/mmcblk0p2 ? The wording of the command help around the first partition confuses me

Ouch, that looks very bad. I hope you didn’t loose important user data and/or had backups?

From your lsblk output it seems you have no SSD installed? Thus you want the full system on eMMC?

If yes, you have multiple options:

  • you can run reform-flash-rescue which should get your eMMC back to “factory” settings by downloading and flashing the latest image
  • you can run reform-setup-encrypted-disk which would set up full disk encryption with luks
  • you can run reform-migrate using the existing partitions

Yes, /dev/mmcblk0p2 aka reformemmcroot is would the the correct partition if you want to set up your eMMC using reform-migrate. About the confusing --help output, can you maybe describe what exactly confuses you so that I can adjust the text to be less confusing? Thank you!

1 Like

thanks @josch yes I use my reform for some coding and everything’s in git so didn’t lose anything

I actually have an SSD I think I had removed it to make place for the antenna after RK3588 upgrade as I was missing a screw, will put it back now I have the extra screw

Thanks for the clarification for the partitions it the help it says:

mounts the first partition and mirrors your system to it. Configures booting from the first partition on eMMC

This bit of text seems to say that both boot and system are on the same partition, maybe the meaning is “mounts the specified partition and mirrors system to it …”?

What is your version of the reform-tools package? In the latest version it says:

Mounts the first partition of an NVMe disk and mirrors your system to it. Configures booting from the first partition on eMMC.

Does the wording of the most recent version of reform-migrate clear things up?

1 Like

It does thanks @josch! I also reinstalled my nvme ssd and setup the encrypted disk was surprisingly easy!

1 Like