User:Piero-e/How to use Community pre-built image AND "dualboot" androidOS / postmarketOS
how to use Community pre-built image
AND
"dualboot" androidOS / postmarketOS (Piero-e 's contribution)
install instructions for Phosh and XFCE4 images (tested on Samsung Galaxy Tab 2 |
works using TWRP to switch if running postmarketOS from an External SD card and let AndroidOS running from the Phone Internal Memory as usual
as explained in Installation - Flashing - From SD Card Our device can boot SD card, USB stick or other external storage.
1. preparation in a way to easily switch between Android_OS and PostmarketOS
from your actual Android_OS install file (AP_Stock_Samsung_Firmware.tar.md5 or Custom_Android_Based_OS.zip), extract the boot.img and copy it to your TWRP folder in internal storage (/sdcard/TWRP)
Download the pmOS pre-built image on your computer
from the download page
insert a MicroSDcard into your Computer
and find its name by running
$ lsblk
make sure it is the right one as you will overwrite everything on it. Use a path without partition number at the end,
such as /dev/mmcblk0, or /dev/sdd
decompress the downloaded file and write it to your MicroSDcard :
$ xz --decompress --stdout path-to-pmos-samsung-espresso7.img.xz | sudo dd of=/dev/name-of-your-SDcard bs=4M status=progress
Wait until the command completes and eject the SD card.
2. Install Postmarket on your device
insert the MicroSDcard into your device, and boot it into TWRP
using the mount feature, unselect all /partitions except "MicroSDcard",
using the install feature, switch to "install image" rather than "install ZIP"
navigate to the "/external_sd/boot.img", and flash it to the /boot partition
reboot system
The rootfs image will boot right into postmarketOS. You are done with installing postmarketOS, congratulations! default login is "user" and password is "147147"
3. to restore your Android_OS
boot the device into TWRP mode,
and simply using the install feature, switch to "install image" rather than "install ZIP"
navigate to the previously stored "/sdcard/TWRP/boot.img", and flash it to the /boot partition
4. to restore your PostmarketOS
boot the device into TWRP mode,
and simply using the install feature, switch to "install image" rather than "install ZIP"
navigate to the "/external_sd/boot.img", and flash it to the /boot partition