TWRP error "E:Unable to mount '/data'" - LG Optimus L90

I have a new LG Optimus L90 (D415) with stock 4.4 ROM, and TWRP 2.8.0.0 (and previously, Philz 6.58.7) for recovery. Obviously, the phone is rooted and now has an unlocked bootloader....
My problem is that neither recovery will back up (or even mount) "/data". Note that I put that in quotes because, without having "/storage/sdcard" or something in front of it, I presume that it's an internal folder and not something to do with the external SDcard.
My first guess would be a problem with encryption, because both the phone and the external SD are using it -- and I never get asked for the password. Either way, the actual error in TWRP says "E: Unable to mount 'data'", while Philz says it can't access /data/philz-touch for the .ini file.
I've made several Google expeditions to find the answer, and have come up empty-handed with all of them. I've seen all kinds of fixes, from claims that I have to run chkdsk against the SDcard, to backing up the entire /data partition with a tar file and reformatting it with command line nightmares.
I'll do what I have to in order to fix this, but I'd rather not embark on an experimental goose chase. Any ideas?

I have this same problem. But only for wiping and flashing.
I have no idea for fix if backup also not working !! (Noob)
1.TWRP click backup. Select all except SDcard.
Finish backup.
2.go to Wipe menu.>advanced wipe>select all except System and Sdcard.
Wipe.
(It will skip the error files)
3.Install menu. Select ROM to flash.
Was what I did.

fear2433 said:
I have this same problem. But only for wiping and flashing.
Click to expand...
Click to collapse
I'm not flashing anything, yet. First I need to make a backup of the entire phone (not including the SDcard). That way, if something goes wrong, I can just restore my old, working configuration -- all at once -- and start over.
I can back up and restore apps individually, using Titanium Backup. But what I need here is a Nandroid-type backup... and that generally has to be done from the recovery partition. There is one other way to backup everything, using a laptop/PC and ADB. But I've never tried it, and it wouldn't protect against a ROM meltdown.

Solved, somewhat...
So I did some further experimentation concerning this error. I did a test run to install CyanogenMod, and I found that I couldn't even factory reset certain partitions because of these "Unable to mount /data/" type errors.
What was ultimately the problem? The encryption. Once I decrypted everything, TWRP was able to see, mount, and backup, those partitions.
But I was under the impression that TWRP handles encryption, e.g. asking for the password, or some such. I mean, how can you do a Nandroid-type backup on a phone, if no recovery can mount those kinds of partitions?
So, for the record: "E:Unable to mount" was definitely due to the encryption being turned on for my internal storage. Thus the solution (so far) is to decrypt storage. A wretched solution, but at least it works for the time being.
BTW, In furtherance of this research, I formatted my internal SDcard to NTFS, just to make sure it wasn't misaligned or whatever when it was just FAT32. And I discovered that NTFS takes forever to format (32GB on the order of a couple hours)., FWIW.

The plot thickens. It may not be sufficient just to undo encryption, there may be something wrong with the way that partition was created, or otherwise is constructed.
Even though I now am able to mount /data, I'm not able to format it.... in TWRP it says something like "unknown filesystem 'auto'".
But there is a thread here that describes using Philz recovery to unmount and then format this mess, and I'm about to try it, I just have to flash Philz in place of TWRP. Now let's hope this version works without issues, because I'd have little recourse if things go bad there.

Related

[Q] problem with sdcard

