TeamWin / Team-Win-Recovery-Project-1.x-NO-GUI

AOSP based recovery that is highly customized
www.teamw.in
52 stars 11 forks source link

Nandroid Back-Up - Boot Portion Fail #44

Open BigTony83 opened 12 years ago

BigTony83 commented 12 years ago

I am having this problem with mine. I am on a Nexus S4G and have switched to other recoverys and have no problem nandroiding. This just started happening to me. I had no problem nandroiding with TWRP 2.0.0 before tonite. Any help would be grateful.

Starting recovery on Tue Jan 3 03:40:55 2012 Pixel format: 480x800 @ 32bpp Pixel format: RGB_565 framebuffer: fd 3 (480 x 800) Loading volume table...

recovery filesystem table

0 /tmp ramdisk (null) (null) 1 /sdcard vfat /dev/block/platform/s3c-sdhci.0/by-name/media (null) 2 /system ext4 /dev/block/platform/s3c-sdhci.0/by-name/system (null) 3 /cache yaffs2 cache (null) 4 /data ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata (null) 5 /misc mtd misc (null) 6 /boot mtd boot (null) 7 /recovery mtd recovery (null) 8 /bootloader mtd bootloader (null) 9 /radio mtd radio (null) 10 /wimax mtd wimax (null) 11 /efs yaffs2 efs (null)

E:failed to mount /sdcard (No such file or directory) I:Loading package: TWRP (/script/ui.xml) I:Loading package: TWRP (/sdcard/TWRP/theme/ui.zip) I:Loading package: TWRP (/res/ui.xml) I:Loading resources... I:Loading variables... I:Loading pages... I:Loading page main I:Loading page install I:Loading page flash_confirm I:Loading page flash_zip I:Loading page flash_done I:Loading page wipe_cachedalvik I:Loading page wipe_installdone I:Loading page wipe I:Loading page wipe_cache_confirm I:Loading page wipe_cache I:Loading page wipe_dalvik_confirm I:Loading page wipe_dalvik I:Loading page wipe_rotate_confirm I:Loading page wipe_rotate I:Loading page wipe_data_confirm I:Loading page wipe_data I:Loading page wipe_system_confirm I:Loading page wipe_system I:Loading page wipe_sdcard_confirm I:Loading page wipe_sdcard I:Loading page wipe_sdext_confirm I:Loading page wipe_sdext I:Loading page wipe_battery_confirm I:Loading page wipe_battery I:Loading page wipe_done I:Loading page backup I:Loading page backup_run I:Loading page backup_done I:Loading page backup_success I:Loading page backup_failed I:Loading page restore I:Loading page restore_setrestoredata I:Loading page restore_select I:Loading page restore_run I:Loading page restore_done I:Loading page restore_success I:Loading page restore_failed I:Loading page mount I:Loading page usb_mount I:Loading page usb_umount I:Loading page reboot I:Loading page settings I:Loading page timezonemain I:Loading page timezoneminus I:Loading page timezoneplus I:Loading page advanced I:Loading page copylog_done I:Loading page partsdcard I:Loading page partsdcardaction I:Loading page partsdcard_done I:Loading page fixperms I:Loading page fixperms_done I:Switching packages (TWRP) Processing arguments (1)... Fixing execute permissions for /cache mtd: successfully wrote block at 0 I:Set boot command "boot-recovery" I:=> Installing busybox into /sbin I:=> Linking mtab I:=> Getting locations W:Device does not support /proc/emmc I:=> Let's update filesystem types. I:=> And update our fstab also. I:=> Created /efs folder. I:=> Update the usage statistics.

E:Unable to stat '/sd-ext/.' +----------+-----------------------------+------+----------+----------+---+---+ | Mount | Block Device | fst | Size(KB) | Used(KB) | M | B | +----------+-----------------------------+------+----------+----------+---+---+ | | | mtd | 0 | 0 | 0 | u | | system | /dev/block/mmcblk0p1 | ext4 | 524288 | 174808 | 1 | f | | data | /dev/block/mmcblk0p2 | ext4 | 1048576 | 204928 | 1 | f | | boot | /dev/block/mtdblock2 | mtd | 8192 | 8192 | 0 | i | | recovery | /dev/block/mtdblock3 | mtd | 8192 | 8192 | 0 | i | | cache | /dev/block/mtdblock4 | yaffs2 | 480768 | 2340 | 1 | f | | sdcard | /dev/block/mmcblk0p3 | vfat | 13978607 | 3110880 | 1 | n | | | | | 0 | 0 | 0 | n | | andsec | /sdcard/.android_secure | vfat | 11504 | 11504 | 0 | f | | sd-ext | /dev/block/mmcblk0p4 | | 0 | 0 | 1 | f | | efs | /dev/block/mtdblock6 | yaffs2 | 6912 | 1600 | 1 | f | | | | | 0 | 0 | 0 | n | | | | | 0 | 0 | 0 | n | +----------+-----------------------------+------+----------+----------+---+---+ Command: "/sbin/recovery"

