Banana Pi - OS backup

    • OMV 3.x
    • Resolved
    • Banana Pi - OS backup

      I have certain issues to reach stable install PAST MONTH on my Banana Pi.
      My configuration is: Running Banana Pi SD nand-sata-install to USB flash drive (from now on I just call it USB) to stay away from problems with SD errors... Doesn't help to reach stable installation. And two HDDs plugged in - first is SATA + luks encrypted, second USB case HDD.
      After certain plugins installed, I guess, in some stage of setting up things, Banana Pi after restart won't boot - won't reach state when I can access web interface nor ssh login.
      I tried to keep up with it to back up Win32DiskImager to backup *.img but it does whole device and on recovery in some point backup *.img won't fit SD card.
      Recently I was trying Clonezilla through my Virtual linux but I cannot successfully backup SDcard. If you guys will strongly recommend this option I'll go this way. And I'll pass "error message" here...
      Is there something else then clonezilla more user friendly which creates some kind of image of partition with few clicks?
      I tired to backup and recover data with Luckybackup to second SDcard and second USB but my second set won't work. or combination with original SDcard and USB. I'll soon try to recover data to the same SDcard and USB. Is there reason why recovery to different SDcard and USB doesn't work because some device ID based reference?
    • Wolf2000 wrote:

      To make a backup of the SD card should have the cards same company, same large, and class.
      Nope. You can 'backup' every source to every destination as long as there's enough free space there (backup = filesystem copy) and if you want to clone SD cards just choose another one of 'same size' and then do a block based clone.

      I'm using for this purpose ddrescue (SD card to image) and then either compress the image for later use (7z a -t7z -bd -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on lala.7z lala.img) or burn the image again using Etcher of course. If the source was an Armbian or recent OMV installation then SD card of 'same size' can be taken literally since Armbian does not use the entire capacity of SD cards since over a year now but leaves some spare are so cloning to slightly smaller SD cards isn't an issue any more (16 GB to 16 GB should always work, 16 GB to 8 GB not of course)
      'OMV problems' with XU4 and Cloudshell 2? Nope, read this first. 'OMV problems' with Cloudshell 1? Nope, just Ohm's law or queue size.
    • houndhunger wrote:

      Running Banana Pi SD nand-sata-install to USB flash drive (from now on I just call it USB) to stay away from problems with SD errors...
      There exist crappy SD cards and crappy USB thumb drives. And there exist good SD cards and good USB thumb drives. If you choose a good SD card there's no need to use an USB thumb drive (writes to SD card are minimal anyway if you use flashmemory plugin which should be the default).

      I would try to analyze why you run in instability problems (please keep in mind that those Bananas use the crap connector called 'Micro USB' for powering so you're most probably an under-voltage victim), unless you provide log files it's hard to guess anything (armbianmonitor -u) and wrt SD cards and partitioning for sunxi devices you have to follow this scheme: linux-sunxi.org/Bootable_SD_card#SD_Card_Layout (there must be some stuff on the SD card before the partitions carrying the data start otherwise no boot is possible)

      As a general rule of thumb: Once you resolve powering and SD card issues you're done. On a Banana Pi that means avoiding the shitty connector to power the board (check LeMaker forum how to power the Banana through the SATA power port), power all disks separately and then just buy a genuine Samsung EVO or EVO+, check it prior to usage, stop wasting your time and enjoy your BanaNAS.
      'OMV problems' with XU4 and Cloudshell 2? Nope, read this first. 'OMV problems' with Cloudshell 1? Nope, just Ohm's law or queue size.
    • I'm using SanDisk cards, I believe them that they are good enough. I'll stick with it for now.
      As device for nand-sata I'm using SanDisk USB Ultra Fit 16GB USB 3.0 Flash Drive. I'l believe it is good enough.

      tkaiser wrote:

      check LeMaker forum how to power the Banana through the SATA power port
      In my case it is free. Simply just like that bring power up to this sata power connector. OK if you say so. I have 2A USB adaptor powering that Banana Pi. And separate connector for that sata power. Should I just DIY it and put it too gather (in right order of course)?
    • houndhunger wrote:

      I have 2A USB adaptor powering that Banana Pi
      Sorry, I'm too exhausted to further elaborate on why Micro USB is shit and why SBC that use Micro USB for DC-IN should be avoided. Just two links:
      'OMV problems' with XU4 and Cloudshell 2? Nope, read this first. 'OMV problems' with Cloudshell 1? Nope, just Ohm's law or queue size.
    • OK, I have used 5V 2A power supply where I have replaced original USB cable with 18AWG (about 60cm) with sata connector on the end. I ended-up with output of 5.6V when I measured it with Voltmeter. Please let me know If it is too much (seems like it is...). I couldn't google any maximum recommended Voltage for Banana Pi. I believe there is some shutdown diode or some kind of protection or "regulator"...
    • Hi
      You have not under load measure (5.6V) because you do not have to worry.
      Underload you will have about 4.9 V.
      apt install gawk
      nano power.sh

      Brainfuck Source Code

      1. # VOLT,AMPERE,WATT ANZEIGE
      2. #dieser Befehl funktioniert nur mit Armbian Linux!
      3. echo "Strom - Verbrauch"
      4. V0=`cat /sys/power/axp_pmu/ac/voltage`
      5. V3=`cat /sys/power/axp_pmu/ac/amperage`
      6. V1=$V0
      7. V2=$'0.000001'
      8. V4=$'0.000000000001'
      9. echo | gawk '{print '$V1'*'$V2' " Volt " '$V3'*'$V2' " Ampere " '$V3'*'$V1'*'$V4' " Watt "}'
      10. echo "---------------------------------------"
      11. exit 0
      Display All


      chmod +x power.sh
      ./power.sh
      forum-bpi.de Visit on and help us, The Germany Forum :thumbsup:
      github.com/Wolf2000Pi
      Banana Pi /Armbian 3.4.109 / Openmediavault 2.x
      Banana Pi /Armbian 4.11.5-sunxi / Openmediavault 3.0.xx (Test)
      Dell Inspiron One 2205 | Openmediavault 3.0.xx / Kernel 4.7 (Test)

      The post was edited 1 time, last by Wolf2000 ().

    • Fix that:

      Brainfuck Source Code

      1. # VOLT,AMPERE,WATT ANZEIGE
      2. #dieser Befehl funktioniert nur mit Armbian Linux!
      3. echo "Strom - Verbrauch"
      4. V0=`cat /sys/power/axp_pmu/ac/voltage`
      5. V3=`cat /sys/power/axp_pmu/ac/amperage`
      6. V1=$V0
      7. V2=$'0.000001'
      8. V4=$'0.000000000001'
      9. echo | gawk '{print '$V1'*'$V2' " Volt " '$V3'*'$V2' " Ampere " '$V3'*'$V1'*'$V$
      10. echo "---------------------------------------"
      11. exit 0
      Display All


      Output:


      Brainfuck Source Code

      1. Strom - Verbrauch
      2. 5.6644 Volt 0.564375 Ampere 3.19685 Watt
      3. ---------------------------------------

      So, no under-voltage. What about over-voltage?
    • Hi
      linux-sunxi.org/AXP209
      No overvoltage, the limit is at 6.3V

      Ps: Sorry something went wrong when copying
      forum-bpi.de Visit on and help us, The Germany Forum :thumbsup:
      github.com/Wolf2000Pi
      Banana Pi /Armbian 3.4.109 / Openmediavault 2.x
      Banana Pi /Armbian 4.11.5-sunxi / Openmediavault 3.0.xx (Test)
      Dell Inspiron One 2205 | Openmediavault 3.0.xx / Kernel 4.7 (Test)

      The post was edited 1 time, last by Wolf2000 ().

    • Gone again. After restart - no access to web interface, no ssh, no ping. Left it running for about 10 minutes to be sure it is not just booting long.
      Im ordering EVO SD card. Any recommended USB flash drive for nand-sata?
      Pity I have no respond to debug. Nor visual through HDMI, if it only helps...

      And I appreciate your every help tkaiser. I feel bad wasting your time as well.
      Or anyone help appreciated.
    • houndhunger wrote:

      5.6644 Volt 0.564375 Ampere 3.19685 Watt
      I've never tried to provide more than 5.25V just to be sure (you would have to check schematic how USB ports and HDMI voltages are generated, if the 5V needed there are directly taken from DC-IN with almost 5.7V you're way off and I would assume a connected HDMI display will use some protection circuitry to prevent damage -- HDMI allows 4.8V to 5.3V while USB allows 4.75V to 5.25V).

      And the best way to get debug output is to connect a serial console via a USB-serial-adapter as outlined here: linux-sunxi.org/Banana_Pi#Adding_a_serial_port
      'OMV problems' with XU4 and Cloudshell 2? Nope, read this first. 'OMV problems' with Cloudshell 1? Nope, just Ohm's law or queue size.
    • After so many re-installs... This time I have restarted B-Pi after every single thing/service setup was done..
      It is gone again, after SFTP plugin settings... SFTP comes from testing repo... (btw. I use luks for one of my drives, which needs unlocking after restart - might be there clush?...). What is the way I can debug what is causing this crashes. Should I enable HDMI?
      From beginning it felt like it didn't like SFTP....

      I will do this couple more times (reinstall, with different SD cards...) exactly and proof that it won't boot after SFTP installed.
    • OK half way there.
      To answer myself for Backup solution is simply dd command - htpcguides.com/easy-resize-and…y-pi-sd-card-with-ubuntu/
      Going through complicated clonezilla, rulles messing up? luckybackup, I have then ended up using RAW data backup using simple logic described in link above.

      Another issue is that my OS is crushing (I know why now)... I'll try solve it and describe solution in another thread of mine: Things went South after update