Android failed to mount invalid argument

Failed to mount ‘/data’ (Invalid Argument)

koberulz

Senior Member

Trying to root my phone. Flashed TWRP in Odin, then installed SuperSU through TWRP. At the end it gives me the error in the title, and I get a ‘failed integrity check’ when booting into the system.

Beanvee7

Senior Member

I’ve always read you have to do a factory reset after TWRP installation due to encryption, but apparently you don’t have to
It still says you lose your OS though.

No factory reset required. Basically, the file system of your Data partition is incorrect and that is why it can’t be mounted on to.

Go to ‘Wipe’->’Advanced Wipe’->Click on the Data box->’Partition Options’->(You may be seeing values like 0mb for most of the information displayed and why you can’t mount to it; if you are not let me know!)->’Change File System’->(Try out different File Systems until you being to see true values for the sizes, but avoid using EXT2 and EXT3 if you can)

Doing all this you will be able to Mount to your Data partition, however your OS will be deleted! So get your phone into Download mode, open up Odin program on your PC, and flash a Bootloader (BL) and your phone will be fine.

Then flash the ‘no-verity-encryption-opt.zip’ and then your SU Binary and Xposed Framework etc.

Good luck again Buddy!

———- Post added at 05:41 PM ———- Previous post was at 05:12 PM ———-

Wait Install the No-verity zip first then, then flash a BL

Источник

E:failed to mount /data (Invalid argument)

hasbrone

Senior Member

Someone with the same error?
After unlocking the bootloader, I did a Wipe Data/Factory Reset and restart Mate stayed in the «Bootloop Android«.
Try Flashing the ROM B923 from FastBoot, but I can not .
Flashing boot.img
Flashing recovery.img
But system.img, I can not flash.
Then change the Recovery by TWRP (for FastBoot), try doing a Wipe Data/Factory Reset, but the same error appeared, then just turn off the Mate.

Any recommendations?
Thank You.

acbka

Senior Member

Someone with the same error?
After unlocking the bootloader, I did a Wipe Data/Factory Reset and restart Mate stayed in the «Bootloop Android«.
Try Flashing the ROM B923 from FastBoot, but I can not .
Flashing boot.img
Flashing recovery.img
But system.img, I can not flash.
Then change the Recovery by TWRP (for FastBoot), try doing a Wipe Data/Factory Reset, but the same error appeared, then just turn off the Mate.

Any recommendations?
Thank You.

hasbrone

Senior Member

hasbrone

Senior Member
  • Connect Mate as FastBoot
  • Install TWRP Recovery

Now we have to do a «Wipe Advenced»

  • Wipe> Wipe Advanced> System (‘system’ only)

After «Format Data»

  • Wipe> Format Data, confirm with «yes»

With this, we recover from these errors: «E: failed to mount / data (Invalid argument), E: failed to mount / system (Invalid argument), E: failed to mount / internal storage (Invalid argument)«

wancohoff

Member
  • Connect Mate as FastBoot
  • Install TWRP Recovery

Now we have to do a «Wipe Advenced»

  • Wipe> Wipe Advanced> System (‘system’ only)

After «Format Data»

  • Wipe> Format Data, confirm with «yes»

With this, we recover from these errors: «E: failed to mount / data (Invalid argument), E: failed to mount / system (Invalid argument), E: failed to mount / internal storage (Invalid argument)»

hallo please help me. After «Format Data»
Wipe> Format Data, confirm with «yes» —————> type me FAILED in step format data. and not can flash update.app. typing: E: failed to mount / data or cashe or system.

hasbrone

Senior Member

Morphine1

Senior Member

melad_thaeer

New member

i have same problem .
i cant Wipe Data/Factory Reset (always fail)
and i tried to Flashing the fastboot.img or recovery.img or (recovery_TWRP_2810.img) by ADB but give me error and fail to write.
I hope someone have the answer.
HUAWEI ASCEND MATE MT1U06

Читайте также:  Полный сброс андроид honor 7a pro

tileeq

Senior Member