Hello everybody
After two days of research and attempts, I finally gave up and decided to ask for direct help.
So, a week ago I rooted an Orange-branded Ace and flashed a few ROMs over the next 3-4 days to try to find the one that could suit better.
However, I screwed up something cause at some point in the process the internal sdcard was not seen anymore.
I mean, I can still go in Recovery or Download mode, flash stuff through Odin, boot without problems and use my phone.
Although, any direct access to internal storage is forbidden.
So, no rooting.
Both 2e and 3e CWM can't mount sdcard.
The type of messages I get :
When I pick "apply update from sdcard" -> E:Failed to mount /sdcard (No such file or directory)
When I rebbot after flashing -> -- Appling Multi-CSC... Installing Multi-CSC. Can't access to '/system/csc/whatever/system/'.
No way to get a USB connection either (different computer were tried), all with drivers correcting installed.
Also tried to get to the storage mass with MiniTool partition Wizard or through Disk management, but nothing.
Factory reset is useless, as well as any recovery's wiping process.
No sdcard formatting is possible.
I flashed several stock firmwares, went all the way back to Froyo, but nothing.
I wanted to try and flash a rooted stock rom, but couldn't find any /:
Hopefully one of you will come up with the fix.
Anyway, thanks in advance to everybody.
Cheers
inthered said:
Hello everybody
After two days of research and attempts, I finally gave up and decided to ask for direct help.
So, a week ago I rooted an Orange-branded Ace and flashed a few ROMs over the next 3-4 days to try to find the one that could suit better.
However, I screwed up something cause at some point in the process the internal sdcard was not seen anymore.
I mean, I can still go in Recovery or Download mode, flash stuff through Odin, boot without problems and use my phone.
Although, any direct access to internal storage is forbidden.
So, no rooting.
Both 2e and 3e CWM can't mount sdcard.
The type of messages I get :
When I pick "apply update from sdcard" -> E:Failed to mount /sdcard (No such file or directory)
When I rebbot after flashing -> -- Appling Multi-CSC... Installing Multi-CSC. Can't access to '/system/csc/whatever/system/'.
No way to get a USB connection either (different computer were tried), all with drivers correcting installed.
Also tried to get to the storage mass with MiniTool partition Wizard or through Disk management, but nothing.
Factory reset is useless, as well as any recovery's wiping process.
No sdcard formatting is possible.
I flashed several stock firmwares, went all the way back to Froyo, but nothing.
I wanted to try and flash a rooted stock rom, but couldn't find any /:
Hopefully one of you will come up with the fix.
Anyway, thanks in advance to everybody.
Cheers
Click to expand...
Click to collapse
Sdcard is an external memory, and yes you can't manage it without root permissions so when you connect your phone via USB to your pc you can't see your internal memory partition, only the external (micro sd-card).
Maybe your sdcard is corrupted, try to format it with an USB adapter and then try again
Viper The Ripper said:
Sdcard is an external memory, and yes you can manage it without root permissions so when you connect your phone via USB to your pc you can't see your internal memory partition, only the external (micro sd-card).
Maybe your sdcard is corrupted, try to format it with an USB adapter and then try again
Click to expand...
Click to collapse
Hey, thanks for the reply
Although, I'm afraid I might not have been clear.
I haven't mounted any microSD so far and I've always been able to access to /mnt/sdcard (before screwing up).
Now, after flashing anything on the device, trying to access to My Files - or whatever file manager - will result in a dead end, since no sdcard is seen by the device itself (so, for example, I have no access to DCIM, or Music, Movies, anything).
I can't format the device cause:
- the computer doesn't see it (although drivers installed), not even from Disk Manager
- general disk-formatting/wiping softwares don't see it
- formatting from Recovery is impossible
inthered said:
Hey, thanks for the reply
Although, I'm afraid I might not have been clear.
I haven't mounted any microSD so far and I've always been able to access to /mnt/sdcard (before screwing up).
Now, after flashing anything on the device, trying to access to My Files - or whatever file manager - will result in a dead end, since no sdcard is seen by the device itself (so, for example, I have no access to DCIM, or Music, Movies, anything).
I can't format the device cause:
- the computer doesn't see it (although drivers installed), not even from Disk Manager
- general disk-formatting/wiping softwares don't see it
- formatting from Recovery is impossible
Click to expand...
Click to collapse
Well, I'm gonna explain my post...In my opinion your SD-CARD is corrupted!!! so format YOUR SD-CARD, NOT YOUR PHONE!
Use an USB sd-card adapter!
Right?
Viper The Ripper said:
Well, I'm gonna explain my post...In my opinion your SD-CARD is corrupted!!! so format YOUR SD-CARD, NOT YOUR PHONE!
Use an USB sd-card adapter!
Right?
Click to expand...
Click to collapse
But you're talking about the microSD, right?
What I mean is that, at the moment, I don't have one mounted in the phone.
I've had one before having problems, but I messed up partitions, so had to format everything anyways.
But, right now, it's out of the phone.
Also, as I was saying, I cannot access common folders like Music or Downloads, nor can I drop the update.zip on the internal memory to root, and I don't think any of this has anything to do with external storage /:
inthered said:
But you're talking about the microSD, right?
What I mean is that, at the moment, I don't have one mounted in the phone.
I've had one before having problems, but I messed up partitions, so had to format everything anyways.
But, right now, it's out of the phone.
Also, as I was saying, I cannot access common folders like Music or Downloads, nor can I drop the update.zip on the internal memory to root, and I don't think any of this has anything to do with external storage /:
Click to expand...
Click to collapse
".../sdcard/music
/sdcard/downloads
/sdcard/DCIM..."
All the folders you are saying, they are in sd-card folder so.... and ROOT.zip must be in SD-CARD to flash it....
Did you try to do wipe data/factory reset and wipe cache via stock rom then when you finished to flash the stock¿?
Viper The Ripper said:
".../sdcard/music
/sdcard/downloads
/sdcard/DCIM..."
All the folders you are saying, they are in sd-card folder so.... and ROOT.zip must be in SD-CARD to flash it....
Click to expand...
Click to collapse
I'm sorry, but I might be misunderstanding.
All these folders are in the sdcard folder.
But the sdcard folder is internal, not a microSD, am I right?
When you suggest that the "SD-CARD" might be corrupted and that I should format it, are you referring to the sdcard folder?
Viper The Ripper said:
Did you try to do wipe data/factory reset and wipe cache via stock rom then when you finished to flash the stock¿?
Click to expand...
Click to collapse
Yep. I've flashed (several times) 2.2.1, 2.3.5 and 2.3.6 stocks, wiping everything before flashing and right after having flashed, but I'm always stuck with no access to /sdcard or failure to mount /sdcard..
inthered said:
I'm sorry, but I might be misunderstanding.
All these folders are in the sdcard folder.
But the sdcard folder is internal, not a microSD, am I right?
When you suggest that the "SD-CARD" might be corrupted and that I should format it, are you referring to the sdcard folder?
Yep. I've flashed (several times) 2.2.1, 2.3.5 and 2.3.6 stocks, wiping everything before flashing and right after having flashed, but I'm always stuck with no access to /sdcard or failure to mount /sdcard..
Click to expand...
Click to collapse
/sdcard = external memory = YOUR MICRO SDCARD!!!!! = THE THING YOU INTRODUCE INTO THE SIDE SLOT!! NOT INTERNAL MEMORY!!!
I'am refering to your SDCARD (above you can see what sdcard means)
And yes all these folder are saved in it
The Galaxy Ace does NOT have an internal sdcard. /sdcard is the external sdcard.
Sent from my air conditioner
CallMeVentus said:
The Galaxy Ace does NOT have an internal sdcard. /sdcard is the external sdcard.
Sent from my air conditioner
Click to expand...
Click to collapse
I hope he'll unterstand xDDD as clear as water
inthered said:
I'm sorry, but I might be misunderstanding.
All these folders are in the sdcard folder.
But the sdcard folder is internal, not a microSD, am I right?
When you suggest that the "SD-CARD" might be corrupted and that I should format it, are you referring to the sdcard folder?
Yep. I've flashed (several times) 2.2.1, 2.3.5 and 2.3.6 stocks, wiping everything before flashing and right after having flashed, but I'm always stuck with no access to /sdcard or failure to mount /sdcard..
Click to expand...
Click to collapse
Hi inthered, I think this is getting confusing.
Sd card is the external storage, where you usually have the data, music, photos, etc. Is this sd card that your Myfiles see, if it isnt there Myfiles cant see anything, cause it cant access internal storage.
To access internal storage you must be rooted and have an app that could do that. I believe you said that your phone inst rooted, so you can only see external storage and seems that it isnt there. So you cant access all that folders ( music, etc,) cause they arent there
Have to mount SD first. You can format SD with Mini tool partition Wizard, in FAT32, and use it only as external storage.
Or you can create in this external storage one partition to help manage the internal storage, but that partition wont be seen by normal apps, like Myfiles, ou PC explorer, and you need to be rooted and everything else that didnt worked first time [but it works, I guarantee that]
To finish, internal storage can only be seen in rooted devices and with some apps ( never Myfiles)
Sorry if I wrote too much, but everyone was right, it had to be better explained
Hope I helped
thanks a lot everyone.
sorry for having been insistent, but i really missed the point about the no-internal-sdcard issue (as you might have noticed).
found only today a little time to re-partition sdcard and flash, and it finally works.
thanks again

