I was wondering if any of you have used onandroid to create nandroid backups. It allows you to do this through terminal emulator while the phone is still online, no reboot to recovery (offline) necessary.
I just tried it. Below is the terminal output. I'm not sure if it was truly successful, but an interesting concept. Anybody else has experience with this app?
Code:
$ export PATH=/data/local/bin:$PATH
$ su
# onandroid
##########################################
Online Nandroid Backup v5.1
* A tool to perform a nandroid backup
without booting into recovery.
* It is fully compatible with nandroid.
* Type 'onandroid --help' for usage
instructions.
* Created by Ameer Dawood
##########################################
mkdir failed for -p, Read-only file system
02:42:28 Checking for root permissions...
02:42:28 Root permissions aquired!
02:42:28 Analysing power...
02:42:28 Sufficient power available!
02:42:28 Searching for SD card...
02:42:28 SD card found!
02:42:28 Checking for required tools...
02:42:28 All required tools available!
02:42:28 Checking disk space...
02:42:29 SD Card Free Space: 11180 MB
02:42:29 Required Space: 1791 MB
02:42:29 Necessary disk space available!
02:42:29 Creating backup directory...
02:42:29 Backing up to /mnt/sdcard/clockworkmod/backup/2012-08-05.02.42.28
02:42:29 /boot not found! Skipping backup of /boot!
02:42:29 /recovery not found! Skipping backup of /recovery!
02:42:29 /wimax not found! Skipping backup of /wimax!
02:42:29 /appslog not found! Skipping backup of /appslog!
02:42:29 Backing up /system.........................
02:43:19 Backing up /data............tar: data/radio/qmux_connect_socket: socket ignored
..............tar: data/misc/wifi/sockets/wpa_ctrl_405-2: socket ignored
tar: data/misc/wifi/sockets/wpa_ctrl_405-1: socket ignored
......
02:45:35 Backing up /cache....
02:45:37 /datadata not found! Skipping backup of /datadata!
02:45:37 Backing up .android_secure....
02:45:43 sd-ext not found! Skipping backup of sd-ext!
02:45:43 Generating md5sum.................
02:46:26 Verifying md5sum...
02:46:27 Online Nandroid Backup Completed in 3 minutes 59 seconds!
#
Sent from my VS910 4G using Tapatalk 2
I have no experience with the app, but looks to be a little lacking if it didn't back up the recovery or boot. Just my two cents looks promising though.
Sent from my VS910 4G using xda app-developers app
OK, I didn't stay on top of this one at first but with help from the app's author, got it working on the Revo.
Boot and recovery weren't detected but now are after flashing the file for the Revo here. It adds the proper partition info for onandroid.
The second issue was an old busybox version causing a free space detection error. I used Stericson's Busybox Installer.
Code:
$ export PATH=/data/local/bin:$PATH
$ su
# onandroid -s /sdcard/external_sd
##########################################
Online Nandroid Backup v5.9
* A tool to perform a nandroid backup
without booting into recovery.
* It is fully compatible with nandroid.
* Type 'onandroid --help' for usage
instructions.
* Created by Ameer Dawood
##########################################
18:37:13 Spaces not allowed in backup name! Continuing with default backup name...
18:37:13 Checking for root permissions...
18:37:13 Root permissions acquired!
18:37:13 Analysing power...
18:37:13 Sufficient power available!
18:37:13 Searching for SD card...
18:37:13 SD card found!
18:37:14 Checking for required tools...
18:37:14 All required tools available!
18:37:14 Checking disk space...
18:37:14 SD Card Free Space: 5063 MB
18:37:14 Required Space: 865 MB
18:37:14 Necessary disk space available!
18:37:14 Creating backup directory...
18:37:15 Backing up to /mnt/sdcard/_ExternalSD/clockworkmod/backup/2012-09-12.18.37.13
18:37:15 Backing up /boot....
18:37:17 Backing up /recovery....
18:37:25 /wimax not found! Skipping backup of /wimax!
18:37:25 /appslog not found! Skipping backup of /appslog!
18:37:25 Backing up /system.....................
18:38:20 Backing up /data...............................................................
18:41:24 Backing up /cache...
18:41:24 /datadata not found! Skipping backup of /datadata!
18:41:25 /efs not found! Skipping backup of /efs!
18:41:25 Backing up .android_secure...[: 6914: unknown operand
18:41:25 sd-ext not found! Skipping backup of sd-ext!
18:41:36 Generating md5sum...................................
18:42:45 Verifying md5sum...
18:42:45 Online Nandroid Backup Completed in 5 minutes 32 seconds!
#
Edit: Added a bit more info.
Sent from my VS910 4G using Tapatalk 2
Related
while disabling the lagfix and system conversion off, my device seem to stuck/frozen at :
Backup complete!
Backup completed, recreating file systems
unmounting
Switching to new config
creating /data
creating /dbdata
creating /cache
Mounting to test
Unmounting again
Restoring data
Checking MD5 sums...
Restoring data...
com.sgstoolbox.apk
(its stuck here since 40+ mins now)
what to do help
PM Sent....dont worry mate
Special thanks rixsta
you ma man xD
Nandroid backup works for all the NAND partitions on the Bionic, dumping them to /sdcard-ext where they can be safely archived offline.
I'm looking for a way to perform a backup of the Bionic' internal sdcard (/sdcard). When the phone is fully booted, I can use tar, cpio, cp -Rp and so forth, but aren't some of the folders "live"? Is there a way to add something to the Nandroid backup script which executes a tar command for /sdcard?
Thanks!
Unless I'm missing something here; Can't you just plug it into your computer and copy the contents of your sd card?
I am unable to do a nandroid backup
At the last part of the backup, it gives me the
No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...
Error while generating md5 sum!
I am also unable to partition my SD card from CWM.
I just formatted my SD card, didn't help.
Any solution?
Thanks !
FYI I'm on MIUI, and the latest CWM
sony ericsson
anyone know how to unlock bootloader so i can changed the kernel??
Solved by changing the kernel
Hi,
Do you have enough space in your internal SD-Card
Bye.
bryanjuho said:
I am unable to do a nandroid backup
At the last part of the backup, it gives me the
No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...
Error while generating md5 sum!
I am also unable to partition my SD card from CWM.
I just formatted my SD card, didn't help.
Any solution?
Thanks !
FYI I'm on MIUI, and the latest CWM
Click to expand...
Click to collapse
If you check you backup directory, you'll notice it doesn't have the file "nandroid.md5".
In order to restore your backup, you can create this file manually.
You can do this throught Terminal Emulator.
Code:
cd /sdcard/clockworkmod/backup/(name of backup directory)
md5sum *img >nandroid.md5
This will create the file and you should be able to restore the backup in CWM.
Property on my Galaxy Tab S2 MM TWRP 3.0.0. Installed. Have already made several backups, without problems.
For no apparent reason, backup creation is now aborted.
Have tried to write to the ext.Sd card and a USB stick
Have TWRP reinstalled. Without success. Times an older backup made and tried to save it again. Same error message.
Have determined that if I in the partitions selection "system" clicks error appears. For all other partitions not. Have the system partition reformatted, but nothing. Have deinstall ANTPlusTest.
If I check in the system-img check box instead of system does the backup
Does anyone have an idea what else I could make to fix the error? Also, I would be interested in what is the difference between system and system img. Is not system included in Sytem-Img? Then I would backup the system-img in the future.
last Part from recovery Log:
I:Backup Name is: '2016-10-05--23-00-33_MMB29K.T715XXU2BPE2'
I:Full_Backup_Path is: '/external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/'
I:Calculating backup details...
* Total number of partitions to back up: 3
* Total size of all data: 9672MB
* Available space: 43734MB
[BACKUP STARTED]
* Backup Folder: /external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/
Backing up System...
Error opening: '/system/app/ANTPlusTest' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/system.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/recovery.log
It seems you may have a corrupted system partition and it fails to backup the ANTPlusTest.
System Image backup succeeds because it makes a raw copy of the entire partition, byte for byte.
Regular backup only backs up the files and folders.
That does not sound good. I had the partition already on ext4 formatted. Apparently unsuccessful. What can I do to repair the partition? I had formatted low level for hard disks. But Android?
Tollkirsche said:
That does not sound good. I had the partition already on ext4 formatted. Apparently unsuccessful. What can I do to repair the partition? I had formatted low level for hard disks. But Android?
Click to expand...
Click to collapse
Have you tried formatting with twrp using the advanced wipe options then flash the stock firmware or simply just delete that file?
Also something else to try. I remember someone else had the same issue, try backing up to different media. If your backing up to sdcard try internal or another sdcard or otg.
I've been here for a week on holiday and will deal with the problem afterwards.
I have formatted with TWRP ext4 and deleted the file. Wipe I had made and as medium int and ext SD card and also a USB stick. All without success.
I did with twrp wipe Dalvik / Art Cache; System; Data; Internal Storage; Cache and repair File System from System, Data and Cache.
Then I played back the last working backup. Now the error is fixed.
Hi,
TWRP gives me an error while trying to back up data from SD Card
Code:
createTarFork() process ended with ERROR: 255
Relevant fact: I have SD card but I am using it in "internal storage" mode. Can it be the reason?
Did someone had similar problem? Can someone confirm that data backup works for him without issues while having SD card in "internal storage" mode? Any ideas what to check?
The excerpt of TWRP log is below. Any advice is appreciated. Thanks!
Code:
Backing up Karta SD - Data (excl. storage)...
Backups of Karta SD - Data do not include any files in internal storage such as pictures or downloads.
Invalid encryption mode 'ice:aes-256-heh'
I:Creating backup...
I:Creating tar file '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.f2fs.win'
I:addFile '/external_sd/app' including root: 0
==> set selinux context: u:object_r:apk_data_file:s0
I:addFile '/external_sd/user' including root: 0
==> set selinux context: u:object_r:system_data_file:s0
I:addFile '/external_sd/user/0' including root: 0
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/external_sd/user/0' - '1de759c59fbb3500'
I:Error adding file '/external_sd/user/0' to '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.f2fs.win'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
By the way of update, what I found was:
- the most important seems to be in the first error line
Code:
failed to lookup tar policy for '/external_sd/user/0' - '1de759c59fbb3500'
- the error 255 often appears when there are multiple users or profiles on device, which can be recognized from the above line. The only existing solution so far is to delete other users/profiles, it's known TWRP flaw confirmed even by brigudav here. This is not the case here.
- found another user who had similar issue several months ago here but seems I won't be able to get in touch
- I was able to overcome the error by formating SD as external storage - this confirms the error was cause by SD card used as internal storage.
Since I found info (can't find link now) that newer versions of TWRP should support so called adoptable (internal) storage, I am still interested to know whether someone has SD card as internal storage and backs up through TWRP without error. Also any ideas to resolve the issue are still appreciated.