i have same problem .
i cant Wipe Data/Factory Reset (always fail)
and i tried to Flashing the fastboot.img or recovery.img or (recovery_TWRP_2810.img) by ADB but give me error and fail to write.
I hope someone have the answer.
HUAWEI ASCEND MATE MT1U06

melad_thaeer

New member

i get this error message

fastboot erase system -w
erasing ‘system’.
FAILED (remote: Not allowed!
finished. total time: 0.001s

vargasjj

Member

i get this error message

fastboot erase system -w
erasing ‘system’.
FAILED (remote: Not allowed!
finished. total time: 0.001s

I am not sure what you are trying to accomplish but you can workaround that problem by unlocking the bootloader as following:

C:\bootCWM\android\huawei\sources>adb.exe reboot bootloader

C:\bootCWM\android\huawei\sources>fastboot.exe oem get-bootinfo
.
(bootloader) locked
OKAY [ 2.220s]
finished. total time: 2.220s

C:\bootCWM\android\huawei\sources>fastboot.exe erase system -w
erasing ‘system’.
FAILED (remote: Not allowed!)
finished. total time: 0.000s

C:\bootCWM\android\huawei\sources>fastboot oem unlock UUUUUUUUUUUUUUUU
.
OKAY [ 0.016s]
finished. total time: 0.016s

Источник

E:failed to mount /cache (Invalid argument)

rajar24

New member

Issue with ADB:
E:failed to mount /cache (Invalid argument)

Followed Process:
1] ADB and Fastboot Files
2] ASUS FLASH TOOLS
3] INTEL USB DRIVER
4] RECOVERY IMAGE [WW_user_2.22.40.53]
5] Firmware [WW_user_2.22.40.54_20151120_16.zip]

Steps:
1. Installed all required drivers
2. Extracted Firmware and ADB/Fastboot, then placed boot.img,fastboot.img,recovery.img inside extracted ADB/Fastboot folder
3. Entered in to DROIDBOOT in phone by pressing Power & vol + and released power button once got vibrated.
4. From ADB/Fastboot folder started command prompt
ADB/Fastboot>Fastboot devices
1 match found
0123456789ABCDEF 1 device found

ADB/Fastboot>fastboot flash fastboot fastboot.img
ADB/Fastboot>fastboot reboot-bootloader
ADB/Fastboot>fastboot flash recovery recovery.img
ADB/Fastboot>fastboot reboot-bootloader
ADB/Fastboot>erase data
ADB/Fastboot>erase cache

Then selected Recovery using Power button.
5. Now system/phone got booted up and entered in to andriod belly icon, pressed vol- and just once pressed vol+.
6. System/phone displayed menus
reboot system now
apply update from ADB
factory reset
wipe cache partition

and below I can see list with
E:failed to mount /cache (Invalid arguments)
E:can’t mount /cache/recovery/log
.
.

a big list of E:Can’t and failed
7. Still I have selected apply update from adb

ADB/Fastboot>adb devices
1 match found
0123456789ABCDEF 1 device found

ADB/Fastboot>adb sideload firmware.zip

It enabled and went for 100%.

But in system finally I got again big list of E:failed to mount /cache (Invalid argument).

Источник

ERROR on recovery —> E: failed to mount /data (Invalid argument)

My solution is simples. but you will LOSE EVERY FILE on userdata.
Step 1: Install TWRP
Step 2: Go to Wipe box
Step 3: Select Advanced Wipe
Step 4: Check «DATA» and tap on «Repair or Change File System».
Step 5: Tap Change File System
Step 6: See original format on file system (In my S6 is EXT4). So turn to other and switch back to original

Now /data is mounted back.
Install a custom and later a stock.

I need help, I have this problem wih my S7 sm-g930f.

I have read a lot, but I think this is te solution, buto I don’t know what is twrp, and how can I install it, I have never heard about it. Please, help me I’m tired to look for a solution. My cel has 3 months and I loose warranty because I rooted, Know say WARRANTY VOID: 1 (0X0500)

I have flash about 20 roms, but the phone frezzes and restarts but doesnt run completely and it says failed to mount/dada (invalid argument), so I think this is the problem.