[Q] Removing encryption

I am thinking of encrypting my HD+ (Settings>Security>Encrypt Tablet). As far as I can see this means simply that the /data partition will be encrypted and that CWM is afterwards not able to access this anymore (ie for backups or restores). I can do a complete backup by other means, but how would I be able to restore that?
Will the recovery still boot and will I then be able to format/wipe /data? Probably not because /data is not mounted!?
Also, what happens if I want to update the system, say to a newer version of CM?
So no one's ever tried to encrypt their HD/HD+?
I am still investigating this "problem" and it seems that quite a few people have run into trouble after encrypting their tablet (TWRP Recovery seems to support an encrypted /data partition but CWM doesn't... correct me if I'm wrong).
So here's a question for the Linux gurus: if I have booted an encrypted tablet and have opened a terminal window with full root access, will I be able to unmount and reformat the /data partition? After that I should be able to reboot into recovery and restore a backup.

Can access fastboot and Recovery, but cannot flash anything

Hello and greetings from germany,
I have a problem with my Moto G 2014 XT1068. I'm coming from rooted stock KitKat (Xposed) with open bootloader and TWRP 2.8.6.0. Everything seemed fine until yesterday, when the phone just went off (0% battery) and stayed at boot animation.
I've tried a lot of things, but the phone seems to be hardbricked:
- I can access recovery, but restoring does "FAIL" (restoring boot partition works, though). Restoring "system" aborts at about 18%, "data" immediately.
- I can access the phone through fastboot, but cannot flash anything. Whatever I do, the phone isn't changed. Tried reverting to stock (getting error when flashing gpt.bin, everything else seemed to work without errors, but no changes), tested flashing other recoveries (partition size mismatch, but that seems to be normal, whatever I flash, it keeps being TWRP 2.8.6.0), or even upgrade the bootloader (no errors reported at all, but no changes made to the phone).
- I can access the phone by MTP from TWRP, but cannot write to or delete anything from the internal SD.
Do you have any further ideas or is it an hardbrick?
Thanks in advance
René
Seems like the internal SD card is damaged, or there's a faulty partition table. Have you tried repairing and formatting /system and /data partitions with TWRP? Does it read external sd cards? If yes you could try flashing CM11 (because lollipop roms need an updated bootloader) from an external sdcard and see what happens. Also your backup could be corrupted, that's why it doesn't let you restore it at all.
As for the recovery, try updating your twrp to the latest version available (3.0). You can update twrp from twrp itself, just to see if it's fastboot's fault.
Wiped /system and /data. Didn't help. Wiping /data/media led to an error.
Is there anything beyond "wipe" to repair and format those partitions?
Thanks for the hints, will try updating TWRP and installing 11 this weekend, as external SDs can be accessed.
Greetings from Germany
René

