I'm using TWRP v3.2.1-0 and rooted with Magisk 14.6.
I'm trying to backup system files and can't make it work. When I try to backup to internal storage, I get an error message that says: "Cannot create /data/media/0/TWRP' folder (Operation not permitted)." It doesn't matter what files I try to save or what I have mounted, I always get that error. It appears to be a file permission problem.
So, I tried using a thumb drive with the OTG adapter. When I do that, I'm unable to mount the drive in TWRP. I can mount it when booted into the system, but not in TWRP. In TWRP, selecting USB-OTG as the storage device does nothing.
Does anybody else have this problem or know how to fix it?
Related
I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
geargamer said:
I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
Click to expand...
Click to collapse
While youre in recovery, can you mount through the mounts and storage option? Im not on the recovery you are talking about but if you can mount it you can throw the rom on that way. If you cant do that you should be able to just boot up the rom thats currently on it and mount it that way. Just because you wiped everything doesnt mean that it wont boot up, it just cleared all of the data. It should load up with your previous rom.
Thank you very much. It gave me more insight on what was going on. I have my phone back up and working. I was able to flash the old recovery with odin and i hope this information will help someone else in future as well.
Sent from my SPH-L710 using xda app-developers app
I encrypted the device, then decided I wanted it off. I factory reset the phone to remove it and now It's stuck at the Google screen and won't boot.
I tried going into recovery (TWRP) to restore a previous backup but none of my backups are listed. Looked in the file manager and the SD card was blank. I looked in the Mount menu and sure enough, it was unmounted. I tried mounting it, but nothing happens when I touch it. I can't mount the data or SD Card. I can mount and unmount the system and cache just fine though.
The log for TWRP says "E:failed to mount /data (Invalid argument)"
The galaxy nexus toolkit does not recognize the device when using "fastboot devices" or "adb devices" commands.
Anyone have this problem before or know anything that might fix this?
Edit: got it booting again. if anyone's wondering, I used this: http://www.galaxynexusforum.com/for...how-return-stock-using-odin-vzw-lte-only.html
Hello,
I don't know what cause this , but I can no longer flash any roms. It says unable to mount USB storage,
I am using TWRP.
I am able to do backups, but it doesn't allow me to flash a rom.
any advise will be appreciated
tomasitoc said:
Hello,
I don't know what cause this , but I can no longer flash any roms. It says unable to mount USB storage,
I am using TWRP.
I am able to do backups, but it doesn't allow me to flash a rom.
any advise will be appreciated
Click to expand...
Click to collapse
Sounds like TWRP is corrupt, have you tried CWM to see if the problem exists there also?
As far as trying to mount usb from TWRP, I have never got that to work.
Hello there,
I made the mistake of wiping the internal storage using TWRP.
I am unable to enter recovery mode with the button hold options (tried all variations). The only way I was able to get into TWRP was adb reboot recovery. adb connection is now gone and the phone is stuck at the boot screen.
I can get a fastboot connection and the bootloader is unlocked. So I flashed the boot partition with a stock boot.img and the recovery partition with a stock recovery.img (even though I can't enter the recovery partition).
the phone never gets past the boot logo. Is there a way to directly flash a system.img vie fastboot, so that the device can be used? I am kind of stuck here.. read several threads for the past 2-3 hours, tried to reinstall TWRP as recovery but cant boot into it, etc.
I downloaded the B510.zip and was wondering if there is a way to burn an .img out of that and flash the system partition. But maybe that doesn't make sense at all.
Any help is greatly appreciated
update
Alright then, I managed to boot into TWRP!! a previous version worked.
it shows: Custom storage (498MB), Internal Storage (0MB), External Storage (0MB)
i am now proceding to install the zipped 510 rom from huawei. unfortunately i must have lost my microSD so i am lefti with sideload and otg.
sideload doesn't work because i can't find my device with adb. only fastboot seems to work, i dont know the reason but i understand its normal for my situation.
i only have an unpowered otg cable. from what i read that won't work, but I'm giving it a try and currently load the zip on a usb flashdrive.
do i understand correctly that the overall storage just appears to be 498MB? my partition table must be fairly messed up if that is the case. are there other partitions not shown by TWRP?
what do you recommend besides/instead of getting a microsd?
kind regards
update #2
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Resolved
I managed to solve it. Installed the paranoid android rom from the pictures dir. it was under 500mb and worked fine.
eyevector said:
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Click to expand...
Click to collapse
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
thank you
RabbidZ said:
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
Click to expand...
Click to collapse
so that is the reason why the paranoidandroid worked in the end.
cheers
Hello.
My P6 shut down due to low battery an when I charged the battery my phone stuck at a boot loop.
I have TWRP recovery and I cant flash anything because of this error : E:Unable to mount '/data' .
I tried to flash stock recovery but always boot up to TWRP recovery.
Anyone can help?
Thanks
As you have TWRP & are rooted, you created a nandroid backup using TWRP, didn't you? If yes, have you tried restoring the backup in TWRP?
GaT7 said:
As you have TWRP & are rooted, you created a nandroid backup using TWRP, didn't you? If yes, have you tried restoring the backup in TWRP?
Click to expand...
Click to collapse
Unfortunately, I didn't create a backup...
Also I can't copy anything to internal storage.
digelo said:
Unfortunately, I didn't create a backup...
Also I can't copy anything to internal storage.
Click to expand...
Click to collapse
Ok, just realised the P6 has USB-OTG support & TWRP has an OTG option (please view the attached thumbnails).
So just get a flash drive & USB-OTG cable (usually very cheap on eBay/Amazon/similar). Copy the file to be flashed to the flash drive, connect the flash drive to the phone using the USB-OTG cable, then flash the file/rom via the Install > Select Storage > USB-OTG option in TWRP (short video tutorial here).
When your system is up & running again, I'd highly recommend taking a TWRP backup to external SDcard every now & again at least, then leaving 1 copy on the external SDcard & transferring 1 copy to a separate external device (PC/Laptop/removable media/similar). As it is a full nandroid backup, it is very easy to restore the full original system as long as you can get into TWRP recovery & the backup is good (so make sure not to 'Skip MD5 generation during backup' & also have 'Enable MD5 verification of backup files' selected in TWRP > Settings).
I tried to flash from usb-otg and there is no difference from installing from external sd card.
I have the same problem! E:Unable to mount '/data'
I think you should format data partition before flashing. Try it with twrp.
Sent from my SM-G850F