Hello I have a problem with my mobile phone
A samsung S DUOS 2
I coildnt do a hard reset with a no command error messge
And these messages
Also while booting my phone it stays on the Samsung animated first screen
And it took forever on that screen!
Please help
The other messages are:

E:failed to mount /data (Invalid argument)
can’t mount ‘/data’ (Invalid argument)
E:failed to mount /data (Invalid argument)
E:Can’t mount /data/log/recovery_log.txt

Hello I have a problem with my mobile phone
A samsung S DUOS 2
I coildnt do a hard reset with a no command error messge
And these messages
Also while booting my phone it stays on the Samsung animated first screen
And it took forever on that screen!
Please help
The other messages are:

E:failed to mount /data (Invalid argument)
can’t mount ‘/data’ (Invalid argument)
E:failed to mount /data (Invalid argument)
E:Can’t mount /data/log/recovery_log.txt

My solution is simples. but you will LOSE EVERY FILE on userdata.
Step 1: Install TWRP
Step 2: Go to Wipe box
Step 3: Select Advanced Wipe
Step 4: Check «DATA» and tap on «Repair or Change File System».
Step 5: Tap Change File System
Step 6: See original format on file system (In my S6 is EXT4). So turn to other and switch back to original

Читайте также:  Андроид авто через блютуз киа спортейдж 4 как подключить

Now /data is mounted back.
Install a custom and later a stock.

I had the same problem which started with my phone losing my wallpaper all the time within minutes, then going to a black background and being really slow, & slow to reboot until it finally wouldn’t get past the SAMSUNG logo when rebooted, seems it’s from corruption of the partitions. Biggest problem was that since USB debuggingg wasn’t enabled, I had a hard time connecting to my pc. Was able to with ODIN & proper drivers. Found many bogus or old drivers and roms out there that were useless. This fixed it after flashing a the latest rom for my SCH-T999L rom via ODIN as here https://www.theandroidsoul.com/t999l. lte-sgh-t999l/, but I still had the bad E:\ partition & it wuld now get to the T-Mobile screen and hang. The below fix that. Seems that the stock recovery doesn’t wipe and format all the cache & partitions, TWRP did. All in all, except for some loss of data ( keep most on my extSD card) and Google backup supplied a lot of the rest, including reinstalling many of my apps with their data, it turned out to be a good thing because being rooted and with TWRP I can now customize my old S3 with some newer roms and can use Titanium backup and SuperBackup to their full extent. And my device zooms now compared to what it was before. Evidently there was a lot of leftover garbage from old apps, because I have 9 gigs of free space now & 500mb of system space left.

Note especially that you should not mess with the pit file in ODIN when flashing. Also note that this was especially for a TMobile T999L (different from T999), althought the TWRP & Superuser will work on either TMOBILE Galaxy S3.
1. Install Odin & TWRP as stated here https://www.theandroidsoul.com/how-t. ry-using-odin/
2.use TWRP to reformat data, cache, & davlich
3. I rooted at the same time (might as well) using ODIN as here https://www.theandroidsoul.com/how-t. ndroid-device/

ERROR on recovery —> E: failed to mount /data (Invalid argument)

Источник

How to Fix failed to mount /system (invalid argument) in TWRP

In this guide, we will show you the steps to fix the failed to mount /system (invalid argument) error in TWRP. Each device has quite a few partitions. Some of them include the boot, recovery (in A-only device), vendor, vbmeta, userdata, system, etc. While the number, type, and size of partitions might vary across various devices, the aforementioned partitions could be found on near about every device.

And while each of these partitions are important in their own rights, it is the system partition that could be categorized as the most important one. The reason is pretty simple: it holds your OS. However, if there’s an issue with this partition, there are bound to be issues. Among the various issues, the most common is associated with TWRP.

Many concerned users have complained that they are unable to mount the system partition on their device. As a result, every time they are about to flash a Custom ROM, TWRP displays the failed to mount /system (invalid argument) error message. While this issue is justifiably concerning, fortunately, it could be fixed via a few workarounds. So without further ado, let’s check them out.

