January 22, 2018, 11:59:20 AM

collapse

* 'Like' And 'Follow' Us!

* Sero 7 & 8 Market

Author Topic: CWM What happened?!  (Read 6926 times)

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
CWM What happened?!
« on: October 10, 2015, 08:35:32 PM »
So the other day I had the "250mb of space needed"  glitch happen and when I went to try to restore from one tablet to the other,  I  got a nasty surprise when it wouldn't restore the data partition,  it said "bad tar magic".  Then I tried to transfer the backup files I had saved on my computer, and it kept automatically merging  the tar.a and tar.b files into one tar,  or only having the a and b files, totally unpredictable and kept it from restoring properly.

The only thing that worked was restoring just the /system portion,  then downloading the backups to the internal SD card with es file explorer and FTP.  No other form of transferring the files would work for some reason,  adb transferring resulted in the strange handling of the tar files and names,  and when I tried to transfer with the external SD card mounted via USB I would get input/output errors,  both instances connected to Ubuntu.

Even weirder if I tried downloading the files from one working tablet to the external SD card,  the files would get turned into an old DOS format, so "DATA.EX~. TAR"  type naming with all caps and only 8 letter file names,  and again would discard the other a and b tar.

What in the world is going on? I am nervous the next time I am going to need to use a recovery that it won't work.



Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #1 on: October 12, 2015, 12:32:44 AM »
So it seems the common factor to the unsuccessful attempts is when I am trying to use the external SD card. It is a brand new card,  but is it possible there is something wrong with it? I used the recovery (philz) to format it and when the system mounted it said it checked for errors and there was no prompt of anything wrong. I know that I'd just a files stem check though, is there any way to run a check to make sure the card itself is good?

Offline shneor

  • Sr. Member
  • ****
  • Posts: 368
  • Popularity: 16
    • View Profile
Re: CWM What happened?!
« Reply #2 on: October 12, 2015, 12:56:03 PM »
Hi there,
I have had problems trying to format sd cards/flash drives using the Sero. One flash drive was rendered completely useless. I'd suggest reformatting the card with a desktop/laptop. If you have a PC you can use a versatile program called Minitool. I'm not sure what you might use with Linux, but I am certain there are formatters that will do the job. Don't know anything about Apple devices.

Shneor
Shneor
Sero 7 Pro, Dopa 5.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #3 on: October 12, 2015, 02:30:43 PM »
Hi there,
I have had problems trying to format sd cards/flash drives using the Sero. One flash drive was rendered completely useless. I'd suggest reformatting the card with a desktop/laptop. If you have a PC you can use a versatile program called Minitool. I'm not sure what you might use with Linux, but I am certain there are formatters that will do the job. Don't know anything about Apple devices.

Shneor

I tried to format it via my PC by connecting it to the USB mass storage mode on the tablet, but since it is still mounted by the Sero itself I am guessing it didn't help any.

The other curious thing is when I mount it with USB storage,  it doesn't even show as having a partition with frisk. If I try to make one using granted it works fine but does not solve the problem. In fact I tried with chat and ext3 as well but I think I saw in the Android bin files a "mkfs.exfat" which is what I assume they use to format the SD card. I have never heard of exfat,  but I would have figured chat would be compatible.

Unfortunately I have no way to connect the SD card to my computer other than mounting it via USB storage mode.

Offline shneor

  • Sr. Member
  • ****
  • Posts: 368
  • Popularity: 16
    • View Profile
