Can't flash .zips Unable to Mount storage - Nexus 5 Q&A, Help & Troubleshooting

So I tried flashing a custom kernel a few times using twrp and it always had an error saying "Unable to mount Storage." Any help is appreciated. Thanks!

From memory, TWRP has a default option to leave the system read-only - you have to specifically swipe to make it writeable. Have you tried that?
And are you using the latest TWRP? I see that there was a new one less than two weeks ago:
twrp-3.0.3-0-hammerhead.img
Edit: Just for completeness, the OP was using the latest TWRP and has managed to install a new kernel after ticking "mount system" in TWRP.
Sorted...

Related

[Q] Possibly bricked - what are my options?

Have a Telstra One XL 1.89 - after hours of reading/researching I finally rooted the phone and flashed TWRP (ver 2.2.2.0) recovery with a custom ROM.
Everything was working fine until I tried to install a different ROM - I made a backup via TWRP, installed the new ROM but it wouldn't boot ... no worries I had the backup ... I accidentally selected FACTORY RESET from the bootloader instead of RECOVERY which seemed to have wiped all my data on the internal SD card - so my backup has been wiped.
I'm still able to access TWRP so I thought I could simply mount my SD card to my computer and copy my old ROM to flash - however I can't mount the SD card from TWRP - TWRP's console is throwing up "E:failed to mount /sdcard (Invalid argument)" and "E:Unable to mount /sdcard when trying to read settings file." errors - hence in the Mount menu, I can't check the "Mount SDCard" checkbox! (WTF?) - I Google'd this and someone advised that you will need to partition the SD card from within TWRP before it will allow you to mount it - I tried partitioning it but still throwing up those errors
I can also access the device from command prompt via adb - so I tried to flash a rom directly via fastboot but it throws up a "FAILED (remote: not allowed)" when it tries to flash it.
What are my options here? Am I completely screwed? I'm currently in the process of downloading the Telstra RUU - will this even work in my case?? Any help would be GREATLY appreciated - pulling my hair out here ... 2 week old phone
The RUU will make it all better
just lock your bootloader again before you run it
Look who's still floating
Sent from my HTC One X using xda premium
So you could post here when you didn't have a hox but I can't? Oooookayyyy.
In my heart I always had a hox......now I hate this p.o.s yet I'm still here, smh
My fastboot oem unlock tabby will be here Tuesday tho
Sent from my HTC One X using xda premium
slavlazar said:
Have a Telstra One XL 1.89 - after hours of reading/researching I finally rooted the phone and flashed TWRP (ver 2.2.2.0) recovery with a custom ROM.
Everything was working fine until I tried to install a different ROM - I made a backup via TWRP, installed the new ROM but it wouldn't boot ... no worries I had the backup ... I accidentally selected FACTORY RESET from the bootloader instead of RECOVERY which seemed to have wiped all my data on the internal SD card - so my backup has been wiped.
I'm still able to access TWRP so I thought I could simply mount my SD card to my computer and copy my old ROM to flash - however I can't mount the SD card from TWRP - TWRP's console is throwing up "E:failed to mount /sdcard (Invalid argument)" and "E:Unable to mount /sdcard when trying to read settings file." errors - hence in the Mount menu, I can't check the "Mount SDCard" checkbox! (WTF?) - I Google'd this and someone advised that you will need to partition the SD card from within TWRP before it will allow you to mount it - I tried partitioning it but still throwing up those errors
I can also access the device from command prompt via adb - so I tried to flash a rom directly via fastboot but it throws up a "FAILED (remote: not allowed)" when it tries to flash it.
What are my options here? Am I completely screwed? I'm currently in the process of downloading the Telstra RUU - will this even work in my case?? Any help would be GREATLY appreciated - pulling my hair out here ... 2 week old phone
Click to expand...
Click to collapse
Hey mate,
RUU will work but before you do just try mounting it through twrp then plugging it into your pc.
When you're in the mount menu in twrp make sure you hit mount usb storage for Windows to recognise it.
When I did this I got a prompt in Windows that said it needed to format the drive so I formatted it then just copied over the rom I wanted to flash then unmounted and flashed the rom.
Sent from my HTC One XL using xda premium

