This command will create a generic EFS files on your device. Su mke2fs /dev/block/mmcblk0p3 mkdir /efs mount -t ext4 /dev/block/mmcblk0p3 /efs dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3 bs=4096reboot Go back into recovery and get adb access. To fix just install gapps and it will be fixed. Install your new rom, It should install without any errorsīoot your phone, After it boots your signal notification most likely will be gray and internet or calls may not work. Ready a ROM(I use Pac Man ROM) in your microSD and insert into device.ġ) Download and flash official firmware for your phone using Odin.Ģ) Root and flash custom recovery(I use TWRP) using Odinģ) Install ADB on your computer(Usually by installing Samsung USB driver)Ĥ) Boot into recovery mode(hold up+power button)Ħ) In recovery mode Choose “mount and storage > mount /system”(In TWRP, just tick the 'system')ħ) At PC, open ADB command window and type :ĭd if=/dev/block/mmcblk0p3 of=/sdcard/efs.imgĭON'T REBOOT YET, Now /efs is mounted don't unmount it.
This looping is a common nightmare for a Samsung devices. I got a Samsung Galaxy Note 8 GT-N5100 with error E:failed to mount / efs (Invalid argument) whenever I run a wipe cache or wipe factory in recovery.