Post Reply

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

OP anukilimanoor

25th August 2014, 03:11 PM   |  #1  
anukilimanoor's Avatar
OP Senior Member
Flag Limerick
Thanks Meter: 390
 
521 posts
Join Date:Joined: Feb 2011
Donate to Me
More
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
The Following User Says Thank You to anukilimanoor For This Useful Post: [ View ]
26th August 2014, 05:08 PM   |  #2  
Member
Thanks Meter: 22
 
58 posts
Join Date:Joined: Feb 2013
I can't find factorymode in efs folder.

Sent from my GT-I9300
29th August 2014, 02:45 PM   |  #3  
Senior Member
Thanks Meter: 14
 
148 posts
Join Date:Joined: Aug 2014
Restoring this kind of backup http://forum.xda-developers.com/gala...ei-nv-t1946915 will also remove factory mode (at least it did when I softbricked my i9305 and had to recover efs).
7th October 2014, 07:34 PM   |  #4  
Junior Member
Thanks Meter: 2
 
22 posts
Join Date:Joined: Aug 2013
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

Hi,

my GT-I9300 is stucked at Samsung Boot Logo. When I start the phone in recovery mode it shows e:failed to mount /efs (Invalid argument).
I have no efs or any other backup....
Tried to flash stock rom with odin but it doesnt work.....

Does your soloution work in my case?
Do you have any other soloutions for me? Im reading XDA threads since hours....
7th October 2014, 08:00 PM   |  #5  
anukilimanoor's Avatar
OP Senior Member
Flag Limerick
Thanks Meter: 390
 
521 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Quote:
Originally Posted by w9999

I can't find factorymode in efs folder.

Sent from my GT-I9300

Are you able to boot the phone?

Quote:
Originally Posted by cruising6n

Hi,

my GT-I9300 is stucked at Samsung Boot Logo. When I start the phone in recovery mode it shows e:failed to mount /efs (Invalid argument).
I have no efs or any other backup....
Tried to flash stock rom with odin but it doesnt work.....

Does your soloution work in my case?
Do you have any other soloutions for me? Im reading XDA threads since hours....

Try the other option and see the imei. If it is ok then no need to restore it.
The Following 2 Users Say Thank You to anukilimanoor For This Useful Post: [ View ]
7th October 2014, 08:47 PM   |  #6  
Member
Thanks Meter: 22
 
58 posts
Join Date:Joined: Feb 2013


---------- Post added at 09:47 PM ---------- Previous post was at 09:45 PM ----------

Quote:
Originally Posted by anukilimanoor

Are you able to boot the phone?



Try the other option and see the imei. If it is ok then no need to restore it.

i restore efs folder.now everything is ok.
8th October 2014, 09:57 AM   |  #7  
Junior Member
Thanks Meter: 2
 
22 posts
Join Date:Joined: Aug 2013
[QUOTE=Try the other option and see the imei. If it is ok then no need to restore it.[/QUOTE]

Which other option?
15th October 2014, 01:23 PM   |  #8  
Senior Member
Thanks Meter: 54
 
355 posts
Join Date:Joined: Sep 2011
Fixed -cannot mount efs
Thanks OP, I just recovered my S3 moments ago, followed yr instructions to the T,
My original imei intact, albeit booted to safe mode, just turn to ON in root explorer and all system back to normal. Thanks again

EDIT: Just for info I install philz_touch_4.00-b21-i9305-fixed_Ported_By_ausdim.tar.md
and i did not mount system.
Last edited by ndmuni; 15th October 2014 at 01:45 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy S III General by ThreadRank