Can't install .zip file from CWM

I am relatively new to the world of rooting and ROMs, but I have successfully installed CM10 on a previous Samsung phone, so I am decently literate.
I am currently attempting to install CM10.1 on my Verizon Galaxy S III (following the instructions on the Install CM for d2vzw page on the CM wiki), but I have reached an impasse at step 7. I was not aware that I had to put the VRALE6.bootloader.zip file on the SD card before starting this process, so I am now attempting to get that file onto my SD card either by sideloading through CWM or by pushing it to the SD card through adb. The issue is that CWM gives me an error (can't mount SD card) and adb doesn't recognize my device (I have tried installing and reinstalling various drivers for the past few hours). I enabled USB Debugging mode before starting the process, but I am only able to get into Download and CWM modes right now (if I don't do the Download Mode or Recovery Mode key combination, I am stuck on the Galaxy S III screen). Am I bricked at this point, or is there a way to get VRALE6.bootloader.zip onto my phone and continue with the ROM process?
It is important to note that I formatted the SD card before starting this process because I wanted enough space to put the Cyanogenmod file on it. However, I think I may have formatted it generically rather than into FAT-32. Could this be the issue?
I am going to pick up a microSD card reader today in order to flash the SD card to FAT-32 and put the CyanogenMod file on it.
I am getting 5 errors upon startup of CWM (E: Can't mount /cache/recovery/command, can't mount /cache/recovery/log, etc.). When I try to mount the SD card or external SD card, I get E: Can't mount /sdcard/
Same issue with sd card not mounting.
I'm having somewhat of the same issue. I've tried both Clockwork recovery and TWRP and have the same issue.
Should have mentioned that i still have access to the stock rom and can use my phone just fine.
I some how got Clockwork mod recovery to work using the Rom Manager pro App.
I wish i had been paying better attention to what i was doing but i know i updated CWMrecovery from in rom manager and chose to install my chosen rom with that.
My suggestion is to start over completely. There is a much easier way to do this.
My suggestion is to flash one of the rooted stock ROMs through Odin. There's a thread in android development that has rooted stock. Then when that's done boot up your phone. If it bootloops wipe data. Then use Ez-Unlock 1.2 app to unlock your bootloader. Make sure it's 1.2. Now use GooManager to flash TWRP. You are done! This is probably the easiest way to do this.
Thread: http://forum.xda-developers.com/showthread.php?p=33948598
Sent from my SCH-I535 using Tapatalk
Sent from my SCH-I535 using Tapatalk
Sandman-007 said:
My suggestion is to start over completely. There is a much easier way to do this.
My suggestion is to flash one of the rooted stock ROMs through Odin. There's a thread in android development that has rooted stock. Then when that's done boot up your phone. If it bootloops wipe data. Then use Ez-Unlock 1.2 app to unlock your bootloader. Make sure it's 1.2. Now use GooManager to flash TWRP. You are done! This is probably the easiest way to do this.
Thread: http://forum.xda-developers.com/showthread.php?p=33948598
Sent from my SCH-I535 using Tapatalk
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
I am not familiar with TWRP, so is the process the same for flashing CM (putting CM zip file on sd card and going to install from SD card in TWRP)? Are there any additional steps beyond this?
I am following the directions in the thread linked above to root and install TWRP. So far, I have the rooted stock ROM running fine, but I can't get TWRP to work. I downloaded Goomanager and attempted to get TWRP using the Install Openrecovery Script option. However, it said that it couldn't find a recovery for my device. I also tried to use the adb method, but nothing happened after I put in the commands. I even tried to flash the latest TWRP .tar file from their website using Odin, but it keeps failing. Is there any way to get TWRP on my phone?
EDIT:Whoops, I skipped over the EZ-Unlock step. Now everything works. Thanks for the help, Sandman!
mikestrong19 said:
I am following the directions in the thread linked above to root and install TWRP. So far, I have the rooted stock ROM running fine, but I can't get TWRP to work. I downloaded Goomanager and attempted to get TWRP using the Install Openrecovery Script option. However, it said that it couldn't find a recovery for my device. I also tried to use the adb method, but nothing happened after I put in the commands. I even tried to flash the latest TWRP .tar file from their website using Odin, but it keeps failing. Is there any way to get TWRP on my phone?
EDIT:Whoops, I skipped over the EZ-Unlock step. Now everything works. Thanks for the help, Sandman!
Click to expand...
Click to collapse
No problem bro. Glad you are all fixed up
Sent from my SCH-I535 using Tapatalk
Sandman-007 said:
No problem bro. Glad you are all fixed up
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
Alright, maybe I'm not quite fixed up yet. I have TWRP installed and I can go between TWRP, download mode, and the normal stock rooted ROM fine. However, I cannot get to the SD Card in TWRP in order to install CM. TWRP gives me the following errors upon booting into recovery:
E: Unable to find parition size for '/boot'
E: Unable to find parition size for '/data'
E: Unable to find parition size for '/recovery'
Updating partition details:
E: Unable to mount '/system'
E: Unable to mount '/cache'
E: Unable to mount '/cache'
E: TWFunc: :Copy_Log - - Can't open destination log
E: Unable to mount '/cache'
Upon trying to go to Install, I am unable to select the external SD card, and an additional error appears when I attempt to touch Micro SD Card (E: Unable to mount '/external_sd').
I guess I could try to sideload the CM zip file through adb, but I would rather fix the SD card for future use. I have been researching and working on the SD card for the better part of today, to no avail. I am pretty sure the issue is in the formatting of the SD card (it appears to be RAW rather than the required FAT32 for CM), but I cannot format the SD card into FAT-32 no matter what I try (both Windows and 3rd party formatting tools). They all say that the SD card is either write-protected (I have already checked the read/write switch on the side of the SD card adapter) and/or the format cannot be completed. I have tried both my old SD card that I have kept for a few phones (an 8GB Samsung microSD card) and a brand new Sandisk 8GB microSD card, both of which will not work.
I am able to transfer files to the SD card with no issue (with both ADB and through dragging/dropping in Windows), but I cannot install from SD in recovery.
Does anyone have a solution to allow me to install CM on my phone?
Download root checker from the play store. Make sure you are rooted
Sent from my SCH-I535 using Tapatalk
Sandman-007 said:
Download root checker from the play store. Make sure you are rooted
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
Yes, I do have root access. I think the problem lies somewhere in my SD card.
mikestrong19 said:
Yes, I do have root access. I think the problem lies somewhere in my SD card.
Click to expand...
Click to collapse
Do you have another computer to try formatting the sdcard with? And you said that you receive the same errors when trying to reformat the new 8 GB sdcard as with your other sdcard which is formatted to RAW?
SlimSnoopOS said:
Do you have another computer to try formatting the sdcard with? And you said that you receive the same errors when trying to reformat the new 8 GB sdcard as with your other sdcard which is formatted to RAW?
Click to expand...
Click to collapse
I do have access to another computer, but I ran out of time and patience yesterday. I will try it when I get home later today. And yes, both cards are RAW (even the new one) and I can't get either one to format or work in TWRP.
So it appears the the issue with formatting was due to my computer's drivers (even though I installed the latest Samsung USB drivers) and not the SD card. I was able to format the SD card to FAT32 on another computer and put CM and GAPPS onto it. When booted normally into TouchWiz, the phone sees the SD card fine. However, I still get the same "Can't mount external SD card" error as well as the others previously listed when I attempt to install a zip from recovery. I even tried to sideload the ROM from ADB, but it still didn't work.
mikestrong19 said:
So it appears the the issue with formatting was due to my computer's drivers (even though I installed the latest Samsung USB drivers) and not the SD card. I was able to format the SD card to FAT32 on another computer and put CM and GAPPS onto it. When booted normally into TouchWiz, the phone sees the SD card fine. However, I still get the same "Can't mount external SD card" error as well as the others previously listed when I attempt to install a zip from recovery. I even tried to sideload the ROM from ADB, but it still didn't work.
Click to expand...
Click to collapse
Which version of CWM and also TWRP are you using?
And the problems keep rolling in. I was able to mount my SD card and get rid of the TWRP errors by installing a modded TWRP 2.6.0.0 from this thread (http://forum.xda-developers.com/showthread.php?p=44277901). However, when I go to install CM (cm-10.1.3-d2vzw.zip), I get the following error:
assert failed: getprop("ro.product.device") ==
E: Error executing updater binary in zip '/external_sd/cm-10.1.3-d2vzw.zip'
Error flashing zip '/external_sd/cm-10.1.3-d2vzw.zip'
Updating partition details
I did a factory reset before attempting to install this, but I did not format data or do anything else.
mikestrong19 said:
And the problems keep rolling in. I was able to mount my SD card and get rid of the TWRP errors by installing a modded TWRP 2.6.0.0 from this thread (http://forum.xda-developers.com/showthread.php?p=44277901). However, when I go to install CM (cm-10.1.3-d2vzw.zip), I get the following error:
assert failed: getprop("ro.product.device") ==
E: Error executing updater binary in zip '/external_sd/cm-10.1.3-d2vzw.zip'
Error flashing zip '/external_sd/cm-10.1.3-d2vzw.zip'
Updating partition details
I did a factory reset before attempting to install this, but I did not format data or do anything else.
Click to expand...
Click to collapse
Well, that is for the Sprint S3 my friend. We can't interchange recoveries between the different S3 models to flash roms. You may want to ask Kennyglass123 or any of those other guys if they can make a change for the VZW S3 for you to test it out.
SlimSnoopOS said:
Well, that is for the Sprint S3 my friend. We can't interchange recoveries between the different S3 models to flash roms. You may want to ask Kennyglass123 or any of those other guys if they can make a change for the VZW S3 for you to test it out.
Click to expand...
Click to collapse
Sounds good. I think the problem has been isolated to being something with needing a modded TWRP. I tried using an older, non-modded TWRP (2.5.0.0), which didn't work.
mikestrong19 said:
Sounds good. I think the problem has been isolated to being something with needing a modded TWRP. I tried using an older, non-modded TWRP (2.5.0.0), which didn't work.
Click to expand...
Click to collapse
Would you mind trying this soft brick fix? If I'm not mistaken, I believe you're experiencing this same issue--excluding the Sprint TWRP issue you just mentioned. You will need to flash your VZW custom recovery either through GooManager, Rom Manager, or Odin btw.
SlimSnoopOS said:
Would you mind trying this soft brick fix? If I'm not mistaken, I believe you're experiencing this same issue--excluding the Sprint TWRP issue you just mentioned. You will need to flash your VZW custom recovery either through GooManager, Rom Manager, or Odin btw.
Click to expand...
Click to collapse
I can still get between the stock rooted ROM, download mode, and recovery mode fine, so does that mean I am still soft-bricked and should try this?
mikestrong19 said:
I can still get between the stock rooted ROM, download mode, and recovery mode fine, so does that mean I am still soft-bricked and should try this?
Click to expand...
Click to collapse
Yea, because you are still receiving these errors right?
E: Unable to find parition size for '/boot'
E: Unable to find parition size for '/data'
E: Unable to find parition size for '/recovery'
Updating partition details:
E: Unable to mount '/system'
E: Unable to mount '/cache'
E: Unable to mount '/cache'
E: TWFunc: :Copy_Log - - Can't open destination log
E: Unable to mount '/cache'
Click to expand...
Click to collapse
This soft brick fix is an attempt to correct the /system and /data errors.
Edit: Oh great, none of the links work. I'll see about finding alternate links.

unable to mount after switch to TWRP

Hi,
i have tried to install CW12 Build with CWM without luck(status 7). So i switched to TWRP after some reading in different posts.
But i cant wipe any data with TWRP(2.8.01).
For each partition i get the error "unable to mount $xy"
How can i fix that problem?
Thank you
You should be using 2.8.6.2 per this thread if you want CM12.x or f2fs.
If you are using older ROM's, and are using my TWRP thread I recommend 2.7.1.2.

Error updating CM13, and others.

Hi, i have the next versions:
CyanogenMod: 13.0-20161004-NIGHTLY-osprey
Kernel: 3.10.49-MPI24.107-56-g09ff0d1
And when trying to install the 1009-NIGHTLY update i get an error without a log in the cianogenmod recovery. When I try to "Apply update" and then "Choose from emulated", it shows the next message:
"E:failed to mount /data (Invalid argument)
Installation aborted"
Then, i go to see the recovery logs, but it blanks and shows the main menu again.
Why do I want to update to the latest version, having 5 days of difference with the installed version?
Because I'm having repeatedly bugs with the Firefox browser, can't update Telegram, can't connect via Bluetooth to the most of the devices, can't update the binaries of SuperSU, and other minor errors.
Which could be the cause of some of this problems?
Sorry for my poor english, Saludos!
Download the latest nightly and before installing wipe the /system /dalvik cache and /cache partition, just be aware that you will need to reflash your gaps package.
Henriquefeira said:
Download the latest nightly and before installing wipe the /system /dalvik cache and /cache partition, just be aware that you will need to reflash your gaps package.
Click to expand...
Click to collapse
Just did what you said, wiped /cache and /system partition, and when the phone reboots it stays in the Motorola logo. Seems that I can't load the installer using USB, because there is no ROM installed.
The good news are that I have access to emulated.
What am I doing wrong?
Gonzon said:
Just did what you said, wiped /cache and /system partition, and when the phone reboots it stays in the Motorola logo. Seems that I can't load the installer using USB, because there is no ROM installed.
The good news are that I have access to emulated.
What am I doing wrong?
Click to expand...
Click to collapse
You wiped your entire internal storage? If not then there is an issue with your internal storage. I once had a similar issue to this, where my phone would keep wiping it's internal storage and crash a lot, the solution was to reflash the stock ROM. Sorry for the inconvenience that I caused to you
Just as a side question, did anyone got AICP nightlies .zip stuck at extracting image to /system? I tried clean install (wipe /system, /data, /cache and dalvik) but its just stuck there. Tried multiple nightlies. Tried deleting Android and .android_secure folders in both external and internal storage. I haven't tried wiping internal storage yet (I will do it ASAP). Any tips will be great. Thanks
Broadcasted from Zeta Reticuli
Henriquefeira said:
You wiped your entire internal storage? If not then there is an issue with your internal storage. I once had a similar issue to this, where my phone would keep wiping it's internal storage and crash a lot, the solution was to reflash the stock ROM. Sorry for the inconvenience that I caused to you
Click to expand...
Click to collapse
I still don't know why cm installs a recovery that it is unstable and with less tools than TWRP. I believe that they should use at least the code of TWRP.
No problem Henriquefeira, everything has it's solution. Besize, your help was too much better than silence in this post. Now, I have to focus on try to enter to the internal storage and flash the update I have.
For that, I'm using fastboot in linux. But I don't know too much about using it. Next, I'll show you the messages that the terminal sent me:
Code:
[email protected]:~$ fastboot -p xxxxxxxxxx flash /data/media /home/imperial/Android2/cmupdater/cm-13.0-20161009-NIGHTLY-osprey.zip
target reported max download size of 268435456 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 91972855 is not a multiple of the block size 4096
fastboot: /build/android-tools-hIu7Bj/android-tools-4.2.2+git20130529/core/libsparse/sparse.c:143: write_all_blocks: Assertion `pad >= 0' failed.
Abortado
Do you know what it means?
Gonzon said:
I still don't know why cm installs a recovery that it is unstable and with less tools than TWRP. I believe that they should use at least the code of TWRP.
No problem Henriquefeira, everything has it's solution. Besize, your help was too much better than silence in this post. Now, I have to focus on try to enter to the internal storage and flash the update I have.
For that, I'm using fastboot in linux. But I don't know too much about using it. Next, I'll show you the messages that the terminal sent me:
Do you know what it means?
Click to expand...
Click to collapse
You can't flash the zip of a ROM via fastboot, follow this tutorial >goo.gl/JfRzZu and on the next time avoid installing the CM bundled recovery
Solved.
I flashed vĂ­a fastboot a stable twrp, then after a lot of errors and strange things i was able to flash the ROM.
Thanks a lot for your help.
I was seeing a bricked phone already jajaja.

Can't flash anything through recovery. (failed to mount "/cpefs" (Invalid Response)

Can't flash anything through recovery. (failed to mount "/cpefs" (Invalid Response)
I recently got this phone and I've been trying to install a custom rom, however, I can't seem to do anything while using TWRP. For some reason the file explorer shows no files and no /storage folder. It also says that the /system partition weights 0MB. I've already tried formatting the /data partition from EXT4 to extFAT, but it won't let me because it cannot mount the "/cpefs" partition, which I've been unable to find any information about.
I can flash the stock firmware trough ODIN, and I can flash the recovery. The internal storage works fine, but nothing shows up when I open TWRP.
I've tried formatting the data partition, repairing it, changing the partition format, wiping, installing a custom rom, installing superSU. But it won't allow me to do any of those things. Either "/data" can't be mounted, or "/cpefs" can't be mounted while formatting /data.
Cepillado said:
I recently got this phone and I've been trying to install a custom rom, however, I can't seem to do anything while using TWRP. For some reason the file explorer shows no files and no /storage folder. It also says that the /system partition weights 0MB. I've already tried formatting the /data partition from EXT4 to extFAT, but it won't let me because it cannot mount the "/cpefs" partition, which I've been unable to find any information about.
I can flash the stock firmware trough ODIN, and I can flash the recovery. The internal storage works fine, but nothing shows up when I open TWRP.
I've tried formatting the data partition, repairing it, changing the partition format, wiping, installing a custom rom, installing superSU. But it won't allow me to do any of those things. Either "/data" can't be mounted, or "/cpefs" can't be mounted while formatting /data.
Click to expand...
Click to collapse
Which phone you're using?
J7 Pro?
Secondly make sure to enable OEM unlock options from the stock ROM's Developer option!
Thirdly check the recovery patches etc of the desired recovery's webiste (you're using) and flash it through the recovery if you're facing the problem!
It'll work, mostly some users said they fixed this by the above mentioned step!
If no luck, maybe someone will sort it out for ya, soon! :laugh:
Good Luck! :good:
sosukeaizen said:
Which phone you're using?
J7 Pro?
Secondly make sure to enable OEM unlock options from the stock ROM's Developer option!
Thirdly check the recovery patches etc of the desired recovery's webiste (you're using) and flash it through the recovery if you're facing the problem!
It'll work, mostly some users said they fixed this by the above mentioned step!
If no luck, maybe someone will sort it out for ya, soon! :laugh:
Good Luck! :good:
Click to expand...
Click to collapse
Thanks for your reply. The model of the phone is SM-J710MN. The OEM unlock option is enabled, otherwise I wouldn't be able to flash the recovery. I am trying to use TWRP. Where would I find a recovery patch for this model?. Everything works fine in the recovery, but it won't let me wipe/format/repair or change ANY partition. It can't mount anything, and the error that I see the most often is that it cannot mount the /cpefs partition.
Cepillado said:
Thanks for your reply. The model of the phone is SM-J710MN. The OEM unlock option is enabled, otherwise I wouldn't be able to flash the recovery. I am trying to use TWRP. Where would I find a recovery patch for this model?. Everything works fine in the recovery, but it won't let me wipe/format/repair or change ANY partition. It can't mount anything, and the error that I see the most often is that it cannot mount the /cpefs partition.
Click to expand...
Click to collapse
try flashing a lower version of the same frimware you've already installed e.g if the latest is nougat 7.1.1 with the recent security update, try flashing with another nougat version that is lower to the recent one's security patch #

Categories

Resources