How do I format my fastboot cache partition? Every other time I need to enter recovery, it can't, and I need to connect my phone to a computer and 'fastboot erase cache'. I believe if I could format the partition, it could fix the problem.
bloodrain954 said:
How do I format my fastboot cache partition? Every other time I need to enter recovery, it can't, and I need to connect my phone to a computer and 'fastboot erase cache'. I believe if I could format the partition, it could fix the problem.
Click to expand...
Click to collapse
You need a Folder with fastboot.exe, AdbWinApi.dll, and AdbWinUsbApi.dll
Then you open a cmd window, and navigate to the Folder. Then you type fastboot erase Cache.
I also had the Problem, that i couldn't enter recovery. It said entering recovery, and then simply rebooted. What helped me was simply re-flashing the recovery. I hope that helps you.
That's the problem, it happens ALL the time. I need to FORMAT, not ERASE my cache. I believe the formatting is screwed.
BUMP
Related
I have a bunch of images I wish to flash to my Nexus for the data and system partition.
I am using the "adb shell flash_image partition image" method.
Whenever I try to flash the data partition I get a "can't find data partition". System, recovery and cache partitions can be flashed without any issues using the same command.
Any ideas ? I'm pretty newbie at this.
Thanks
That is because it is userdata instead of just data.
daveid said:
That is because it is userdata instead of just data.
Click to expand...
Click to collapse
Now I just feel stupid ... thanks a lot
After backup, in my nandroid folder, the file 'ext.tar' is apparently corrupt, Nandroid restore is not working, (although it reports 'completed' but no boot). Bart restore gives this error: 'invalid tar magic'.
So my questions are, can the .tar be repaired and/or can I do a restore via fastboot without the ext.tar? (will the sd-ext contents be intact? I haven't done anything to it)
If I try the restore, my steps using the contents of the nandroid folder, would be:
Code:
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase boot
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash userdata data.img
fastboot flash system system.img
then reboot
correct?
Solved: - Not enough space on SD card
pardus said:
Code:
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase boot
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash userdata data.img
fastboot flash system system.img
Click to expand...
Click to collapse
that will restore the nandroid.. (usually I don't restore cache unless you have offloaded some of the rom to cache to force it to fit into a smaller space)
however the /sd-ext is backed up to the tar file. (you might try extracting it on your computer... sounds like the header of the file is malformed.. I won't know about the rest.)
Of course if you just want to restore the system.. and the contents of /sd-ext have not changed this is not an issue.. fastboot can't modify the sdcard, least with the steps mentioned.
Thank you for the reply, the cache.img file is very small so I skipped that one. Tried the above but no-go.
On my PC the tar only extracts about half the contents and gives a 'corrupt archive error' (winrar).
This all started when I flashed the oc614 kernel, but found everything even slower and then tried to restore with Nandroid and/or Bart.
I have now reflashed the rom (using your post here: http://ip208-100-42-21.static.xda-developers.com/showpost.php?p=8427522&postcount=1844) and am back to 'stock' but I would still like to restore what I had before the kernel flash.
Would I just need to flash 'system' and 'userdata' from the nandroid folder to get back there?
Weird things, when ever I do a:
Bart backup the 'ext-backup.tar' file is always corrupt or a
Nandroid + Ext Backup the 'ext.tar' file is always corrupt
??
What is the syntax for making a .tar backup from console or adb?
The first issue I noticed after updating was that it asked for my email and password about 3 or 4 times without giving an error while signing in. After that I noticed that my storage partition says 32gb instead of 64. I've tried doing a factory reset a few times. I've flashed the stock images over and over. I keep getting the same results.
Is anybody else experiencing the same thing?
I have on the nexus 5. Was a problem with userdata.IMG the fix was to clear userdata and factory data reset phone. Some reported simply factory data reset didn't work for them. But by using fastboot to format userdata and cache then factory data reset phone in recovery it worked
As was already mentioned, the "lost" 32GB is due to flashing the userdata image. You should never flash that image.
The way to fix the issue is to reboot into the bootloader and execute:
fastboot format userdata
fastboot format cache
fastboot reboot
I want to wipe as much as possible before clean installing a ROM. I've been using this guide.
Basically what I do is format data in TWRP and then:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
then:
fastboot flash bootloader
fastboot flash radio
fastboot flash recovery
after that:
reboot into TWRP and flash the ROM's zip
Is this a good method of wiping everything before a clean install?
enginuity2 said:
I want to wipe as much as possible before clean installing a ROM. I've been using this guide.
Basically what I do is format data in TWRP and then:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
then:
fastboot flash bootloader
fastboot flash radio
fastboot flash recovery
after that:
reboot into TWRP and flash the ROM's zip
Is this a good method of wiping everything before a clean install?
Click to expand...
Click to collapse
It's much easier to just wipe everything but internal storage in TWRP and then flash zip. No need for fastboot.
RatchetPanda said:
It's much easier to just wipe everything but internal storage in TWRP and then flash zip. No need for fastboot.
Click to expand...
Click to collapse
What would that leave behind? Apps?
enginuity2 said:
What would that leave behind? Apps?
Click to expand...
Click to collapse
It leaves behind absolutely nothing except your internal storage. I will go over the partitions in TWRP.
system - all the system stuff - wipe this
data - all your apps, wipe this
internal storage - things in your SD card ie. your pictures you don't want to wipe this. it has no effect on a ROM.
cache dalvik&ART- you want to wipe this
I've found two ways of wiping and reinstalling my rom. One way uses fastboot and the other TWRP recovery. I'd like to find out how they correlate with each other.
Method 1: Fastboot
Format data
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
Transfer rom zip files and install them
Method 2: TWRP
Simply format data and wipe every checkbox
Transfer rom zip files and install
What are you specifically looking to find? TWRP probably just issues the fastboot commands.
You don't need to flash the bootloader, modem, or recovery unless their are new ones available. Flashing them again is just redundant and a waste of time. Personally I only use fastboot to flash my bootloader,modem, or new version of TWRP. I use TWRP for literally everything else. You can wipe the partitions easier and quicker than using fastboot, or you can format data and completely nuke the phone and disable encryption. I'm not sure why you're asking how they correlate, I'm pretty sure it's common sense. If you erase a partition in fastboot, it's the exact same thing as wiping the partition in TWRP.
Also if you want to reinstall your ROM why are you wiping your whole internal storage? This is pretty much never required unless you want to free up space or decrypt the device. If you just wipe every partition but internal storage, you can keep local files (like Titanium Backup, pictures, music, any files you have on there, etc..). Then when you flash the ROM, it's still a clean flash because your system, data, cache, and boot partitions are already wiped.
The most important thing for me is that with Twrp-recovery, there is no other device needed; PC etc.