ZombieJerky
Is there a way to do an image backup of the internal memory (/dev/mmcblk2)? I see the forum post about "making backups", but that is just for creating a factory restore from the url for the image (I will post it below).

Any help on this is appreciated.

Thanks.

----
  • Run BalenaEtcher from the Applications then Accessories menu.
  • Select Flash from URL in the first column. Then enter: https://www.inovato.net/quadra-awh6-current.img.gz.
  • Insert your micro SD card into the slot (it is hard to see as it is in the vent slots right in front of the USB 3.0 connector on the side of the Quadra). It will go in only one way. If it doesn't click when you push it in all the way, then remove and reinsert. When it clicks and is almost flush with the case, it is in.
  • Click on the middle column Select target option, then select /dev/mmcblk0. Be careful here. DO NOT SELECT mmcblk2!
  • Click the Flash! button to start your backup. It will ask you to confirm your password, then begin. This can take 30 minutes or more.
----
Reply 0 0
Michael Burmeister-Brown inovato
Yes you can.  And in fact, this would be a good thing to do whenever you are about to make significant changes to your Quadra to preserve your previous work.  Just read this entire post BEFORE doing the restore to eMMC or you'll wipe out your backup!

To make your backup:


Instead of "Flash from URL", select "Clone drive" in the second step above.  Select "/dev/mmcblk2" (the eMMC device) as the Source.

The rest of the steps are the same.  Note that the backup micro SD card must be 16GB or larger.

When it is done, you will have your backup:  A bootable SD card with everything from your eMMC drive.  So far, so good!

To restore your backup to eMMC:

This is where you have to do an extra step and why:

It is necessary to change the UUID of the internal eMMC device.  The reason is that cloning a drive also clones the UUIDs so you now have 2 devices with the same UUID.  This breaks the automatic restore to eMMC feature of the Quadra, and also the manual "nand-sata-install" Armbian command.

To change the eMMC UUID, boot the backup WITH a monitor attached, then type the following commands BEFORE running "nand-sata-install" or booting without a monitor.  Until you do this, either of these will instead ERASE YOUR BACKUP as it will be completely confused which is the SD and which is eMMC due to the duplicate UUIDs!

Type ctl-alt-t to enter a terminal emulator, then type:

sudo e2fsck -f /dev/mmcblk2p1
sudo tune2fs -U random /dev/mmcblk2p1

Then it is safe to restore using either the nand-sata-install or boot without a monitor methods.  Don't try to clone it back using Balena Etcher.  You'll likely run into an issue of the internal eMMC being too small.
Reply 0 0
iefbr14
Is it fair to say, then, that restoring from a cloned drive sd card (via "unplug monitor and reboot") is a somewhat different process than restoring from the factory image (via "unplug monitor and reboot") that has been burned to an sd card? What i think i hear you saying is that cloning a drive also clones the eMMC's UUID, and therefore every quadra that leaves the factory would have the same eMMC UUID (since they all came from the same factory image). if THAT is the case, wouldn't the backup of the factory image get clobbered when i try to restore from it since the UUID in eMMC and the UUID  in sd card are the same? (unless "uplug monitor and reboot" ignores UUIDs... in which case nand-sata-install can be disused in favour of unplug monitor and reboot when restoring backups, unless nand-sata-install has different desireable features)
Reply 0 0
Michael Burmeister-Brown inovato
Quadra’s are not cloned.  The internal eMMC is formatted then files are copied via a slightly edited version of nand-sata-install (flash-quadra). So each is unique.  
Reply 0 0
bezelman
I'm interested in cloning my Quadra image (complete with a standalone multi-container web application developed in Docker) onto multiple Quadras for distribution to my friends and family.  Sounds like this flash-quadra script could be quite useful in that regard.  Right now, I'm struggling to make clone copies using the nand-sata-install script, since (1) I don't know much about the Ambian OS and these scripts (e.g. nand-sata-install is offering me options I don't fully grasp - option 2 vs option 5), and (2) many of my attempts are yielding non-booting or empty images, probably because I'm making errors in the order of physical booting, changing UUIDs, writing boot records and images, etc.  I would like to request a detailed recipe for cloning one Quadra onto another Quadra.
Reply 0 0
Michael Burmeister-Brown inovato
Have you tried balena etcher's 'clone drive' feature to clone the internal eMMC to an SD card?  Then you can simply install that card onto other quadras in the usual 'insert and boot without a monitor attached' approach.  
Reply 0 0
firecop9774
Have you tried balena etcher's 'clone drive' feature to clone the internal eMMC to an SD card?  Then you can simply install that card onto other quadras in the usual 'insert and boot without a monitor attached' approach.  
Getting error message "Authentication is needed to run /bin/bash as the super user". Trying to clone the drive onto microSD card. Thanks!
Reply 0 0
Michael Burmeister-Brown inovato
It does ask for your password and this has to be entered.  I just tested it and it worked fine for me.
Reply 0 0
wbretz
Yes you can. And in fact, this would be a good thing to do whenever you are about to make significant changes to your Quadra to preserve your previous work. Just read this entire post BEFORE doing the restore to eMMC or you'll wipe out your backup!

To make your backup:


Instead of "Flash from URL", select "Clone drive" in the second step above. Select "/dev/mmcblk2" (the eMMC device) as the Source.

The rest of the steps are the same. Note that the backup micro SD card must be 16GB or larger.

When it is done, you will have your backup: A bootable SD card with everything from your eMMC drive. So far, so good!

To restore your backup to eMMC:

This is where you have to do an extra step and why:

It is necessary to change the UUID of the internal eMMC device. The reason is that cloning a drive also clones the UUIDs so you now have 2 devices with the same UUID. This breaks the automatic restore to eMMC feature of the Quadra, and also the manual "nand-sata-install" Armbian command.

To change the eMMC UUID, boot the backup WITH a monitor attached, then type the following commands BEFORE running "nand-sata-install" or booting without a monitor. Until you do this, either of these will instead ERASE YOUR BACKUP as it will be completely confused which is the SD and which is eMMC due to the duplicate UUIDs!

Type ctl-alt-t to enter a terminal emulator, then type:

  1. sudo e2fsck -f /dev/mmcblk2p1
  2. sudo tune2fs -U random /dev/mmcblk2p1

Then it is safe to restore using either the nand-sata-install or boot without a monitor methods. Don't try to clone it back using Balena Etcher. You'll likely run into an issue of the internal eMMC being too small.
How do you make this work with the Quadra4K? I think I managed to get balena etcher installed via pi-apps, but it doesn't work. Pi-apps tells me that I'm missing some sources.list entries, but my list on the 4k is identical to the one on the debian Bookworm website. I'm a very stale Unix user, so any help would be appreciated.
Reply 0 0
Michael Burmeister-Brown inovato
I wasn’t able to get it to work, either.  AFAIK, this only works on the original Quadra.  It has been over a year since I tried and forget the issues, sorry.  
Reply 0 0
wbretz
Thanks for the reply! At least now I know that I wasn't doing something stupid....
 
Any suggestions on how to make an image so that I can make a new restore card?
Reply 0 0
Reply