[Q] Toshiba Folio 100: partition-type:recovery error(0x2) - General Questions and Answers

Hello,
i am using my Toshiba Folio as a playground for new ROMs. I have already successfully installed different mods but since the last one, my Folio seems to be broken.
I followed this guide here: http://forum.xda-developers.com/showpost.php?p=31004271&postcount=9 but when i issue the fastboot commands i always get this:
[email protected]:~/Downloads/adt-bundle-linux/sdk/platform-tools> fastboot erase recovery
erasing 'recovery'...
FAILED (command write failed (Cannot send after transport endpoint shutdown))
finished. total time: 0.001s
[email protected]:~/Downloads/adt-bundle-linux/sdk/platform-tools> fastboot erase userdata
erasing 'userdata'...
FAILED (command write failed (Cannot send after transport endpoint shutdown))
finished. total time: 0.002s
Click to expand...
Click to collapse
My Folio says:
Failed to process command getvar: partition-type:xxxx error(0x2)
Click to expand...
Click to collapse
where 'xxxx' is the partition i try to access accordingly.
Can anyone help me out or do i have a brick now? I definitly have done something wrong.
Greetings,
Alex

problem
hello good, I have the same problem as you, could you fix it?

Just popped here to say how I managed to get arround this:
fastboot -u -S 0 flash linux boot.img
and it worked.
My understanding is that 'fastboot' changed and has new capability of getting 'partition-type' from device.
Folio doesn't seem to understand that command, so it's either -u or -S 0 that makes it work.
Cheers my friends!

I had the same problem!! The working parameters is "-S 0"

Tried everything // getting failed // found a way
I spent the whole day to understand how to make this work...
I did the factory reset via Settings in Android menu, I connected the tablet to PC and the only thing I could do using fastboot was "reboot".
I forgot all "erase" functions and I tried "fastboot boot <filename.img>" and it worked!
Then you follow http://forum.xda-developers.com/showpost.php?p=31004271&postcount=9
Just try this if anything else fails.

Related

[SOLVED] Can't 'fastboot erase userdata'... fails with unknown error