ro.secure=0 ro.allow.mock.location=1 ro.debuggable=1 persist.service.adb.enable=1 ro.build.id=GRJ90 ro.build.display.id=GRJ90 ro.build.version.incremental=138666 ro.build.version.sdk=10 ro.build.version.codename=REL ro.build.version.release=2.3.5 ro.build.date=Fri Dec 16 20:13:30 CST 2011 ro.build.date.utc=0 ro.build.type=eng ro.build.user=TeamWin ro.build.host=teamw.in ro.build.tags=test-keys ro.product.model=Nexus S 4G ro.product.brand=google ro.product.name=sojus ro.product.device=crespo4g ro.product.board=herring ro.product.cpu.abi=armeabi-v7a ro.product.cpu.abi2=armeabi ro.product.manufacturer=samsung ro.product.locale.language=hdpi ro.product.locale.region= ro.wifi.channels= ro.board.platform=s5pc110 ro.build.product=crespo4g ro.build.description=sojus-user 2.3.5 GRJ90 138666 release-keys ro.build.fingerprint=google/sojus/crespo4g:2.3.5/GRJ90/138666:user/release-keys rild.libpath=/vendor/lib/libsec-ril.so rild.libargs=-d /dev/ttyS0 ro.sf.lcd_density=240 ril.ecclist=911,#911,*911 ro.cdma.home.operator.numeric=310120 ro.cdma.home.operator.alpha=Sprint ro.telephony.default_network=4 ro.wimax.interface=uwbr0 ro.opengles.version=131072 wifi.interface=eth0 wifi.supplicant_scan_interval=15 dalvik.vm.heapsize=32m keyguard.no_require_sim=true ro.ril.hsxpa=1 ro.ril.gprsclass=10 ro.config.notification_sound=OnTheHunt.ogg ro.config.alarm_alert=Alarm_Classic.ogg ro.rommanager.developerid=cyanogenmod ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html ro.com.google.clientidbase=android-google ro.com.android.wifi-watchlist=GoogleGuest ro.setupwizard.enterprise_mode=1 ro.com.android.dateformat=MM-dd-yyyy ro.com.android.dataroaming=false ro.config.ringtone=Playa.ogg ro.modversion=CyanogenMod-7.1.0-RC1-NS4G-KANG ro.kernel.android.checkjni=1 ro.setupwizard.mode=OPTIONAL dalvik.vm.dexopt-flags=m=y net.bt.name=Android net.change=net.bt.name dalvik.vm.stack-trace-file=/data/anr/traces.txt ro.factorytest=0 ro.serialno=38345C0BA8B700EC ro.bootmode=unknown ro.baseband=D720SPRKE1 ro.carrier=SPR ro.bootloader=D720SPRKC5 ro.hardware=herring ro.revision=34 init.svc.dmesg=stopped init.svc.recovery=running init.svc.adbd=running

mtd: successfully wrote block at 0 I:Set boot command "" I:Switching packages (TWRP) I:Set page: 'mount' I:Set page: 'usb_mount' I:Set page: 'usb_umount' I:Set page: 'mount' I:Set page: 'main' I:Set page: 'backup' I:Set page: 'backup_run'

[BACKUP STARTED]

[SYSTEM (170 MB)] ...Backing up /system partition.

I:Partition Backup time: 29 I:Estimated Total time: 113 Estimated remaining time: 63 I:=> Filename: data.ext4.win I:=> Size of /data is 204928 KB.

[DATA (200 MB)] ...Backing up /data partition. tar: ./gps/secgpsd.socket: socket ignored tar: ./misc/wifi/sockets/wpa_ctrl_236-1: socket ignored tar: ./misc/wifi/sockets/wpa_ctrl_236-2: socket ignored

I:Partition Backup time: 48 I:Estimated Total time: 113 Estimated remaining time: 5

I:=> Filename: boot.mtd.win I:=> Size of boot is 8192 KB.

[BOOT (8 MB)] ...Backing up boot partition. mtd: ECC errors (0 soft, 64 hard) at 0x00000000 mtd: ECC errors (0 soft, 64 hard) at 0x00040000 mtd: ECC errors (0 soft, 64 hard) at 0x00080000 mtd: ECC errors (0 soft, 64 hard) at 0x000c0000 mtd: ECC errors (0 soft, 64 hard) at 0x00100000 mtd: ECC errors (0 soft, 64 hard) at 0x00140000 mtd: ECC errors (0 soft, 64 hard) at 0x00180000 mtd: ECC errors (0 soft, 64 hard) at 0x001c0000 mtd: ECC errors (0 soft, 64 hard) at 0x00200000 mtd: ECC errors (0 soft, 64 hard) at 0x00240000 mtd: ECC errors (0 soft, 64 hard) at 0x00280000 mtd: ECC errors (0 soft, 64 hard) at 0x002c0000 mtd: ECC errors (0 soft, 64 hard) at 0x00300000 mtd: ECC errors (0 soft, 64 hard) at 0x00340000 mtd: ECC errors (0 soft, 64 hard) at 0x00380000 mtd: ECC errors (0 soft, 63 hard) at 0x003c0000

I:Set page: 'backup_done' I:Set page: 'backup_failed' -- Error occured, check recovery.log. Aborting. I:Set page: 'backup' I:Set page: 'main' I:Set page: 'advanced'

joeykrim commented 12 years ago

The concerning section appears to be all the errors on your boot partition, such as "mtd: ECC errors (0 soft, 63 hard) at 0x003c0000". You say other recovery's don't have any issues backing up and restoring this partition?

The backup fails due to a safety/sanity check on the size of the backup. As the backup boot image size doesn't match the expected size, the backup aborts.

If you're able to backup and restore the boot partition with other custom recovery's the logic stands even though the partition has potential issues, it might be best to warn the user their specific partition has potential issues but a backup was made and there could be potential issues with the backup.

As the recovery is currently coded with your current issues on the boot partition, it appears the custom recovery will never provide a complete backup. The code will have to be modified in the custom recovery in order to warn the user, display the sanity/safety check/error/issue to the user and if the user wants, ignore the issue and continue with the backup or stop the backup.