Please help me. Tried to change /data file system and wiped all my files...

I'm panicking very much right now.
I did a big, big stupid and accidentally wiped my entire /data partition, including /sdcard (!!) in TWRP 3.0.4.1 while attempting to change the filesystem of my /data partition from F2FS to EXT4. I did a full backup of my phone, including /data partition (but excluding /data/media/0/ which is the location for /sdcard of course) on my phone prior to attempting to change the filesystem.
I didn't think that this would also wipe /sdcard, and ALL MY FILES INCLUDING MY BACKUP...
I'm frantically searching through Google as we speak for guides to clone these formatted sectors over USB (I'd imagine using ADB shell) to a PC and use Windows file or partition recovery tools to try and save every, if not most files.
Please lend me your knowledge and links to fixing this issue, Android community. <3
In older Android versions the /sdcard partition was it's own partition, which is why I didn't think of copying all my files over to a PC before making changes to /data.
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
OcazPrime said:
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
Click to expand...
Click to collapse
Heh, that's exactly what happened. I'm gonna attempt this guide: https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Basically try to use "dd" to make a RAW copy of "dev/block/dm-0" which according to the mount command I ran in TWRP's terminal shell, is what block /data is used on OnePlus 3T (OOS 4.1.3).
Wish me luck.

unable to mount internal storage due to encryption

Long story short, I've been trying to get into my internal storage via TWRP but its saying that there are 0MB in the internal storage and that there is nothing in the sdcard folder
I've tried formatting it, hasn't worked
I've tried changing the format to FAT and then back to EXT4
then after that didn't work i tried the same but with EXT2 , it showed the amount of storage but still didn't let me see what was inside of the sdcard folder, whenever i'd go in there its just completely empty
Can I please have some help with this, I've been stuck on this for a couple hours now
Ouch! Please don't say that you just formatted userdata (/data).
You've just killed all your data on your phone.
No, I'm not that experienced with TWRP and I don't know which versions under which circumstances it can mount userdata.
I use custom recoveries and just presume that I can't mount userdata in them.
In the normal system (which mounts and decrypts) I use normal tools to sync or backup.
Renate said:
Ouch! Please don't say that you just formatted userdata (/data).
You've just killed all your data on your phone.
No, I'm not that experienced with TWRP and I don't know which versions under which circumstances it can mount userdata.
I use custom recoveries and just presume that I can't mount userdata in them.
In the normal system (which mounts and decrypts) I use normal tools to sync or backup.
Click to expand...
Click to collapse
I didn't format data it self i meant that i factory reset it, sorry i should of been a lot more clear on that
Oh, ok.
Well, in any case, if it's encrypted you need to mount it not with a simple "mount" command but something fancier using dm.
They don't try to make it easy to do.
Unless you're destroyed your system and you're trying to recover your data, whatever you're trying to do is best done in the normal system.
never mind i found a fix for it
well not really a fix just a way around it
thanks for the help ^^
SoftieIsVibing said:
never mind i found a fix for it
well not really a fix just a way around it
thanks for the help ^^
Click to expand...
Click to collapse
I had the same issue so I flashed a raw firmware after taking full system backup. Now TWRP is working fine.

Categories

Resources