Hi all,
I got error blkdiscard failed invalid argument while flashing [ROM][MI3/Mi4][CM-12.1][Android-5.1.1]CM-Cancro.
Many said that I had to extend partition to 1.2GB, which I already did. I can install Temasek rom with extended
partition, but failed with Bitti09 rom.
Here is what I have did before
-flash r11 cwm
-manually extend partition
-script extend partition
-flash TWRP
all step above failed to install [ROM][MI3/Mi4][CM-12.1][Android-5.1.1]CM-Cancro.
Now running with audahadi Temasek rom.
Here is my log from TWRP
PHP:
Installing '/sdcard/Custom_rom/cm-12.1-20150613-UNOFFICIAL-mi3-cancro.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
Patching system image unconditionally...blockimg version is 2
erasing 318848 blocks
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/Custom_rom/cm-12.1-20150613-UNOFFICIAL-mi3-cancro.zip'
Error flashing zip '/sdcard/Custom_rom/cm-12.1-20150613-UNOFFICIAL-mi3-cancro.zip'
Updating partition details...
Please help...
Finally I have solved this problem. Yes "blkdiscard failed: Invalid argument" is error of unsuitable partition space to install a rom.
Initially my partition was like this
system = 1242 MB (1.2GB)
system1= 100 MB
After google and reading most comment from partition thread, I found out there is three version of system partition size which is 730MB, 1242MB and 1337 MB.
I found that @audahadi partition script use
system = 1337 MB
system1= 5MB
Quote:
Originally Posted by audahadi
This Procedure May Will Brick Your Device!!!!!
Only for users who comfort with single partition layout only !!!
This is a script to partiton your system partition as like stated in OP. Tested with Clockworkmod recovery.
How to use? Just flash through recovery on either partition. Remember, this will wipe your system partition, do backup for safe or no if you like to live dangerously.
Repartition_MI3W_1_2GB.zip
Credit :
http://forum.xda-developers.com/show....php?t=2765846
http://forum.xda-developers.com/gala...-data-t2762594
Click to expand...
Click to collapse
So using that script, i have succeed install CM based rom.
sorry but could you please elaborate!! I don't get it.. how could I see my partitions?! and how can I change them?!
sorry for being noob.
Go to google play and install Disc Info app. You can see your partition
Sent from my MI 3W using XDA Forums
Can you give me the link for system = 1337 MB
system1= 5MB partition?
Here you go
http://forum.xda-developers.com/attachment.php?attachmentid=3321267&d=1432050198
Sent from my MI 3W using XDA Forums
Related
Flashing from CM 5.0.8 using Rom Managers FRF83. It downloads three files, ERE27, FRF50, and FRF83. I get this error when installing part two
Code:
Installing: SDCARD:/clockworkmod/download/android.antbox.org/koush/google/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip
I:Set boot command "boot-recovery"
Finding update package...
I:Update location: SDCARD:/clockworkmod/download/android.antbox.org/koush/google/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip
Opening update package...
I:Update file path: /sdcard/clockworkmod/download/android.antbox.org/koush/google/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip
Installing update...
I:Trying update-binary.
installing HTC updater extensions
Failed to mount /dev/block/mtdblock3 on /system: Device or resource busy
mtd mount of system failed: Device or resource busy
Verifying current system...
mtd read matched size 2101248 sha e7f20e513e5bd5c30e20670e992092296ee731a0
0 bytes free on /cache (6762912 needed)
error opening /cache/recovery/otatest: No such file or directory
0 regular files in deletable directories
no files can be deleted to free space on /cache
unable to make 6762912 bytes available on /cache
script aborted: assert failed: apply_patch_space(6762912)
assert failed: apply_patch_space(6762912)
E:Error in /sdcard/clockworkmod/download/android.antbox.org/koush/google/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip
(Status 7)
Installation aborted.
Failure at line 7:
install_zip SDCARD:/clockworkmod/download/android.antbox.org/koush/google/passion/signed-passion-FRF50-from-ERE27.1e519a24.zip
From what I'm reading, this means that the updater script from Rommanager doesn't release the mount on system after the first flash, because I can easily navigate to the directory after I receive this error and install it manually. I figure the way it works is after install it umounts.
Just as an FYI, if others are trying this, this is what I did to overcome. 1.Using clockwork recovery
2.mount SD
3.find FRF83fromFRF50
4. copy to /sdcard/update.zip
5. manually install ERE27toFRF50
6. let it boot
7. reboot into stock recovery
8. install update.zip through stock recovery
BOOM FRF83
Ooops, sorry MODs. It originated as a question, but I figured it out mid writing this. Please move to general. Sorry
I have the sprint n6. I am unlocked and rooted. The phone is decrypted. I have twrp for recovery. Everytime i try to flash this through twrp, it errors out. Do i have to sideload this? Ive tried looking through the board but didnt see anything. Thanks in advance for the help
What's the error for starts
What error? Is the rom downloaded fully and not corrupted?
Sent from my Nexus 6 using Tapatalk
Installing '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
about to run program [/tmp/backuptool.sh] with 2 args
Not backing up files from incompatible version: 12
run_program: child exited with status 127
about to run program [/tmp/otasigcheck.sh] with 1 args
You have an installed system that isn't signed with this build's key, aborting...
run_program: child exited with status 1
script aborted: Can't install this package on top of incompatible data. Please try another package or run a factory reset
Can't install this package on top of incompatible data. Please try another package or run a factory reset
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'
Error flashing zip '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'
Updating partition details...
Iata backup size is 1164MB, free: 21687MB.
That was the log from twrp
toast333 said:
Installing '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
about to run program [/tmp/backuptool.sh] with 2 args
Not backing up files from incompatible version: 12
run_program: child exited with status 127
about to run program [/tmp/otasigcheck.sh] with 1 args
You have an installed system that isn't signed with this build's key, aborting...
run_program: child exited with status 1
script aborted: Can't install this package on top of incompatible data. Please try another package or run a factory reset
Can't install this package on top of incompatible data. Please try another package or run a factory reset
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'
Error flashing zip '/sdcard/Download/LS-LP-v4.0-2014-12-21-liquid_shamu.zip'
Updating partition details...
Iata backup size is 1164MB, free: 21687MB.
That was the log from twrp
Click to expand...
Click to collapse
Before installing, did you wipe the system partition?
I thought I had. Lemme try that again.
There's a Q&A for LS right here http://forum.xda-developers.com/showthread.php?t=2977149
Q&A for [ROM][MI3][5.1.1] Opticancro[03/05/15]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][MI3][5.1.1] Opticancro[03/05/15]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
:laugh:Can't wait to flash it
Hi, i am trying to install the extended version but i got the following messages.
minzip: Extracted 4 file(s)
detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
grep: /system/build.prop: No such file or directory
Not backing up files from incompatible version: 12.1
run_program: child exited with status 127
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
blockimg version is 2
erasing 318848 blocks
Patching system image unconditionally...
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Error flashing zip '/sdcard/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Updating partition details...
Iata backup size is 0MB, free: 56225MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
Click to expand...
Click to collapse
can we extend partition to 1.2gb with the flashable zip available on xda?
any demerits of increasing the partition size?
Can this done if I use twrp?how to partition system1 and system2 if I use twrp this not have dual boot?
this rom is already rooted?
or flash again supersu?
sorry for my english
d'joker said:
can we extend partition to 1.2gb with the flashable zip available on xda?
any demerits of increasing the partition size?
Click to expand...
Click to collapse
Yes you can do it but not necessary for this rom.
With extended system1 you'll lose ability to dual boot (dual boot not recommended by the way), and normally you lose ability to use MiFlash to clean flash MIUI on your phone if something went wrong.
jaliee85 said:
Can this done if I use twrp?how to partition system1 and system2 if I use twrp this not have dual boot?
Click to expand...
Click to collapse
Yes you can flash this rom using TWRP. With stock partition layout go to download "stock".No TWRP is not supporting dualboot, it only detects system1.
By the way I don't understand what you mean by "how to partition system1 and system2. Do you mean format them or resize them?
husen96 said:
this rom is already rooted?
or flash again supersu?
sorry for my english
Click to expand...
Click to collapse
Yes this rom include root, you won't need to flash supersu.zip. In order to enable root in /settings/about this phone fast press multiple time build number.
That'll enable devloper options, in devloper options (settings) enable root access.
I got this error when i flash extended version using twrp.i already extend my partition using in the post method...pls i need this solution
Code:
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
Not backing up files from incompatible version: 12.1
run_program: child exited with status 127
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
blockimg version is 2
Patching system image unconditionally... erasing 318848 blocks
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Error flashing zip '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Updating partition details...
I:Data backup size is 1216MB, free: 5906MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
Hi
What is the diferent between stock and Extended?
adsim said:
Hi
What is the diferent between stock and Extended?
Click to expand...
Click to collapse
Stock is made for flashing on stock system partition layout (system1 and system2 both ~640Mb)
Extended is made for flashing on resized partition system : system1 = 1.2Gb and system2 = 5Mb
Edit : @jaliee85 sorry but I don't know from where it may come.
If you made manual repartition just try to flash CWM and flash repartition script made by audahadi (second or third thread page about repartitioning)
having error issues with status 7
hi,
sorry for this if this question already been answer before.
i having the error with status 7
i tried many times to install the rom through CWM.
and i tried to change the binary script and still the same.
anyone of here face this problem before?
is there any solution for this?
thanks for advanced.
Riichard63 said:
Stock is made for flashing on stock system partition layout (system1 and system2 both ~640Mb)
Extended is made for flashing on resized partition system : system1 = 1.2Gb and system2 = 5Mb
Edit : @jaliee85 sorry but I don't know from where it may come.
If you made manual repartition just try to flash CWM and flash repartition script made by audahadi (second or third thread page about repartitioning)
Click to expand...
Click to collapse
Thank yous.
My device made manual repartition to system1 = 1.0Gb and system2 = 1.0Gb. Is OK?
Has anyone tried the extended version? It is work?is there any problem with the .zip ?
jaliee85 said:
I got this error when i flash extended version using twrp.i already extend my partition using in the post method...pls i need this solution
Code:
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip contains SELinux file_contexts file in its root. Extracting to /file_contexts
I:Legacy property environment initialized.
minzip: Extracted 4 file(s)
detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
Not backing up files from incompatible version: 12.1
run_program: child exited with status 127
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
blockimg version is 2
Patching system image unconditionally... erasing 318848 blocks
script aborted: blkdiscard failed: Invalid argument
blkdiscard failed: Invalid argument
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Error flashing zip '/sdcard/Download/cm-12.1-20150503-UNOFFICIAL-Opticancro-cancro.zip'
Updating partition details...
I:Data backup size is 1216MB, free: 5906MB.
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
Click to expand...
Click to collapse
i had the exact same error.
i solve it by install CWM and resize both my partitions (system1, system2) back to default size and then install the stock rom instead of extended.
Cant restore from titanium.
YES
d'joker said:
can we extend partition to 1.2gb with the flashable zip available on xda?
any demerits of increasing the partition size?
Click to expand...
Click to collapse
yes we can. i myself extended to 1.2GB one via a flashable zip.
---------- Post added at 02:58 AM ---------- Previous post was at 02:54 AM ----------
wonderboys said:
hi,
sorry for this if this question already been answer before.
i having the error with status 7
i tried many times to install the rom through CWM.
and i tried to change the binary script and still the same.
anyone of here face this problem before?
is there any solution for this?
thanks for advanced.
Click to expand...
Click to collapse
diable stock partitions and make extended partition of 1.2GB.
heating issue
Battery drain and heating issue.
Why mi band operates differently when unlocking miui or non miui ROM ?
Previously on mi3 when i was using miui phone could only be unlocked if band was in approximately 1 metre radius but now phone unlocks from 7-8 metres too(normal Bluetooth range)
I used to boast my friends by handing then my mi3 and ask then to unlock and when they encountered Patten lock, I would approach the phone and the moment i grabbed it, it got unlocked.
But note this doesn't happens
Apart from this boasting, it is really very unsafe and USELESS smart lock it it has this much big operating radius.
will there be OTA updates?
BigFatTony said:
will there be OTA updates?
Click to expand...
Click to collapse
it will be too much to ask for OTA updates, we have bigger issues to solve first like camera, ambient display etc.
having problem installing it..need a little help.. this is the error executing updater binary in zip
Guys,
I was trying to flash a custom rom ( [CANCRO][OFFICIAL][STABLE-SOKP-L-5.1.1-LMY48B-R3][SONIC OPEN KANG PROJECT]) in my mi3 phone. But I am getting a weird "Patching system image unconditionally blkdiscard failed: invalid argument" error when I tried to flash it.
The zip file is not broken, I made it sure. I tried to flash using both TWRP and cwm, not working.
Any idea?
Hi,
so I'm having a little bit of a problem with my Moto G 2nd Gen. Dual SIM 2014 (XT1068). I got the notification for the Stagefright fix update a few days ago, but every time I try to install it the installer throws an error after the progress bar is at about 40%.
Now I've found the cause. In /cache/recovery/last_log it says that /system/bin/app_process32 has an unexpected SHA1 sum. The log:
Code:
Finding update package...
I:Update location: /cache/Blur_Version.22.26.1.titan_retde.retdeall.en.DE.zip
Opening update package...
I:read key e=3 hash=20
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1462 bytes; signature 1439 bytes from end
I:whole-file signature verified against RSA key 0
I:verify_file returned 0
Installing update...
installing gptupgrade updater extensions
file_contexts path is present in /tmp/file_contexts
mount point :/system location: /dev/block/platform/msm_sdcc.1/by-name/system , file system type :ext4Verifying current system...
file "/system/bin/app_process32" doesn't have any of expected sha1 sums; checking cache
file size of "/system/bin/app_process32" is 75364
sha1 of "/system/bin/app_process32" is f29d36738da21a7cef064326462d9d9e527ba121
expected sha1 is: fb3a1cfd2e27dd648cb7ae44b9283147ce44c5f1
c0dd7831406b1e243282a46983d4440578600417
402935808 bytes free on /cache (75364 needed)
dumping bad file /system/bin/app_process32 to /cache/recovery/last_badfile
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: "/system/bin/app_process32" has unexpected contents.
"/system/bin/app_process32" has unexpected contents.
E:Error in /cache/Blur_Version.22.26.1.titan_retde.retdeall.en.DE.zip
(Status 7)
Installation aborted.
Installation aborted.
I:Saving locale "en_GB"
Rebooting...
The phone has an unlocked bootloader and was rooted with SuperSU but otherwise unmodified (I needed the root for the Sixaxis Controller). Some forum posts I found mentioned that the "Xposed Framework" is probably the cause, but I did not install that.
... I've found the original file in /system/bin/app_process32_original but system-recovery.sh also has a backup and was definitely modified by SuperSU
So I guess the question is: how can I install the Stagefright update without losing root?
System Version: 22.26.1.titan_retde.retdeall.en.DE retde
Update Version: 22.56.3.en.DE
drunken_m said:
Hi,
so I'm having a little bit of a problem with my Moto G 2nd Gen. Dual SIM 2014 (XT1068). I got the notification for the Stagefright fix update a few days ago, but every time I try to install it the installer throws an error after the progress bar is at about 40%.
Now I've found the cause. In /cache/recovery/last_log it says that /system/bin/app_process32 has an unexpected SHA1 sum. The log:
Code:
Finding update package...
I:Update location: /cache/Blur_Version.22.26.1.titan_retde.retdeall.en.DE.zip
Opening update package...
I:read key e=3 hash=20
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1462 bytes; signature 1439 bytes from end
I:whole-file signature verified against RSA key 0
I:verify_file returned 0
Installing update...
installing gptupgrade updater extensions
file_contexts path is present in /tmp/file_contexts
mount point :/system location: /dev/block/platform/msm_sdcc.1/by-name/system , file system type :ext4Verifying current system...
file "/system/bin/app_process32" doesn't have any of expected sha1 sums; checking cache
file size of "/system/bin/app_process32" is 75364
sha1 of "/system/bin/app_process32" is f29d36738da21a7cef064326462d9d9e527ba121
expected sha1 is: fb3a1cfd2e27dd648cb7ae44b9283147ce44c5f1
c0dd7831406b1e243282a46983d4440578600417
402935808 bytes free on /cache (75364 needed)
dumping bad file /system/bin/app_process32 to /cache/recovery/last_badfile
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: "/system/bin/app_process32" has unexpected contents.
"/system/bin/app_process32" has unexpected contents.
E:Error in /cache/Blur_Version.22.26.1.titan_retde.retdeall.en.DE.zip
(Status 7)
Installation aborted.
Installation aborted.
I:Saving locale "en_GB"
Rebooting...
The phone has an unlocked bootloader and was rooted with SuperSU but otherwise unmodified (I needed the root for the Sixaxis Controller). Some forum posts I found mentioned that the "Xposed Framework" is probably the cause, but I did not install that.
... I've found the original file in /system/bin/app_process32_original but system-recovery.sh also has a backup and was definitely modified by SuperSU
So I guess the question is: how can I install the Stagefright update without losing root?
System Version: 22.26.1.titan_retde.retdeall.en.DE retde
Update Version: 22.56.3.en.DE
Click to expand...
Click to collapse
unroot or flash stock firmware from my signature
reefuge said:
unroot or flash stock firmware from my signature
Click to expand...
Click to collapse
Thanks, but that was exactly what I didn't want to do. But well, I still did it.
Unrooted (that reverted the necessary files back to normal),
Installed the update,
Rooted again with CF AutoRoot.
I need help!
drunken_m said:
Thanks, but that was exactly what I didn't want to do. But well, I still did it.
Unrooted (that reverted the necessary files back to normal),
Installed the update,
Rooted again with CF AutoRoot.
Click to expand...
Click to collapse
Hello , I am Brazilian and I wonder exactly how you installed the update . The XT1068 and I 'm having the same problem , however I can not solve. (Using the Google Translate)
drunken_m said:
Thanks, but that was exactly what I didn't want to do. But well, I still did it.
Unrooted (that reverted the necessary files back to normal),
Installed the update,
Rooted again with CF AutoRoot.
Click to expand...
Click to collapse
Thank but in which way i can unroot it ?
Thank
Hispa
Hi,
I'm using SuperSU which has an option to remove itself.
SuperSU -> Settings -> Cleanup
There you can choose between "Switch superuser app" or "Full unroot".
I used "Switch superuser app", that was enough for me to install the system update.