Cwm or twrp?
And mount the system in adb shell. Cwm can mount the system correctly, but twrp has some problems there. U can only Mount system in twrp by using the mount function in adb shell.
Reboot in recovery
Check adb, adb devices
Remount adb root, adb remount
Mount system, adb shell mount /system
And after this use the commands from the topic.
Needs a terminal emulator installed on the phone.
1. Download the razricleaner.sh to the root of your internal sdcard
2. Open the terminal app
3. Give it su rights. "Su"
4. Give the file proper perm "chmod 777 storage/sdcard0/razricleaner.sh" I still think 777 is way to high...
5. Execute the file ". Storage/sdcard0/razricleaner.sh" or "exec storage/sdcard0/razricleaner.sh"
The paths may differ from yours. Change them to the ones you need.
Sent from my GT-P5110 using XDA Premium HD app