PINE64
Restore the emmc boot partition after accidentally eMMC format?! - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: Restore the emmc boot partition after accidentally eMMC format?! (/showthread.php?tid=10653)



Restore the emmc boot partition after accidentally eMMC format?! - pippon - 07-13-2020

Hello,

I have accidentally deleted my two partitions on the eMMC in an first attempt to install one of the OS (mobian) for the PinePhone.
What I did was to first install the JumpDrive to the SD-card, which worked fine. The phone booted into that nicely.

From there I tried to install the OS directly into to the eMMC but It seamed not to fit there due to disk space issues. I then started gparted on my linux computer and tried to resize them but in the end I accidentally removed both partitions and created a new partition table (dos) with two new partitions on it (8gb for boot) and the rest for data.

I have searched all over the web what is needed to do co recreate the boot (loader) etc... I really need help Smile

Is there any somewhat simple way to restore it all from scratch?

With best regards
// Pippon


RE: Restore the emmc boot partition after accidentally eMMC format?! - rocket2nfinity - 07-13-2020

(07-13-2020, 11:28 AM)pippon Wrote: Hello,

I have accidentally deleted my two partitions on the eMMC in an first attempt to install one of the OS (mobian) for the PinePhone.
What I did was to first install the JumpDrive to the SD-card, which worked fine. The phone booted into that nicely.

From there I tried to install the OS directly into to the eMMC but It seamed not to fit there due to disk space issues. I then started gparted on my linux computer and tried to resize them but in the end I accidentally removed both partitions and created a new partition table (dos) with two new partitions on it (8gb for boot) and the rest for data.

I have searched all over the web what is needed to do co recreate the boot (loader) etc... I really need help Smile

Is there any somewhat simple way to restore it all from scratch?

With best regards
// Pippon
You could use the jump drive to expose the emmc and then just dd the mobian imageĀ (from the pinephone os wiki) to the emmc. It should rebuild your partition tables correctly for mobian. Same for postmarket and pure OS should you try them.