Table of Contents

How to Fix failed to mount /system (invalid argument) in TWRP

Before trying out any of the below-mentioned fixes, it is highly recommended to take a backup of all the data on your device. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

Fix 1: Install Stock Firmware via TWRP

In this method, we will be wiping all the device partitions and then flashing the stock OS via TWRP. While most devices come with a Recovery ROM (including OnePlus’s OxygenOS and Xiaomi’s MIUI Recovery ROM), there are some that don’t have a custom recovery-supported flashable ROM.

For those set of devices, they should refer to our guide to Flash Stock Firmware via Fastboot Commands. Whereas for other users who could flash stock ROM via TWRP, they should proceed with the below instructions:

Читайте также:  Android auto pioneer как подключить

  1. To begin with, boot your device to the TWRP Recovery. Then go to Wipe and tap on Advanced Wipe.
  2. Select Dalvik/ART Cache, System, Data, and Vendor partitions and perform a right swipe to wipe them. [if you cannot select the System partition, then refer to the FAQ at the end of this guide].
  3. Once that is done, transfer the Recovery ROM to your device. For that, go to Mount and tap on Enable MTP. Likewise, you may use the ADB Sideload or try via the USB-OTG. All these have been explained in the guide: 3 Methods To Transfer or Install Files via TWRP Recovery.
  4. Once the file has been transferred, go to Install. Select the ROM ZIP file and perform a right swipe to flash it.
  5. After this, you may now reboot the device to the OS. For that, go to Reboot and select System. Check if it is able to fix the failed to mount /system (invalid argument) error in TWRP.

Fix 2: Repair System Partition via TWRP

You could also use the TWRP’s built-in Repair File System feature to repair the system partition on your device. Here’s how:

  1. Boot your device to the TWRP Recovery and go to Wipe.
  2. Then select Advanced Wipe and checkmark the System partition.
  3. After that, tap on Repair or Change File System and then tap on the Repair File System button.
  4. Finally, perform a right swipe to repair the System partition.
  5. Once done, go to Reboot and select System. Your device shall now be booted to OS and see if the failed to mount /system (invalid argument) error in TWRP has been fixed or not.

Fix 3: Refresh EXT4 File System via TWRP

By default, your device would be having the EXT4 File System. In this section, we would change it to EXT2 and then revert to the original EXT4. Here’s how it could be done:

  1. From TWRP, go to Wipe and select Advanced Wipe.
  2. Select the System partition and tap on Repair or Change File System
  3. Check the top of the menu, if File System says: EXT4 (as will be the case with most devices, then we would switch to EXT2 and then back to EXT4).

  4. On the other hand, if it says EXT2, then you should switch to EXT4 and back to EXT2. As for this guide, we are going ahead with the former (since our device has EXT4 by default).
  5. So tap on the Change File System button and select EXT2 and perform a right swipe to confirm it.
  6. Once done, again go to this screen, and this time tap on EXT4 to switch to your original file system.
  7. Once that is done, reboot the device to the OS via Reboot > System. The issue should now have been fixed.

So with this, we conclude the guide on how to fix the failed to mount /system (invalid argument) error in TWRP. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

FAQs: Wipe System Partition via Fastboot Commands

If you cannot select the System Partition via TWRP, then you would have to wipe it via Fastboot Commands. Here’s how it could be done:

  1. To begin with, go to the Reboot section of TWRP and select System.
  2. Then install the Android SDK Platform Tools on your PC.
  3. Go to this platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the CMD window.
  4. Connect your device to the PC via USB cable.
  5. Now type in the below command in the CMD window to wipe the system partition:
  6. After this, you will have to reboot your device to TWRP. Use the below command for that:
  7. Once your device boots to TWRP, wipe the other partitions (Dalvik/ART Cache, Data, and Vendor).
  8. You may now flash the ROM ZIP file as mentioned above and fix the failed to mount /system (invalid argument) error in TWRP.

About Chief Editor

Sadique Hassan

A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”

Источник

Оцените статью