Pinephone OS Backups (System Images)
#1
Because I find the "need" to flash new OS images to SD cards and the eMMC of the phone, there is an equal need to backup these images. I think that we would all like to save ourselves the trouble of reconfiguring from scratch if it can be avoided. I've found some Windows desktop applications to accomplish this task, and each has its strengths and weaknesses. Connect SD card directly to PC or use Jumpdrive for eMMC. I will continue to update with new tools as necessary.

After some testing, I have to recommend Win32DiskImager as the best overall product for backups, assuming you have the storage space for it.

Win32DiskImager
  • Best overall product. Simple UI with fastest transfer speeds.
  • Strength: Saves images in standard .img format.
  • Weakness: Direct copy results in images being the same size as the drive, which in this case is 30 times as large as Aomei.
  • Note: The partitions will be listed as separate drives, but it will read and save the entire drive if you pick one of them. I pick the first one to be safe.
  • Bonus: Balena Etcher can fail when writing to eMMC from a Windows PC and using Win32DiskImager resolves this issue.

Aomei Backupper
  • Best for systems with limited storage.
  • Strength: Intelligent sector copy only saves info for blocks that have data written to them and also features compression. Mobian on a 64GB sd card takes up less than 2GB as an image.
  • Weakness: Saves images in proprietary .adi format and need paid option for functionality


Passmark ImageUSB
  • Best for people afraid of CLIs. It's a slower Win32DiskImager with a prettier UI and some extra features.
  Reply
#2
Nice move! Haven't yet received my device but appreciate it...

Sent from my PH-1 using Tapatalk
  Reply
#3
(09-08-2020, 09:35 PM)bcnaz Wrote: (Maybe some Linux app suggestions, I no longer have anything Windows on my property)

I think the dd command (might need a sudo) should be sufficient to backup with a Linux machine. Set the source to your SD card or eMMC, and the output to wherever you want to save (/backupdir).

1. Find the device name of your eMMC or SD card. My eMMC shows up as 'mmcblk2' on the phone itself.
Code:
lsblk

2. Check the lsblk output to see if any partitions on your source device are mounted. Unmount them using their mount points as a reference. For example, to unmount the partition /dev/sdb1 with the mount point /media/thumbdrive:
Code:
sudo umount /media/thumbdrive
note that the command is 'umount' not 'unmount'

3a. To create an uncompressed image (replace 'sda' with your source device)
Code:
dd if=/dev/mmcblk2 of=/backupdir/filename.img

3b. To create a compressed image with gzip
Code:
dd if=/dev/mmcblk2 | gzip -c >/backupdir/filename.img.gz
  Reply
#4
df will only list mounted filesystems, and you don't want to be taking the image when it's mounted. lsblk will list block devices, even when they're not mounted.
  Reply
#5
(10-19-2020, 05:07 AM)wibble Wrote: df will only list mounted filesystems, and you don't want to be taking the image when it's mounted. lsblk will list block devices, even when they're not mounted.

Good catch. Updated my post and organized more like a short guide.
  Reply
#6
+1 for providing options for Windows (even if I use GNU/Linux). Could you clarify the OS dependence in your title?
  Reply
#7
Today, PinePhones and PinePhones Pro are used with Tow Boot. Tow Boot exposes the eMMC of the phone. Having the eMMC at hand in the computer allows to save it simply as an image in the computer.
On a Linux system, it could be, say /dev/sdb2. I did succesfully:

$ sudo umount /dev/sdb2
$ sudo partclone.ext4 -c -d -s /dev/sdb2 -o 20230820myimage.img

There should be equivalents in Mac or Windows computers.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 32 23,351 03-21-2024, 04:27 PM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 280 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,157 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 22,946 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 1,713 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 99,966 11-17-2023, 08:37 AM
Last Post: Uturn
  Using Signal on PinePhone in mid-2023? dante404 45 11,762 11-17-2023, 04:23 AM
Last Post: Kevin Kofler
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 816 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 1,838 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,118 10-18-2023, 08:37 AM
Last Post: luppivega

Forum Jump:


Users browsing this thread: 1 Guest(s)