Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Micromax Takes OnePlus to Court! Android Wear Receives Lollipop – XDA TV

Android 5.0 Lollipop is available officially for the Moto 360! … more

Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

YU Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How to fix - E:failed to mount /efs (Invalid argument)

OP anukilimanoor

18th November 2014, 06:57 AM   |  #11  
Junior Member
Flag Capital Federal
Thanks Meter: 0
 
22 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by anukilimanoor

Is there any error while running this command
mke2fs /dev/block/mmcblk0p3

No, its all fine.
25th November 2014, 02:14 PM   |  #12  
Senior Member
Flag lagos, nigeria
Thanks Meter: 8
 
205 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by nachocarp

i did it but i have this issue when inputing "mount -w -t ext4 /dev/block/mmcblk0p3"
It says "mount: can´t find /dev/block/mmcblk0p3 in /etc/fstab"

Please, save my day.



same with me too, pls save my day

Edit: so in the command window, last line of code after running

mke2fs /dev/block/mmcblk0p3

i got :

The filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

So in the code:

mount -w -t ext4 /dev/block/mmcblk0p3

I replaced -w and -t with -c and -i respectively.

Note: -c and -i was pulled from:

The filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

reboot

Boom! it worked.
DONT FOEGET TO HIT THE THANKS BUTTON
Last edited by ahmmyreal; 25th November 2014 at 02:40 PM.
26th November 2014, 07:38 AM   |  #13  
Junior Member
Flag Capital Federal
Thanks Meter: 0
 
22 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by ahmmyreal

same with me too, pls save my day

Edit: so in the command window, last line of code after running

mke2fs /dev/block/mmcblk0p3

i got :

The filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

So in the code:

mount -w -t ext4 /dev/block/mmcblk0p3

I replaced -w and -t with -c and -i respectively.

Note: -c and -i was pulled from:

The filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

reboot

Boom! it worked.
DONT FOEGET TO HIT THE THANKS BUTTON

I did it and this is what it shows. Then when i try to remove factory mode, i have trouble when inputing

chown 1000.1000 /efs/FactoryApp/keystr
and
chmod 0744 /efs/FactoryApp/keystr

Still, it worked but i dont have my imei.

When you reboot from adb, does the phone starts with the correct imei?
Do i need to have a previous backup for this method to work?
Attached Thumbnails
Click image for larger version

Name:	Sin título.png
Views:	80
Size:	26.9 KB
ID:	3034682  
Last edited by nachocarp; 26th November 2014 at 07:56 AM.
26th November 2014, 07:57 AM   |  #14  
Junior Member
Flag Capital Federal
Thanks Meter: 0
 
22 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by anukilimanoor

Is there any error while running this command
mke2fs /dev/block/mmcblk0p3

When you reboot from adb, does the phone starts with the correct imei?
Do i need to have a previous backup for this method to work?
26th November 2014, 09:44 PM   |  #15  
andrewwright's Avatar
Senior Member
Flag east
Thanks Meter: 3,171
 
5,601 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Nice tut mate. Nice and detailed. :thumbup: great info for the community.
9th December 2014, 12:48 PM   |  #16  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Dec 2014
Quote:
Originally Posted by anukilimanoor

My phone was dead due to unknown reason. It was very slow for last couple of days, so I reboot the phone into recovery and then wipe cache and dalvik. After the wipe I reboot the phone but it stuck on Samsung logo. So I tried different unsuccessful methods like, flash stock ROM, restore efs folder, etc...

After flashing the stock ROM, rebooted the phone into recovery for factory reset, then only I noticed the error E:failed to mount /efs (Invalid argument). If you are on CWM recovery then you may not see this error.

Solution:
Flash an official firmware from sammobile
Flash CWM recovery
Boot into Recovery
Select mount and storage -> mont /system
Connect your phone to PC using USB cable
Open ADB command window and type the following commands

Code:
adb shell
Code:
mke2fs /dev/block/mmcblk0p3
Code:
mount -w -t ext4 /dev/block/mmcblk0p3
Code:
reboot
Now your phone will boot, but it may be in factory mode (ie you can see yellow box showing some ROM information).

Remove factory mode:
There are different methods that we can use to remove factory mode
In my case
1. Installed custom ROM to get root access
2. Instaled kTool
3. Copy the backup of my efs into sdcard (you can use .img or tar file)
4. Open kTool and restore the efs
5. Reboot the phone

* This method is the easiest and safest method because when you are getting the efs mount error there is a chance of loosing your IMEI and some other files, in that situation the following methods will not work.

OR

1. Root your phone (Either root manually or install a custom ROM)
2. Install ES File Explorer
3. Open ES File Explorer and turn on Root Explorer
4. Navigate to /efs folder
5. Open factorymode as txt in ES Note Editor
6. Change it from OFF to ON and save
7. Reboot your phone

OR

1. Root your phone (Either root manually or install a custom ROM)
2. Install Terminal Emulator
3. Run the following commands
Code:
su
rm /efs/FactoryApp/keystr
rm /efs/FactoryApp/factorymode
echo -n ON >> /efs/FactoryApp/keystr
echo -n ON >> /efs/FactoryApp/factorymode
chown 1000.1000 /efs/FactoryApp/keystr
chown 1000.1000 /efs/FactoryApp/factorymode
chmod 0744 /efs/FactoryApp/keystr
chmod 0744 /efs/FactoryApp/factorymode
reboot

I've got a couple of questions
1. On what official firmwares should i choose from sammobile? because there's a lot firmware from different region
2. I've install adb before, but in the command prompt, it said that adb is not recognized. What should i do?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes