[SOLVED] failed to mount data (invalid argument) - Xperia Tablet Z Q&A, Help & Troubleshooting

Hi guys, during my migration from stock Tablet Z LTE/Pollux to Cyanogenmod 13,
I had this problem in TWRP recovery, preventing me to flash or backup the rom.
Here is the error : failed to mount data (invalid argument), written in red in the log.
Here is the simple trick to get this working :
Still in TWRP recovery under pollux, go in Wipe -> Format Data, type yes and then enter.
It should be OK by now.
You can backup and install your ROM

If you followed official install manual on CM site you should have red point.
2. Select wipe data/factory reset. If you get an error formatting /data, try format /data and /data/media from the mounts and storage menu
Click to expand...
Click to collapse
So it's a good thing to look through manuals before posting)

google attraction
Rootk1t said:
If you followed official install manual on CM site you should have red point.
So it's a good thing to look through manuals before posting)
Click to expand...
Click to collapse
This post is meant to be crawled by google to fix other's issues.
When I searched google i found nearly no simple description for the fix.
So I share it for Google storage.

Related

Help! problem loading Roms

Not sure if this has been answered, but I have been searching and cannot find an answer.
I'm S-Off with Dirty Racun, have been flashing Roms for the past year, no problems, backing up and restoring Roms with no problem. Recently was using the latest Hatka LTE but wanted to restore to an earlier version. Didn't work. Did a super wipe and tried to install clean. Didn't work.
Have been messing with this all day and am stuck. At first it was saying that it could not mount the /sdcard. I thought maybe the internal sdcard was corrupt, so I formatted the internal sdcard. Didn't help.
Anyways, yes, I can get into bootloader and I can get into TWRP.
Yes, I have tried other versions of TWRP. All my backups were created under 2.4.1, have tried 2.4.4 and 2.5 to restore, no success.
In TWRP 2.4.1:
It will say:
Restoring 4 partitions...
Wiping System...
Formatting System using mke2fs...
Done.
Restoring system...
E:Unable to extract tar archive '/sdcard2/TWRP/BACKUPS/HT2324......
Wiping Cache..
Formatting Cache using mke2fs...
Done.
Restoring cache...
[cache done]
Restoring boot...
[boot done]
Updating partition details....
E:Unable to unmount '/system'
Also, not sure if this is related, but when I do Factory Reset under the Wipe section, it will only show that it is formatting cache, formatting data, and wiping .android_secure. It used to say formatting system, but now doesn't mention it?
Also, immediately after it says unable to mount /system, if I try to wipe system, it will give me a fail, unable to unmount /system
Basically, I'm stuck at TWRP and bootloader.
Also, when I try to install a ROM, any ROM, it will die - for example MeanBean 3.09, it will say:
Formatting and Mounting Partition...
Clearing cache and dalvik...
Installing /system....
Installing /data...
symlink: some symlinks failed
E: Error in /sdcard2/MeanBean-v309-jewel-ltevo.zip (Status 7)
Please help! What can I do to restore it back to the way it was so that I can at least get a working ROM on my phone?
Thanks!
Also, if it will help, I am HBoot 1.19.22222
Radio 1.12.11.1210
OpenDSP-v31.1.0.45.0815
Thanks for any help in advance!! Really need this phone to boot into something working.
Buffpandabear said:
Not sure if this has been answered, but I have been searching and cannot find an answer.
I'm S-Off with Dirty Racun, have been flashing Roms for the past year, no problems, backing up and restoring Roms with no problem. Recently was using the latest Hatka LTE but wanted to restore to an earlier version. Didn't work. Did a super wipe and tried to install clean. Didn't work.
Have been messing with this all day and am stuck. At first it was saying that it could not mount the /sdcard. I thought maybe the internal sdcard was corrupt, so I formatted the internal sdcard. Didn't help.
Anyways, yes, I can get into bootloader and I can get into TWRP.
Yes, I have tried other versions of TWRP. All my backups were created under 2.4.1, have tried 2.4.4 and 2.5 to restore, no success.
In TWRP 2.4.1:
It will say:
Restoring 4 partitions...
Wiping System...
Formatting System using mke2fs...
Done.
Restoring system...
E:Unable to extract tar archive '/sdcard2/TWRP/BACKUPS/HT2324......
Wiping Cache..
Formatting Cache using mke2fs...
Done.
Restoring cache...
[cache done]
Restoring boot...
[boot done]
Updating partition details....
E:Unable to unmount '/system'
Also, not sure if this is related, but when I do Factory Reset under the Wipe section, it will only show that it is formatting cache, formatting data, and wiping .android_secure. It used to say formatting system, but now doesn't mention it?
Also, immediately after it says unable to mount /system, if I try to wipe system, it will give me a fail, unable to unmount /system
Basically, I'm stuck at TWRP and bootloader.
Also, when I try to install a ROM, any ROM, it will die - for example MeanBean 3.09, it will say:
Formatting and Mounting Partition...
Clearing cache and dalvik...
Installing /system....
Installing /data...
symlink: some symlinks failed
E: Error in /sdcard2/MeanBean-v309-jewel-ltevo.zip (Status 7)
Please help! What can I do to restore it back to the way it was so that I can at least get a working ROM on my phone?
Thanks!
Click to expand...
Click to collapse
sorry for the replies to myself, but as an update, now even after rebooting into recovery, I can't even wipe - the first thing that happens after I reboot into recovery is I see
E: Unable to mount '/sdcard'
E:Unable to recreate android secure folder.
E:Unable to mount '/sdcard', which repeats itself a couple of times
then Running boot script...
Finished running boot script...
This happens before I press a single button in recovery (TWRP 2.4.1), I mean it happens immediately as it is booting into recovery
Buffpandabear said:
sorry for the replies to myself, but as an update, now even after rebooting into recovery, I can't even wipe - the first thing that happens after I reboot into recovery is I see
E: Unable to mount '/sdcard'
E:Unable to recreate android secure folder.
E:Unable to mount '/sdcard', which repeats itself a couple of times
then Running boot script...
Finished running boot script...
This happens before I press a single button in recovery (TWRP 2.4.1), I mean it happens immediately as it is booting into recovery
Click to expand...
Click to collapse
I had the same issue and ended up using three different versions of TWRP, but if you go to the TWRP thread, captain just posted his version of recovery that he built from source and he fixed some of the issues with the android secure and changed some of the wipes, check it out and reformat using rm rf, works better for me it's in the advanced options...
Edit: link to captain's post
http://forum.xda-developers.com/showthread.php?p=41528948
Sent from my EVO using xda app-developers app

[FIX] How to solve "unable to mount data" error

Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
I had this problem, but not always just formatting helps. First time when I install LOS 15.1 I didn't format internal storage then LOS crypt my storage and TWRP couldn't mount it and I can't just format it, I have error when I try to format it in ext4 by default. Then I try to format it to another file system and select ext2. TWRP succesful format data and then I select again to format it to ext4 and install other rom. I don't know why first time TWRP couldn't format data.
I use google translate. Sorry if I have misspellings
aleksandar9999a said:
I had this problem, but not always just formatting helps. First time when I install LOS 15.1 I didn't format internal storage then LOS crypt my storage and TWRP couldn't mount it and I can't just format it, I have error when I try to format it in ext4 by default. Then I try to format it to another file system and select ext2. TWRP succesful format data and then I select again to format it to ext4 and install other rom. I don't know why first time TWRP couldn't format data.
I use google translate. Sorry if I have misspellings
Click to expand...
Click to collapse
I didn't just suggest to format anything...
The important thing is to reflash twrp via fastboot.
The point is that after doing this you might even be able at all again to format data...
If you follow the further steps I think you're good to go and don't need to change any file system.
Phil_Smith said:
Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
Click to expand...
Click to collapse
Thats because maybe on a backup you select another storage that nota the internal storage....maybe you select otg storage ir something....put the selection on Internal storage....and it resolves
I've same problem in my redmi note 4 (mido). I tried the same but it not works.
After update of resurrection remix oreo (30-05-2018), I unable to install any zip through twrp.It shows "unable to mount /vendor". I also search for vendor partition in mount menu but I cant found any options for it.
If you found any solution plz tell me......... thanks
Stonner_99 said:
I've same problem in my redmi note 4 (mido). I tried the same but it not works.
After update of resurrection remix oreo (30-05-2018), I unable to install any zip through twrp.It shows "unable to mount /vendor". I also search for vendor partition in mount menu but I cant found any options for it.
If you found any solution plz tell me......... thanks
Click to expand...
Click to collapse
me either, my problem. RRD. pls anyhelp?
Hutabarat said:
me either, my problem. RRD. pls anyhelp?
Click to expand...
Click to collapse
Hi, I had the same problem. (Redmi Note 4, Mido)
But after installing RedWolf (Build 27)
with adb/fastboot and everything works fine - without formating everything.
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
solution about unable to mount data on s7 edge
Hi,
Make sure to do a backup of your data, all data will be erased
after many attempts to find the solution
i tried to go to recovery latest twrp:
go to wipe
select data
for me i choosed ext3 and make repair
than i select Fat and again ext3
you can choose another file system
Thank you
Thanks this worked for me
This is the best answer to solve the problem:
CHoozen said:
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
Click to expand...
Click to collapse
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Wachuwey said:
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Click to expand...
Click to collapse
Thanks to you I was able to recover my wife's Redmi 5. Cheers :good:
could not mount data and unable to find crypto error
Good morning guys im using Xiaomi Redmi note 4x(mido) i installed LineageOS 15.1 then the gapps, but the google photos and other google apps keep crashing and recommended me to uninstall and install again. so i wen to twrp and installed the gapps again, then it keeps crashing again. so what i did is to wipe in twrp then installed linneage and the gapps but when rebooting it asked my password then after than i can't no longer boot it keep sayingf could not mount/data and unable to find crypto. i tried all the steps and fix i found here and in other sites but it does not work when i try changing it to other file system it says mke2fs -t ext3 -b 4096 /dev/block/mmcblk0p49, and error 64. Please help thank you
Still not able to mount storage.
Phil_Smith said:
Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
Click to expand...
Click to collapse
I tried everything that is:
-changing file system also gives "unable to mount storage " in every format like fat, ext2, ext3, ext4.
-factory reset also gives same error "unable to mount storage"
-I also tried different recovery.
Please someone help me!!!
Wachuwey said:
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Click to expand...
Click to collapse
Format data solved everything. But before format data, you better backup all your files. Because all of it will be erased like new.
Thank you.
CHoozen said:
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
Click to expand...
Click to collapse
I LOVE YOU!!! U saved me when nothing worked. Ty so much !!
Hey King,
I do not use a Redmi Note 8, yet I had the same problem with my Moto G5 Plus.
Until I read your post and now my phone works.
Thank you!
Hi, i have TWRP 3.6.0 installed on my mi 11 lite (courbet), and then it shows "unable to mount /data". I know, formatting helps, but what to do if i don't want to format it, only i want to update the rom?

TWRP on Swift 2x: Failed to mount '/data' (Invalid Argument)

Hi all.
I'm trying to make a last backup of the stock Android of my Swift 2x before flashing LineageOS. But TWRP (version 3.3.0-0) Seems unable to use the /data partition. I got various messages like:
Could not mount /data and unable to find crypto footer.
Failed to mount '/data' (Invalid Argument)
I tried to format the partition: Wipe -> advanced wipe -> repair or change filesystem -> change filesystem -> ext4 but it didn't change anything.
What's wrong? What can I do?
Thanks a lot for any hint.
bumping this thread as I also ran into this issue.
When using TWRP, the data and system partitions can't be mounted. they also show up as being 0mb in size.
Because of this, no backups can be made and a full system wipe also yields errors.
What I did was change the filesystem to ext2 and then change it back again to ext4.
Doing this at least allowed me to flash crdroid, but making backups still doesn't work.
Whenever i go into TWRP again, it's the same thing again: unable to mount and partitions show up as 0 mb in size.
Anyone know what's causing this?
Wileyfox encrypts there data when you factory reset your device or after youve rooted your device .To get around this you need to do a factory reset using stock recovery once thats done then turn off the device. Then using minimum adb and fastboot type (fastboot boot twrp.img) that will boot your already installed twrp now erase data internal storage etc you'll notice you can finally delete stock os youll see internal storage is showing mbs available again etc worked for me perfectly.

Failed to mount / vendor invalid argument

hello please help
i download the android 11 from this site and when i tried to install it using twrp and by pc mi flash tool
it didnt work and when i restarted my phone it kept going on recovery screen so i tried to hard reset my device but it didnt
worked and from that moment it kept giving an error
Updating Partition Details..
Failed to mount /vendor (invalid argument)
Failed to mount /product ( invalid argument)
i tried every thing from youtube and didnt worked i dont understand what the hell is the issue here
helppppppppppppppppppppppppppppp
AjTheKiller1 said:
Updating Partition Details..
Failed to mount /vendor (invalid argument)
Failed to mount /product ( invalid argument)
Click to expand...
Click to collapse
Which twrp version have you installed. And if you can still boot into recovery follow this steps .
1. Wipe dalvik cache and data.
2. Flash android 11 rom it should give error
3. Wipe dalvik data and cache again.
4. Flash rom
5. Format data.
reboot.

Need some help with my phone

It's been a few days and I'm still stuck with nowhere to go. All of the information and guide from youtube doesn't work for me. The thing is I've been trying to install a custom rom that is Hydrogen OS, it is asking for password and I thought the answer to that is my phone may be encrypted. So now when I'm trying to format data with twrp it says
"Failed to mount '/data' (invalid argument)
Unable to format to remove encryption."
So now I'm stuck without anything as I already advance wipe my internal storage.

Categories

Resources