Code:
$ fastboot erase userdata
erasing 'userdata'...
FAILED (command write failed (Invalid argument))
finished. total time: 0.001s
also...
Code:
$ fastboot format userdata
erasing 'userdata'...
OKAY [ 1.062s]
formatting 'userdata' partition...
FAILED (command write failed (Unknown error))
FAILED (command write failed (Unknown error))
finished. total time: 1.804s
I also notice that the up/down arrows become unresponsive on the phone after this (i'm assuming this is abnormal). Any other commands after this fail no matter what it is.
I'm not sure if I have dead memory or what. Any reason for this? What exactly is userdata?
SOLUTION: The problem was using USB 3.0 ports on Windows. Swapping to USB 2.0 port, everything works perfectly.
Why do you want to erase userdata?
Edit, what are you trying to do?
Try a 'fastboot oem lock'. If it is still unlocked after rebooting the bootloader, then join the club! I will be sending my phone back under warranty (in an unlocked state) on Monday.
I tried a different USB port on my PC and all was working fine now.
I was following instructions to do factory reset and firmware installation on my Nexus 5, but lots of steps were failing. I don't think USB 3.0 ports work well with ADB commands on Windows.
Android.Addiction said:
I tried a different USB port on my PC and all was working fine now.
I was following instructions to do factory reset and firmware installation on my Nexus 5, but lots of steps were failing. I don't think USB 3.0 ports work well with ADB commands on Windows.
Click to expand...
Click to collapse
Similar issues here with usb 3.0 port. It kept getting stuck on erasing userdata. Switched to usb 2.0 and no more problems.
razorloves said:
Similar issues here with usb 3.0 port. It kept getting stuck on erasing userdata. Switched to usb 2.0 and no more problems.
Click to expand...
Click to collapse
I thought it was the cable and I got the original one that came with my Nexus 5 and still the same issue. After reading this I switched to the usb 2.0 port on my desktop and it worked!
Thanks a lot!!!
Android.Addiction said:
Code:
$ fastboot erase userdata
erasing 'userdata'...
FAILED (command write failed (Invalid argument))
finished. total time: 0.001s
also...
Code:
$ fastboot format userdata
erasing 'userdata'...
OKAY [ 1.062s]
formatting 'userdata' partition...
FAILED (command write failed (Unknown error))
FAILED (command write failed (Unknown error))
finished. total time: 1.804s
I also notice that the up/down arrows become unresponsive on the phone after this (i'm assuming this is abnormal). Any other commands after this fail no matter what it is.
I'm not sure if I have dead memory or what. Any reason for this? What exactly is userdata?
SOLUTION: The problem was using USB 3.0 ports on Windows. Swapping to USB 2.0 port, everything works perfectly.
Click to expand...
Click to collapse
how to swap to USB 2.0

[Script][Linux/Windows_7/8][TF700T][Firmware][Bootloader][Stock_Rom]

This is for users that would like to upgrade, downgrade from an older, newer bootloader... It will also unbirck a soft bricked 700.. All you need is fastboot installed on your Linux machine and the tablet to be able to boot into fastboot mode......
This will wipe all your data, ALL OF IT.....
This is a very easy script to run from Linux Terminal......Download the zip (MAKE SURE YOU GET THE CORRECT SKU) in the download tab at the top of the page...Extract once...Open a terminal from that directory...Than boot your tablet into fastboot mode (bootloader screen) and type just to verify your PC can see your tablet
Code:
fastboot devices
If you get an output like this your ready to run the script!!!!!
OUTPUT
Code:
[email protected] ~/Asus_tf700t_US_firmware_v10.6.1.14.10 $ fastboot devices
015d2bbce2501405 fastboot
Notice that Im in the directory of the unzipped download folder
Run the Script
Code:
./flash-all.sh
here is my output of the process so everbody is aware of what is going to happen and the amount of time it will take
OUTPUT
Code:
[email protected] ~/Asus_tf700t_US_firmware_v10.6.1.14.10 $ ./flash-all.sh
******** Did you mean to fastboot format this partition?
erasing 'system'...
OKAY [ 3.008s]
finished. total time: 3.008s
erasing 'recovery'...
OKAY [ 1.998s]
finished. total time: 1.998s
erasing 'boot'...
OKAY [ 0.536s]
finished. total time: 0.536s
erasing 'misc'...
OKAY [ 1.601s]
finished. total time: 1.601s
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 1.953s]
finished. total time: 1.953s
erasing 'system'...
OKAY [ 1.685s]
sending 'system' (800927 KB)...
OKAY [132.489s]
writing 'system'...
OKAY [179.141s]
finished. total time: 313.315s
rebooting...
finished. total time: 0.020s
XDA:DevDB Information
[Script][Linux/Windows_7/8][TF700T][Firmware][Bootloader][Stock_Rom], a Tool/Utility for the Asus Transformer TF700
Contributors
lj50036, sbdags
Version Information
Status: Testing
Created 2014-02-12
Last Updated 2014-02-12
Windows 7/8 Only
sbdags said:
Here is the equivalent windows.bat file. NOTE this only works in Windows 7 or 8 as XP / Vista don't have the timeout command.
Copy to notepad and save as flash-all.bat in the same folder as fastboot.exe and the cwm.img file. Note you will also need a boot.blob from lj50036 to flash system.....
Alternatively unzip the attached to do the same. (Still need the source of boot.blob @lj50036) This will flash cwm 6.0.4.6 which is the latest touch version as of today:
Code:
Echo Press Control-C to quit or any key to continue!
Pause > Nul
fastboot erase system
timeout 5
fastboot erase recovery
timeout 5
fastboot erase boot
timeout 5
fastboot erase misc
timeout 5
fastboot erase cache
timeout 5
fastboot -i 0x0B05 flash system boot.blob
timeout 5
fastboot -i 0x0B05 reboot-bootloader
timeout 20
fastboot -i 0x0B05 flash recovery cwm.img
timeout 5
Echo Done - Press any key to reboot
Pause > Nul
fastboot -i 0x0B05 reboot
Click to expand...
Click to collapse
Thx sbdags for this Windows version.. For the less fortunate Windows users.... JK
Look at sbdags post for the Flash-All.zip
Reserved
Issues
Code:
#!/bin/sh
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fastboot erase system
sleep 5
fastboot erase recovery
sleep 5
fastboot erase boot
sleep 5
fastboot erase misc
sleep 5
fastboot erase cache
sleep 5
fastboot -i 0x0B05 flash system boot.blob
sleep 5
fastboot -i 0x0B05 reboot
Works great, but if I try to add a recovery and make the script look like this
Code:
#!/bin/sh
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fastboot erase system
sleep 5
fastboot erase recovery
sleep 5
fastboot erase boot
sleep 5
fastboot erase misc
sleep 5
fastboot erase cache
sleep 5
fastboot -i 0x0B05 flash system boot.blob
sleep 5
fastboot -i 0x0B05 reboot-bootloader
sleep 10
fastboot -i 0x0B05 flash recovery cwm.img
sleep 5
fastboot -i 0x0B05 reboot
I get a infinite reboot..... Can I not do it like that???
Any help with this would be great thx all.....
Try sleep 20 or 30
Just saw you got it fixed
Feedbck
sbdags said:
Try sleep 20 or 30
Click to expand...
Click to collapse
YES!!!! sleep 20 worked like a charm.. A little more testing and I will post with recovery..... LOL... Thx for the help!!!!!
sbdags said:
Try sleep 20 or 30
---------- Post added at 07:22 PM ---------- Previous post was at 07:20 PM ----------
Why are you flashing boot.blob to system? Does your boot blob contain system? Don't you mean staging?
Click to expand...
Click to collapse
The boot.blob is really the stock firmware from asus that I renamed boot.blob....The script did not like to run it as just blob, It would hang in flashing.....Should I do something different???
lj50036 said:
YES!!!! sleep 20 worked like a charm.. A little more testing and I will post with recovery..... LOL... Thx for the help!!!!!
Click to expand...
Click to collapse
Tell you what if you do the Linux I'll do the Windows version
Sweet
sbdags said:
Tell you what if you do the Linux I'll do the Windows version
Click to expand...
Click to collapse
That sounds great!!!! Let me know if there is anything I can do.....Thx for your help lj
Here is the equivalent windows.bat file. NOTE this only works in Windows 7 or 8 as XP / Vista don't have the timeout command.
Copy to notepad and save as flash-all.bat in the same folder as fastboot.exe and the cwm.img file. Note you will also need a boot.blob from lj50036 to flash system.....
Alternatively unzip the attached to do the same. (Still need the source of boot.blob @lj50036) This will flash cwm 6.0.4.6 which is the latest touch version as of today:
Code:
Echo Press Control-C to quit or any key to continue!
Pause > Nul
fastboot erase system
timeout 5
fastboot erase recovery
timeout 5
fastboot erase boot
timeout 5
fastboot erase misc
timeout 5
fastboot erase cache
timeout 5
fastboot -i 0x0B05 flash system boot.blob
timeout 5
fastboot -i 0x0B05 reboot-bootloader
timeout 20
fastboot -i 0x0B05 flash recovery cwm.img
timeout 5
Echo Done - Press any key to reboot
Pause > Nul
fastboot -i 0x0B05 reboot
Good evening gentlemen.
fastboot = Vol down + Pwr right?
I can not get into fastboot.
I am trying to recover my soft bricked tf700.
I am currently on TWRP 2.2.1.4 [i know] and can not get anywhere but the recovery screen.
anything I try I get:
E: failed to mount /system, /data, /cache, etc.
Any ideas on why this could be would be greatly appreciated.
C.patrick said:
Good evening gentlemen.
fastboot = Vol down + Pwr right?
I can not get into fastboot.
I am trying to recover my soft bricked tf700.
I am currently on TWRP 2.2.1.4 [i know] and can not get anywhere but the recovery screen.
anything I try I get:
E: failed to mount /system, /data, /cache, etc.
Any ideas on why this could be would be greatly appreciated.
Click to expand...
Click to collapse
Yes thats how you get to fastboot.. I assume you have used fastboot before..In recovery try this in recovery
Code:
adb devices
Let me know the outcome of that... Thx lj
lj50036 said:
Yes thats how you get to fastboot.. I assume you have used fastboot before..In recovery try this in recovery
Code:
adb devices
Let me know the outcome of that... Thx lj
Click to expand...
Click to collapse
Thanks for the reply!
/ # adb devices
got a
E: failed to mount /data (no such file or directory)
when under root
C.patrick said:
Good evening gentlemen.
fastboot = Vol down + Pwr right?
I can not get into fastboot.
I am trying to recover my soft bricked tf700.
I am currently on TWRP 2.2.1.4 [i know] and can not get anywhere but the recovery screen.
anything I try I get:
E: failed to mount /system, /data, /cache, etc.
Any ideas on why this could be would be greatly appreciated.
Click to expand...
Click to collapse
How did you get into this situation? Have you tried to wipe data from the bootloader menu, do a factory reset from Android, or "boot to recovery" from Android before? Any of these together with a non-working recovery (such as yours) are a recipe for a brick.
If you have a current bootloader and an old recovery, the recovery can't access your internal storage, so it cannot reset the "boot to recovery" flag set by one of the above operations.
For a possible fix, read this thread: http://forum.xda-developers.com/showthread.php?t=2437376
Hey there,
do I need an unlocked bootloader for this or is it a way to flash cwm without unlocked bootloaders? I am asking because I got my pad back from rma repair and I'm not able to unlock my bootloader now. But I have contacted the support to register my mac adress. But maybe your script is helpful in my situation?
pestbeule said:
do I need an unlocked bootloader for this
Click to expand...
Click to collapse
Yes.
pestbeule said:
or is it a way to flash cwm without unlocked bootloaders? I am asking because I got my pad back from rma repair and I'm not able to unlock my bootloader now. But I have contacted the support to register my mac adress. But maybe your script is helpful in my situation?
Click to expand...
Click to collapse
Unfortunately there is no way to install recoveries or kernels not signed by Asus with a locked bootloader. Good luck with Asus support, hope your request reaches the right person.
Hi,
Thanks for the great script but I have a novel problem!
I am running Linux Mint 16. I am one of those stupid people that tried to flash a JB rom on my 9.4.5.30 bootloader. :crying:
So I thought this was the perfect tool for me! When I ran ./flash-all.sh here is what I got:
Code:
[email protected] ~/Desktop/Untitled Folder $ ./flash-all.sh
erasing 'system'...
OKAY [ 3.457s]
finished. total time: 3.457s
erasing 'recovery'...
OKAY [ 1.918s]
finished. total time: 1.918s
erasing 'boot'...
OKAY [ 0.495s]
finished. total time: 0.495s
erasing 'misc'...
OKAY [ 0.872s]
finished. total time: 0.872s
erasing 'cache'...
OKAY [ 2.149s]
finished. total time: 2.149s
sending 'system' (800927 KB)...
OKAY [134.175s]
writing 'system'...
FAILED (remote: ()
finished. total time: 134.662s
< waiting for device >
Meanwhile the tf700 in tiny red text says "failed to process command flash:system error(0x170003). In white text above there there are a few lines which I believe were from successful attempts to erase things. There is also a line directly above the scary read text stating "Signature Match".
Not sure where I went wrong. Any ideas?
Thanks for your time!
Feedback
LurkerRWO said:
Hi,
Thanks for the great script but I have a novel problem!
I am running Linux Mint 16. I am one of those stupid people that tried to flash a JB rom on my 9.4.5.30 bootloader. :crying:
So I thought this was the perfect tool for me! When I ran ./flash-all.sh here is what I got:
Code:
[email protected] ~/Desktop/Untitled Folder $ ./flash-all.sh
erasing 'system'...
OKAY [ 3.457s]
finished. total time: 3.457s
erasing 'recovery'...
OKAY [ 1.918s]
finished. total time: 1.918s
erasing 'boot'...
OKAY [ 0.495s]
finished. total time: 0.495s
erasing 'misc'...
OKAY [ 0.872s]
finished. total time: 0.872s
erasing 'cache'...
OKAY [ 2.149s]
finished. total time: 2.149s
sending 'system' (800927 KB)...
OKAY [134.175s]
writing 'system'...
FAILED (remote: ()
finished. total time: 134.662s
< waiting for device >
Meanwhile the tf700 in tiny red text says "failed to process command flash:system error(0x170003). In white text above there there are a few lines which I believe were from successful attempts to erase things. There is also a line directly above the scary read text stating "Signature Match".
Not sure where I went wrong. Any ideas?
Thanks for your time!
Click to expand...
Click to collapse
I may know what is going on.... Take the boot.blob file and move it to your home directory, the same directory that when you open your terminal window its there so an easy check of this is just open terminal and type
Code:
ls
This will give you a list of everything in that directory make sure your boot.blob is there... here is what it looks like on my PC also Mint 16
Code:
[email protected] ~ $ ls
android bin ccache crombix Downloads
[email protected] ~ $
Once you have done that, go to this forum on xda skip the nvflash stuff and start with the fastboot commands... Just enter them one at a time,
make sure you read between the inputs and outputs of the forum, there is good info in there... Let me know if I can help in the process.. Thx lj
http://forum.xda-developers.com/showthread.php?t=2538028
Hi again!
Thanks for the advice, I am in the process of doing what you said but already ran into a hiccup. When I ran 'fastboot -w' I get
Code:
athena torytop # fastboot -w
erasing 'userdata'...
OKAY [ 27.601s]
formatting 'userdata' partition...
Erase successful, but not automatically formatting.
File system type not supported.
OKAY [ 0.000s]
erasing 'cache'...
OKAY [ 1.428s]
formatting 'cache' partition...
Erase successful, but not automatically formatting.
File system type not supported.
OKAY [ 0.000s]
finished. total time: 29.030s
Also, I wasn't able to run fastboot with sudo, it says command not found. So I ran sudo su and then proceeded per your advice minus the sudo commands. I will edit this post when I finish.
Edit: Failed with the same error, and I can't help but wonder if the failure to partition isn't related. This is not my own tablet, a friend gave it to me as it was bricked already, but I was able to get into recovery so took this on as a fun little project. So yeah, I have no clue what he did to brick it, maybe messed with partitions?
LurkerRWO said:
Hi again!
Thanks for the advice, I am in the process of doing what you said but already ran into a hiccup. When I ran 'fastboot -w' I get
Code:
athena torytop # fastboot -w
erasing 'userdata'...
OKAY [ 27.601s]
formatting 'userdata' partition...
Erase successful, but not automatically formatting.
File system type not supported.
OKAY [ 0.000s]
erasing 'cache'...
OKAY [ 1.428s]
formatting 'cache' partition...
Erase successful, but not automatically formatting.
File system type not supported.
OKAY [ 0.000s]
finished. total time: 29.030s
Also, I wasn't able to run fastboot with sudo, it says command not found. So I ran sudo su and then proceeded per your advice minus the sudo commands. I will edit this post when I finish.
Click to expand...
Click to collapse
Skip it

Nexus 5 Stuck In BootLoop After Replacing Power Button

Nexus 5 rebooting loop with dead Recovery mode ! any help ?
Welcome Dears
Before 1 week ago, my nexus 5 went into rebooting loop, it was a hardware issue, and after I replace the power button
still the phone rebooting on Google logo every second, when I connect it to the charger, its charging without problem until get a full charged battery, so I think it is not a battery issue, and I can enter the fastboot mode without rebooting, so I think its not a hardware issue now, it was and its goes out !
the problem also when I enter the recovery mode , "No Command" with android logo appears, then I press the Volume Up button then I get the recovery mode command, but unfortunately my PC can't see the phone, so I can't use the "adb sideload" command to flash my MIUI ROM (Version: 5.8.6) again
Code:
adb sideload MIUI.zip
error: device not found
but in the fastboot my PC can connect with Nexus, so I try to flash the CWM/TWRP recovery , I got these replay from the command,
Code:
C:\adb>fastboot flash recovery hammerhead-cwm-6.0.4.4-unofficial.img
< waiting for device >
sending 'recovery' (10498 KB)...
OKAY [ 0.453s]
writing 'recovery'...
OKAY [ 0.847s]
finished. total time: 1.302s
C:\adb>
but unfortunately when I repeat my nexus to recovery mode I didn't get the new flashed recovery ! still stuck on the dead old one !
when I use from recovery mode the "wipe data/factory reset" I got these three line then flashing on "no command" dead recovery logo
Code:
--wiping data. . .
Formatting/data. . .
Formatting/cache . . .
then go into "no command" dead recovery logo flashing until I force it shutdown by power button !
same result by "wipe cache partition" command
my Next step to flash the factory image by fastbood command but this solution will remove all files & pictures & Videos & my notes isn't it ?!
so if that is right ? do you have any other solution to run up my nexus and avoiding these rebooting loop or flash new recovery / custom ROM without loosing my data ?! " I am not afraid of loos any Apps and data of them" I need my sound files, videos, pictures and notes.
Pictures below for more clarify the issue !
I get "No Command" when I enter the Recovery mode, until I press the Volume Up
http://store2.up-00.com/2015-08/1440196110631.jpg
The pictures of Dead Recovery Mode commands
http://store2.up-00.com/2015-08/1440196110722.jpg
Thank you.
try this (maybe you just missed the second command - afaik without the bootloader reboot the flashed recovery won't stick):
Code:
fastboot flash recovery /path/to/recovery.img
fastboot reboot-bootloader
and then try to reboot into recovery on your phone
if this doesn't work:
just download stock image, unpack it, open the flash-all.xxx (bat for windows / sh for linux) and remove the "-w" from the last line.
(this will prevent the script from wiping all of your data.)
then just execute the script.
afterwards you can flash the recovery (see above - and don't forget the reboot-bootloader thingy ^^).
and in custom recovery you can install your zips (custom rom and supersu).
Hi b666m
Thank you for your support & teach me new info & steps
I tried your first idea with the two commands, but unfortunately still the recovery stuck on the old one, I tried with three files of recovery image !
I will try your 2th solution but I have to ask you again and double check if I got it correctly to avoid any missing of my important files & Pictures.
as my OS Windows, you mean I have to open "Flash-all.bat" file and delete the "-W" from the flashing command
"fastboot -w update image-hammerhead-ktu84p.zip"
picture bellow for more clear
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
is it like that ? and that will not delete my files after I double click the flash-all.bat file ?
Thank you again for your support. :good:
The last command which contained "-w"
Code:
"fastboot update image-hammerhead-ktu84p.zip"
will flash the "image-hammerhead-ktu84p.zip" file ,
which is already has a "userdata.img" file inside it , I think this is will formatting the userdata also and write new data isn't it ?
as that is mentioned in this link:
http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
Code:
fastboot flash userdata C:\image-hammerhead-krt16m\userdata.img
(Note: this command will wipe your device (including \sdcard), EVEN if your bootloader is already unlocked.)
is that right ?
Yes that is right. Not to change tactics here... But one use twrp recovery because support for cwm ended over a year ago. If you after going to flash factory images I would unzip and flash them all individually except for the userdata.img which would wipe your sd.
Sent from my Nexus 5 using Tapatalk
---------- Post added at 10:18 PM ---------- Previous post was at 10:16 PM ----------
Follow method two in the how to flash factory images thread you linked. What was suggested before was to open and edit the flash-all.bat script by removing the -w in the script which would wipe. The flash-all has given people issues in the past and by doing each one individually you can see them succeed individually.
Sent from my Nexus 5 using Tapatalk
The best way to solve your problem . it will 100% work I can assure you . download nexus root tool kit on you PC and once downloaded install and then open the application then .. Put your nexus 5 into bootloader if possible and connect the phone to you PC with the OEM USB cable . in the application on the PC you will see unroot and below that an option (soft brick ) chose that and press unroot follow the step and your phone will be fine . I hope I will get a positive feedback from you . enjoying using your nexus 5
Sent from my A0001 using Tapatalk
Dear @jwhyte : Thank you very much for your support and clarify the issue of flashing the userdata.img , I will go with your idea to flash every file individually except the userdata.img file.
Dear @adarshdeep : thank you very much for you support, the nexus root tool kit App was very great, and the "flsh stuck + unroot" with "soft brick" has an a good choosing with "No Wipe Data", but unfortunately my Nexus still in Bootloop after I applied this good idea,
The nexus tool kit succeed to flash the
bootloader, radio, recovery, system and I leaved the Nexus for 30 minutes after I read these info but still same issue
Code:
Booting up your freshly flashed stock device...
------------------------------------------------------------------
Wait for your device to finish booting up...
- It may appear to be boot looping; just wait...
- It could take 5-10 minutes; please be patient...
When its finally booted back up, please remember
to re-enable USB debugging if you plan on using
the toolkit to perform other operations.
any advice please ?
The new update of my trials also:
I got a connection between my Nexus and My Work PC by ADB sideload mode,
and I applied this command to flash the ROM:
Code:
adb sideload Rom.zip
and the adb uploaded reach the 100%
and the Nexus 5 start to flashing the ROM, but it didn't complete and this is the output messages on the nexus screen:
Code:
Now send the package you want to apply
to the device with "adb sideload <filename>" ...
Restarting adbd ...
Finding update package ...
Opening update package ...
Verifying update package ...
Installing update ...
symlink: some symlinks failed
E:Error in /tmp/update.zip
(Status 7)
Installation aborted.
what is the symlinks failed and (Status 7 Error) ? there is any solution for this error message ?
Thank you for support to recover my Nexus and files, I have tried for one week now, and I am sure I will get the solution with your support :highfive:
unfortinatily when I tried to flash every file as individual, the adb tools replay with FAILED message (FAILED (remote: flash write failure))
even if I used these three commands before
fastboot erase system
fastboot erase cache
fastboot erase boot
the messages replay by adb
Code:
C:\adb>fastboot flash bootloader bootloader-hammerhead-hhz11k.img
sending 'bootloader' (2508 KB)...
OKAY [ 0.299s]
writing 'bootloader'...
FAILED (remote: flash write failure)
finished. total time: 0.499s
C:\adb>fastboot flash radio radio-hammerhead-m8974a-2.0.50.1.16.img
sending 'radio' (45409 KB)...
OKAY [ 1.617s]
writing 'radio'...
FAILED (remote: flash write failure)
finished. total time: 1.797s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
C:\adb>fastboot flash system system.img
erasing 'system'...
OKAY [ 0.119s]
sending 'system' (721400 KB)...
OKAY [ 23.172s]
writing 'system'...
FAILED (remote: flash write failure)
finished. total time: 23.473s
C:\adb>fastboot flash boot boot.img
sending 'boot' (8700 KB)...
OKAY [ 0.387s]
writing 'boot'...
FAILED (remote: flash write failure)
finished. total time: 0.567s
C:\adb>fastboot flash recovery recovery.img
sending 'recovery' (9284 KB)...
OKAY [ 0.417s]
writing 'recovery'...
FAILED (remote: flash write failure)
finished. total time: 0.591s
C:\adb>fastboot erase cache
******** Did you mean to fastboot format this partition?
erasing 'cache'...
FAILED (remote: failed to erase partition)
finished. total time: 0.213s
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
is that means the mobile is hard break ?!
When I tried to Flash Stuck by the "nexus root tool kit" without wiping data, I got failed in this log for:
bootloader + radio + system, and pass for boot + recovery
Code:
Flash Stock + Unroot...
------------------------------------------------------------------
sending 'bootloader' (3119 KB)...
OKAY [ 0.305s]
writing 'bootloader'...
FAILED (remote: flash write failure)
finished. total time: 0.513s
rebooting into bootloader...
OKAY [ 0.003s]
finished. total time: 0.004s
sending 'radio' (45425 KB)...
OKAY [ 1.611s]
writing 'radio'...
FAILED (remote: flash write failure)
finished. total time: 2.839s
rebooting into bootloader...
OKAY [ 0.005s]
finished. total time: 0.006s
sending 'boot' (8980 KB)...
OKAY [ 0.487s]
writing 'boot'...
OKAY [ 0.746s]
finished. total time: 1.241s
rebooting into bootloader...
OKAY [ 0.003s]
finished. total time: 0.004s
sending 'recovery' (9696 KB)...
OKAY [ 0.506s]
writing 'recovery'...
OKAY [ 0.795s]
finished. total time: 1.307s
rebooting into bootloader...
OKAY [ 0.003s]
finished. total time: 0.004s
erasing 'system'...
OKAY [ 0.115s]
sending 'system' (1021840 KB)...
OKAY [ 32.279s]
writing 'system'...
FAILED (remote: flash write failure)
finished. total time: 32.587s
rebooting into bootloader...
OKAY [ 0.003s]
finished. total time: 0.004s
rebooting into bootloader...
OKAY [ 0.003s]
finished. total time: 0.006s
Post-Flash Factory Reset...
downloading 'boot.img'...
OKAY [ 0.420s]
booting...
OKAY [ 0.107s]
finished. total time: 0.537s
You should now see an android on its back with an exclamation point.
This is the 'Pre-screen' to stock android recovery. It requires a button
combination to bring up the menu:
1. While holding down Power, press Volume Up
2. Using the volume buttons highlight 'wipe cache partition'
3. Use the power button to select it.'
4. Wait while it formats 'cache'....
4. Select 'reboot system now'
Press any key to cotinue...
any help to understand why the flashing of bootloader + radio + system were failed ?!
@M_Nexus5. Out of curiosity what happens if you try locking your bootloader in fastboot and rebooting? Does the bootloader stay locked?
fastboot oem lock
fastboot oem device-info
Sent from my Nexus 9 using XDA Free mobile app
Dear @jd1639 : thank you very much for your support, I will try your idea and submit the result here, but if the bootloader be lucked and can't be unlock again we will loos this feature of unlocked bootloader isn't it ?
Now I have a good news I got & copy all my files, :highfive:
I play with some features of Nexus root kit tool and try to flash stock Rom and there were a failed as I mentioned that in my last posts,
I flashed each failed X.img, individually under "Fastboot Flash" menus in "Advanced Utilities" Section,
Then I press Custom recovery Under "Fastboot Boot" in "Advanced Utilities" Section, I think this option is the key because it forced the Nexus to run into TWRP recovey mode :good: "but without flash it, because when I reboot by device to recovery mode again I got the dead old one !!
and this recovery "TWRP" support the "Enable MTP" protocol, so after that I got a connection for my nexus as a storage with my PC and copy All files & Pictures,
I Can copy from the device, but I con't copy from my PC to it.
but there are some Error message in the log of TWRP recovery mode:
Code:
Updating partion details
[COLOR="Red"]E: Unable to mount '/Persist'[/COLOR]
...done
Full SELinux support is present.
[COLOR="Red"]E: Unable to open '/cach/recovery/.version'.[/COLOR]
MTP Enable
also when I tried to flash the slim Rom by install option I got some error message , the TWRP can't flash the Rom here are the messages:
Code:
when I tried to flash a ROM.zip file I got some error messages like this:
Format and Mount System, Mount Data ...
Symlinks and Permissions ...
symlink: some symlinks faild
[COLOR="Red"]E: Error executing updater binary in zip '/sdcard/Zip File sh Update File/Slim-4.4.4.zip[/COLOR]
Error flashing zip 'sdcard/Zip flash Update File/Slim-4.4.4.zip'
Updating partition details...
[COLOR="Red"]E: Unable to mount '/persist'[/COLOR]
...done
also I tried to flash the same my Nexus ROM, (MIUI 4-4-4), but I got same result & Error messages, all Rom already on my sdcard before 4 months maybe.
When I tried "Cache & Dalvik Wipe Complate", I got same error.
Code:
Wiping Dalvik Cach Directories...
Cleaned: /data/dalvik-cach...
-- Dalvik Cach Directories Wipe Complete!
Updating partition details...
[COLOR="Red"]E: Unable to mount '/persist'[/COLOR]
Now may if I flash the stock factory image with wiping all data "its default" solve the problem ?!
or the error message above shown something wrong with device ? or need a certain tool to fix it ?!
or I can fix this issue by "Mount" option in the TWRP Recovery ?! I never used this option !
I will try to flash the stock factory image when I come back to the home.
The big important thing was my files and I got them now by your support, Thaaaanks :fingers-crossed:
the next step, am I get my device back or need to buy new one ?! :cyclops:
Thank you again for your support and I hope the log error messages will give more help to explain the real issue for you.
Well it sounds like you got what you wanted... However from what I've been able to find the errors you are running up against is not good. It sounds like the failed to flash errors and if you boot into twrp which you did and you get mount problems there is a very good chance your sd is fried.
The reason @jd1639 asked about the OEM lock I believe is if it won't stay locked or unlocked it is sd issue.
You can try contacting Google about an RMA however by you replacing there power button they most likely won't accept it.
Good luck glad you got your files.
Sent from my Nexus 5 using Tapatalk
@jd1639 this is the result of the commands, the bootloader is locked now, but return back when I restart the device !
Code:
C:\adbToolsss>fastboot oem lock
...
OKAY [ 0.037s]
finished. total time: 0.037s
C:\adbToolsss>fastboot oem device-info
...
(bootloader) Device tampered: true
(bootloader) Device unlocked: false
(bootloader) off-mode-charge: true
OKAY [ 0.004s]
finished. total time: 0.004s
C:\adbToolsss>
after restarting the device:
Code:
C:\adbToolsss>fastboot oem device-info
...
(bootloader) Device tampered: true
(bootloader) Device unlocked: true
(bootloader) off-mode-charge: true
OKAY [ 0.004s]
finished. total time: 0.005s
C:\adbToolsss>
Dear @ jwhyte , yes it was a good luck when I got a copy of my files, but do you mean that is the error message of "Unable to mount" is the sdcard/storage of devices damaged and can't be fix ?!
about the RMA, my devices already out of warranty, I bought it more than one year ago.
so now go ahead to choose & buy a new device ?
Update:
 @D1639
may I got it here in the link of your post
http://forum.xda-developers.com/showpost.php?p=50142493&postcount=14
now the emmc of device is damaged , and I have to buy new device no other solution for this damage whatever software/hardware ?
M_Nexus5 said:
Update:
@D1639
may I got it here in the link of your post
http://forum.xda-developers.com/showpost.php?p=50142493&postcount=14
now the emmc of device is damaged , and I have to buy new device no other solution for this damage whatever software/hardware ?
Click to expand...
Click to collapse
If you can't lock/unlock your bootloader there probably isn't anything you can do. But I'd give this a try, http://forum.xda-developers.com/showthread.php?p=59154061
Sent from my Nexus 5 using XDA Free mobile app
Have a look at this thread: http://forum.xda-developers.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576
Sent from my Nexus 5 using Tapatalk
@jd1639 after I tried that idea still the device into Bootloop, and I checked the EMMC by "BoardDiag" tool, and I got failed , so may as you said nothing can I do with that issue, but I didn't given up yet, I already bought new OnePlus Two,because no more time for new trials, may I have to try new ideas again next week or after that, Thank you very much my dear, you are very helpful.
@efrant thank you for this link, this is a good idea too, I tried it but faced an issue with using & installing Universal Naked driver, some times the Adb tools can't connect with device in recovery mode, I will try it again and again next week when I have a time and using new PC to install the Universal Naked Driver for recovery only to avoid any other drivers for android.
All dears helpers , thank you very much for your helping,
when I have more time next week I will try some of new idea,
if I get any solution I will submit here the link to be a reference for other
who may face same issue,
Thank you again.
M_Nexus5 said:
[snip]
@efrant thank you for this link, this is a good idea too, I tried it but faced an issue with using & installing Universal Naked driver, some times the Adb tools can't connect with device in recovery mode, I will try it again and again next week when I have a time and using new PC to install the Universal Naked Driver for recovery only to avoid any other drivers for android.
Click to expand...
Click to collapse
It seems you are trying to solve too many issues at once.
The first thing you need to do is make sure your drivers are installed properly, which doesn't seem to be the case. You shouldn't have to mess around with any unofficial drivers. Just install the drivers from Google's website: whttp://developer.android.com/tools/extras/oem-usb.html. That is the first thing you need to make sure is done properly.
The next is to make sure you have the latest version of the four files you need (fasboot.exe, adb.exe, & the 2 dll files) to connect with your device.
Only then should you try to troubleshoot / fix your device.
Sent from my Nexus 5 using Tapatalk
You definitely need to fix your persist partition. Your phone will not boot until you do that.
For this to work you need adb to connect to the phone in normal mode (not bootloader).
Installing the naked driver can be problematic, if another driver is already installed. The easiest way is to install it another PC that has not had an Android phone connected to it. You need to disable internet when you connect the phone, and try to cance windows installation of the driver. Then you will have a device with an error in device manager, you right click on it and choose update driver, and choose manual install from the naked driver folder.
If you can't do that, see if you can use the custom recovery to change the phone to connect usb as a camera.
Now open device manager: if you see Android device >Android Composite ADB Interface then adb should work. Try adb devices command. If you see a device you are connected. Then follow bitdomo's guide to fixing the persist partition. You need to be rooted for this to work. You can skip the wifi and BT foe now - you don't need that to boot into the OS. You can do this later.
Once you fix the persist partiton you should be able to boot. Perhaps it will be a good idea to flash stock, but make sure to enable usb debugging, in case you have future problems.
You can see my guide here http://forum.xda-developers.com/google-nexus-5/help/nexus-5-stuck-boot-loop-lollipop-t3098632

Bricked? I'm out of options

Hello, on March 10th I received a new update on my N5. After update, which finished with no problems as usual, my phone was normally working or about two more hours. In that time no new apps were installed. Then it just shut down, and can't be properly turned on.
It always stuck at Google logo and that is all that it does. I'm able to get to the fastboot mode by holding Power+Volume Up+Volume Down buttons, but I can't get into Recovery Mode option to hard reset it. Nothing show up after selecting that option and Power+Volume Up does nothing. Ok, bad luck, time to flash it nice and clean.
Haha, nice try.
I'm not sure if I had USB debugging on or off, but I think off. Obtained ROM from Google + newest platform tools from SDK and followed all possible manual I could get from Internets, results:
Code:
adb devices
List of devices attached
*nothing*
Code:
adb reboot bootloader
error: no devices found
Drivers are newest from Google, reinstalled several times, device is visible in Windows as Android Bootloader Interface and seem working fine. adb just do not see phone.
Code:
fastboot oem unlock
...
OKAY [ 46.402s]
finished. total time: 46.403s - WORKS!
But rest is just no go:
Code:
fastboot erase boot
erasing 'boot'...
FAILED (remote: failed to erase partition)
finished. total time: 0.219s
Code:
fastboot erase cache
********Did you mean to fastboot format this partition?
erasing 'cache'...
FAILED (remote: failed to erase partition)
finished. total time: 0.217s
Code:
fastboot erase recovery
erasing 'recovery'...
FAILED (remote: failed to erase partition)
finished. total time: 0.219s
Code:
fastboot erase system
******** Did you mean to fastboot format this partition?
erasing 'system'...
FAILED (remote: failed to erase partition)
finished. total time: 0.218s
I tried several more commands, like to install twrp, but all with same results.
Code:
fastboot flash recovery twrp.img
sending 'recovery' (14314 KB)...
OKAY [ 0.653s] writing 'recovery'...
FAILED (remote: flash write failure)
finished. total time: 0.835s
I also tried "fastboot boot twrp.img" and it worked but didn't helped much. Internal storage is showing size 0 MB an when I try to do anything it ends with wall of red text about how it's unable to find partitions or mount images, first line:
Code:
E:Primary block device '/dev/block/platform/msm_sdcc.1/by-name/userdata' for mount point '/data' is not present!
Also when I reboot bootloader, it get stuck and when I get it back with buttons, it is back in its locked state. So my guess is that eMMC went to Silicon Heaven.
Do you guys have any advices? Or is my phone just fancy mirror now?
When the phone is in fastboot mode, does the bootloader state remain "unlocked" after a reboot?
If the bootloader is unlocked, have you tried relfashing a stock ROM?
audit13 said:
When the phone is in fastboot mode, does the bootloader state remain "unlocked" after a reboot?
If the bootloader is unlocked, have you tried relfashing a stock ROM?
Click to expand...
Click to collapse
Like i wrote, it get back to locked state.
The emmc chip is defective and cannot be fixed. This is clearly indicated when the bootloader relocks itself at reboot.
Thought so, but wanted confirmation . Thank you.

Getting ADB / fastboot working correctly (to reset radioband without flash)

Hi,
Yesterday my nephew wanted to show me a cool trick, getting to the settings menu. Although i had seen that already, i let him..
If only i hadn't, as he clicked on the radioband button with only "US" as a choice, and now i can't receive calls or call out myself.
As i can't risk losing data, i can't reflash, there is just too much i can't backup (Like Google Authenticator, i would have to disable it on 50+ accounts first)
So found the following link https://talk.sonymobile.com/t5/Xperia-Z1-Compact/WARNING-Never-Change-Radio-Band/td-p/905055/page/4, where all you need is ADB and your phone in fastboot / bootloader.. So, i have my Z5 in Developer mode, enabled USB Debugging (Also tried OEM unlocking as well), installed the latest ADB ( I tried both "Minimal ADB and Fastboot" and "platform-tools-latest-windows") and installed the "latest_usb_driver_windows". (After Phone started in fastboot, updated the S1.. Fastboot hardware drivers with the ones downloaded)
All seems OK, devices are found, but after i give the commands i get:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst1
erasing 'modemst1'...
FAILED (command write failed (Unknown error))
finished. total time: 0.002s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst2
erasing 'modemst2'...
FAILED (command write failed (Unknown error))
finished. total time: 0.002s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase cache
erasing 'cache'...
FAILED (command write failed (Unknown error))
finished. total time: 0.001s
All that works is: fastboot reboot..
It looks like the phone doesn't accept the commands, as even when i try a not existing one like "fastboot erase notexistingfolder, i get the same response..
Is it the software on my Xperia Z5, 7.1.1 (32.4.A.1.54)?
Is it my Windows version (W10 Pro x64, 1709)?
Do i need a special/other ADB+driver combo? I already installed the Sony Android .inf (disabled Driver Signing)
I used ADB before, never run in so much problem getting it going.. It doesn't need to have a unlocked bootloader for this, right?
As anything like that defeats the purpose of restoring calls without erasing the device..
Any help is appreciated. Willing to install W7/8 if needed to get it to work or use some sort of bootable W7/disk..
Thanks, allegro16
allegro16 said:
Hi,
Yesterday my nephew wanted to show me a cool trick, getting to the settings menu. Although i had seen that already, i let him..
If only i hadn't, as he clicked on the radioband button with only "US" as a choice, and now i can't receive calls or call out myself.
As i can't risk losing data, i can't reflash, there is just too much i can't backup (Like Google Authenticator, i would have to disable it on 50+ accounts first)
So found the following link https://talk.sonymobile.com/t5/Xperia-Z1-Compact/WARNING-Never-Change-Radio-Band/td-p/905055/page/4, where all you need is ADB and your phone in fastboot / bootloader.. So, i have my Z5 in Developer mode, enabled USB Debugging (Also tried OEM unlocking as well), installed the latest ADB ( I tried both "Minimal ADB and Fastboot" and "platform-tools-latest-windows") and installed the "latest_usb_driver_windows". (After Phone started in fastboot, updated the S1.. Fastboot hardware drivers with the ones downloaded)
All seems OK, devices are found, but after i give the commands i get:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst1
erasing 'modemst1'...
FAILED (command write failed (Unknown error))
finished. total time: 0.002s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst2
erasing 'modemst2'...
FAILED (command write failed (Unknown error))
finished. total time: 0.002s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase cache
erasing 'cache'...
FAILED (command write failed (Unknown error))
finished. total time: 0.001s
All that works is: fastboot reboot..
It looks like the phone doesn't accept the commands, as even when i try a not existing one like "fastboot erase notexistingfolder, i get the same response..
Is it the software on my Xperia Z5, 7.1.1 (32.4.A.1.54)?
Is it my Windows version (W10 Pro x64, 1709)?
Do i need a special/other ADB+driver combo? I already installed the Sony Android .inf (disabled Driver Signing)
I used ADB before, never run in so much problem getting it going.. It doesn't need to have a unlocked bootloader for this, right?
As anything like that defeats the purpose of restoring calls without erasing the device..
Any help is appreciated. Willing to install W7/8 if needed to get it to work or use some sort of bootable W7/disk..
Thanks, allegro16
Click to expand...
Click to collapse
You are fu*ked up! To use fastboot commands you have to unlock phone bootloader first, so you will loose data (as boot unlock always factory reset phone)
EugenStanis said:
You are fu*ked up! To use fastboot commands you have to unlock phone bootloader first, so you will loose data (as boot unlock always factory reset phone)
Click to expand...
Click to collapse
That would indeed be the case then.. I'll wait for Sony Mobile support.. If it's THIS easy to set the band to US, it should be easy to reset for them as well, right?
If i'm forced to reset / erase the Z5 in any way, i might as well change brands again and get a new unit.. At least then i can copy everything over piece by piece in time..
Thanks anyway.

Categories

Resources