Pinephone OS Backups (System Images) - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: Pinephone OS Backups (System Images) (/showthread.php?tid=11343) |
Pinephone OS Backups (System Images) - ThrillGates - 09-08-2020 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
Aomei Backupper
Passmark ImageUSB
Pinephone OS Backups (System Images) - eKeith - 09-08-2020 Nice move! Haven't yet received my device but appreciate it... Sent from my PH-1 using Tapatalk RE: Pinephone OS Backups (System Images) - ThrillGates - 10-17-2020 (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 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 RE: Pinephone OS Backups (System Images) - wibble - 10-19-2020 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. RE: Pinephone OS Backups (System Images) - ThrillGates - 10-19-2020 (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. RE: Pinephone OS Backups (System Images) - User 18618 - 10-20-2020 +1 for providing options for Windows (even if I use GNU/Linux). Could you clarify the OS dependence in your title? RE: Pinephone OS Backups (System Images) - DominiqueM - 08-20-2023 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. |