Re: CWM What happened?!
« Reply #4 on: October 12, 2015, 03:38:54 PM »
I assume you are using an adapter to connect the sd card via usb.
Please download and install Minitool (it's freeware) from here: www.partitionwizard.com/download.html   
It will format your card and will allow you even to partition the card, select a partition type, etc.  Sero will read fat32, ntfs and other formats, and you can select the type you want. Then you can try to copy your backup back to the card. Of course, you will have to reinstall Philz, etc. first.

Best of luck.
Shneor
Shneor
Sero 7 Pro, Dopa 5.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #5 on: October 12, 2015, 05:19:14 PM »
I assume you are using an adapter to connect the sd card via usb.
Please download and install Minitool (it's freeware) from here: www.partitionwizard.com/download.html   
It will format your card and will allow you even to partition the card, select a partition type, etc.  Sero will read fat32, ntfs and other formats, and you can select the type you want. Then you can try to copy your backup back to the card. Of course, you will have to reinstall Philz, etc. first.

Best of luck.
Shneor


No I was using Philz to put the Sero into USB Mass Storage mode, then plugging in the USB cord into my computer to get access to the disk that way.

GParted is a partitioning utility on Linux that can do all that, but I just need to know how I am actually supposed to partition the disk.  I realized that my printer had a SD card slot that interfaces to my computer with USB and plugged it in through that.  This is what the disk looks like...  I left in an entry for my 60 GB hard-disk so you can see how the partition table is displayed on Linux. So for the first 60 GB disk (/dev/sde), there is the partition /dev/sde1 listed in the table.  On the SD card there doesn't seem to be any partitions...

Code: [Select]
Disk /dev/sde: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders, total 117266688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x825aa9f1

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *        2048   117264383    58631168    7  HPFS/NTFS/exFAT

Disk /dev/sdf: 15.6 GB, 15560867840 bytes
64 heads, 32 sectors/track, 14840 cylinders, total 30392320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

As it turns out though, I can mount the block device itself with no partition...

Code: [Select]
kenny@AMD:~$ sudo mount /dev/sdf /media/tablet
kenny@AMD:~$ ls /media/tablet
Android  clockworkmod  LOST.DIR  xposed-uninstaller-20150831-arm(1).zip

That is...  Unusual for me, usually you have to reference the partition number after the name of the block device.  So I was trying to mount /dev/sdf1...   I don't know if this is normal or not.  Are they usually partitioned and formatted in this manner or should I make a partition for it?

I guess I can try to do some transfers and check the MD5 sums for integrity, but the thing is when the restores failed, it always did an MD5 check that never failed.  It just simply wouldn't restore the data partition, and when I looked in the logs it said "bad tar magic".  When I googled that, all I can find is some mention of bugs with the version of tar included in busybox, which I'm just hazarding a guess is what the terminal on android/adb is actually running on.

Basically the behavior goes like this...
(Oh keep in mind Table A and B are both Sero 7 Pro tablets)

Make backup with Philz on Tablet A, storing to internal SD card
Transfer to computer with FTP
Download files from FTP onto Tablet B, storing to internal SD card
Restore those files with Philz onto Tablet B

This works, whereas the following does not...

Make backup with Philz on Tablet A, storing to external SD card
Transfer SD card from Tablet A to Tablet B
Restore files to Tablet B, get "tar magic error" trying to restore data partition

Nor does any kind of attempt to download the files via FTP to the external SD card. If at any point where I try to restore from the external SD card that is where the problems start.  Whether it be the tar magic thing, or the tar file names themselves behaving weirdly.

Another really curious thing is that, on one of my restores that is just a vanilla install of DOPA fresh from the start, it is not big enough to split the tar volumes into .a and .b volumes.  Instead it is just one .tar file, and it seems to have no problem restoring from an external SD card.  I haven't tested it enough to tell but it seems it's just the ones with the multi-volume .tar files that have the issue.

I am going to try to transfer one of the restore files that I backed up to the internal card, then transfered to FTP, onto the external SD card using the printer's adapter to mount it...  Again since I already have been using MD5 checksums with no errors I'm not sure it's a data integrity error, so I'm expecting the same tar magic issue.  Will report...

Edit:

Okay that was weird, I did a checksum on the files after transferring with the computer and they were fine, but then when attempting to restore on the tablet the checksums failed...
« Last Edit: October 12, 2015, 06:12:42 PM by SagaciousKJB »

Offline LuckyMe

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
  • Popularity: 194
    • View Profile
Re: CWM What happened?!
« Reply #6 on: October 12, 2015, 07:34:48 PM »
Not my area of expertise!

I did recently have an issue with my backups and cwm.  Md5 checksum and some other tar error.

It was totally frustrating as I'd been backing up and restoring with it for  several months. I'm feeling confident, got my backup, wipe everything,  flash a new rom... Guess what? Not only does the rom fail, but all my backups too. Now I'm PO!

After an hour or two and a couple days of trying it all, I reflashed CWM. Just in a last minute ditch. Guess what? It worked.  It started working again.  Got corrupt somehow.  Never heard of that. lucky me!  Lol.


Anyway, don't forget you can use PHILZ temporarily too. With fastboot.  So you don't have to flash back and forth. Or you just want to check the stability of it.

A nandroid is a man's best friendainol Venus-Firomi v3.2
S7P DoPa Lollipop 5.1
Vidaa Pad 8 Oma V1.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #7 on: October 12, 2015, 08:11:54 PM »
Not my area of expertise!

I did recently have an issue with my backups and cwm.  Md5 checksum and some other tar error.

It was totally frustrating as I'd been backing up and restoring with it for  several months. I'm feeling confident, got my backup, wipe everything,  flash a new rom... Guess what? Not only does the rom fail, but all my backups too. Now I'm PO!

After an hour or two and a couple days of trying it all, I reflashed CWM. Just in a last minute ditch. Guess what? It worked.  It started working again.  Got corrupt somehow.  Never heard of that. lucky me!  Lol.


Anyway, don't forget you can use PHILZ temporarily too. With fastboot.  So you don't have to flash back and forth. Or you just want to check the stability of it.

I may need to try that.  I just tried once again and instead of checksum errors I just got a "tar: short read" error.

I don't really now how to flash it at all though, I rooted my Sero with a script that was linked to here and just placed the philz recovery.img in place of the normal recovery.img that was included in the script.  So I guess I could just run that again...  Only thing is, one of the tablets has an extremely temprimental USB port, the cord has to be basically squeezed in place so I'm not confident in being able to connect to adb with it.

I don't know of any other way to do it but was reading there's a way to just flash it on the android itself?

Edit:

Code: [Select]
echo "==[ Flashing CWM Touch Recovery ]=="
$adb shell su -c "mount -o remount,rw /system"
$adb shell su -c "if [ -f '/system/etc/install-recovery.sh' ]; then mv '/system/etc/install-recovery.sh' '/system/etc/install-recovery.sh-hide$
$adb push cwm_touch_recovery.img /data/local/tmp
$adb shell su -c "cat /data/local/tmp/cwm_touch_recovery.img > /dev/block/mmcblk0p5"
$adb shell rm /data/local/tmp/cwm_touch_recovery.img

Maybe if I did this using a terminal emulator on the tablet itself? It seems pretty simple, just over-writing the mmcblk0p5 partition with the .img file, but will it work without doing it through adb?
« Last Edit: October 12, 2015, 09:49:42 PM by SagaciousKJB »

Offline LuckyMe

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
  • Popularity: 194
    • View Profile
Re: CWM What happened?!
« Reply #8 on: October 13, 2015, 08:06:33 AM »
A script for root? Are these Sero lts? Or Pros?....

The fastest way to do it,  if your recovery can't flash, is fastboot.  It's going to be my next tutorial. But you can use a temporary recovery to flash a new one, Reboot the tablet, then check and see if the backups will work properly.

Tutorial for that here: post#1


sero7forum.com/sero-7-root-hack-mod-and-development/fastboot/

If your tablet's recovery can still flash, it's quite easy to reflash the recovery.  Just put the unzipped cwm recovery file (.zip package) onto the internal or external sd card, boot to recovery, choose install,  scroll to the package, choose it, and it will flash. When it's done flashing wipe caches. Then choose reboot recovery.  The new recovery will boot up.  Then check your backups.
« Last Edit: October 13, 2015, 08:14:38 AM by LuckyMe »

A nandroid is a man's best friendainol Venus-Firomi v3.2
S7P DoPa Lollipop 5.1
Vidaa Pad 8 Oma V1.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #9 on: October 13, 2015, 01:45:17 PM »
 Yeah well it was more like a folder with a series of scripts labeled step 1 step 2 etc. I saw it on the xda forums first but it was. Bat files for Windows, I think you found me the Linux  version.  Oh and yeah they are Pros

Either way there was a cwm . img that I replaced with the Philz one to work in the script.

So where do I find a zip version of Philz to install like that and remain sure it's for the sero?

Ps
SwiftKey is aggravating,  it changed Linux to "link up"  and Philz to Philippines
« Last Edit: October 13, 2015, 03:27:22 PM by SagaciousKJB »

Offline LuckyMe

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
  • Popularity: 194
    • View Profile
Re: CWM What happened?!
« Reply #10 on: October 13, 2015, 04:22:38 PM »
oh, yes.  Now I remember you....yes.  That's a root package.  I thought you were referring to something else. (so never mind!  lol)

You can find the .zip file for recoveries here - Sero specific: 

http://forum.xda-developers.com/android/development/rom-sero-7-pro-uk-au-aosp-5-0-2r1-dopa5-t3015014

( after a few embarrassing moments,  I now turn off auto correct.  always.  regardless of the keyboard.  I hate it.)

A nandroid is a man's best friendainol Venus-Firomi v3.2
S7P DoPa Lollipop 5.1
Vidaa Pad 8 Oma V1.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #11 on: October 13, 2015, 09:39:34 PM »
oh, yes.  Now I remember you....yes.  That's a root package.  I thought you were referring to something else. (so never mind!  lol)

You can find the .zip file for recoveries here - Sero specific: 

http://forum.xda-developers.com/android/development/rom-sero-7-pro-uk-au-aosp-5-0-2r1-dopa5-t3015014

( after a few embarrassing moments,  I now turn off auto correct.  always.  regardless of the keyboard.  I hate it.)


Well I reinstalled Philz recovery but I still ge an error when trying to restore from the external SD card. I ddidnt know how to post the log so took a pic with my other tablet


Maybe I should try TWRP?

Edit
Well I tried twrp and didn't have any problem making and restoring backups to and from the ad card on both tablets. 
« Last Edit: October 16, 2015, 01:32:48 AM by SagaciousKJB »

Offline LuckyMe

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
  • Popularity: 194
    • View Profile
Re: CWM What happened?!
« Reply #12 on: October 20, 2015, 01:31:55 PM »
I don't know what happened.  Maybe someone else can advise us both!

I guess you're sticking with twrp for a while?...

A nandroid is a man's best friendainol Venus-Firomi v3.2
S7P DoPa Lollipop 5.1
Vidaa Pad 8 Oma V1.1

Offline SagaciousKJB

  • Jr. Member
  • **
  • Posts: 56
  • Popularity: 0
    • View Profile
Re: CWM What happened?!
« Reply #13 on: December 09, 2015, 03:01:37 AM »
Yeah I think I will it seems to work better anyway, I like the compression feature.

Offline LuckyMe

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
  • Popularity: 194
    • View Profile
Re: CWM What happened?!
« Reply #14 on: December 12, 2015, 07:46:34 PM »
Hi again SagaciousKJB  :)

There is a new version of TWRP available here:  http://forum.xda-developers.com/android/development/rom-sero-7-pro-aosp-6-0-0-dopa6-v0-t3226373

In case you're interested.

A nandroid is a man's best friendainol Venus-Firomi v3.2
S7P DoPa Lollipop 5.1
Vidaa Pad 8 Oma V1.1