Dear all
I have make reformat internal storage in TWRP recovery then restore full TWRP backup. After phone boot I can"t create any file or folder in phone storge!!
Any help???
What file manager are you using? Do you have supersu installed? Did you reboot wiping cache and dalvik only?
I have fix the permission by Adb command in TWRP by this command
use for fixing access
su
restorecon -FR /data/media/0
Swarai said:
What file manager are you using? Do you have supersu installed? Did you reboot wiping cache and dalvik only?
Click to expand...
Click to collapse
I'm using ES file explorer
Yes already rooting Super Su installed.
Yes wiping cach, dalvik
a_2004_81 said:
I have fix the permission by Adb command in TWRP by this command
use for fixing access
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Working perfectly yesterday, today same problem not fixed by TWRP Terminal command!!!!
Fixed with terminal command in TWRP by comand:
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
a_2004_81 said:
Fixed with terminal command in TWRP by comand:
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
Click to expand...
Click to collapse
I had the same issue on Nexus 5 and with these commands storage is now writable. Thank you!!!
I have the same problem someone who helps me.
I made it a factory restore and now writes in the internal memory can only write to SD
external
a_2004_81 said:
I have fix the permission by Adb command in TWRP by this command
use for fixing access
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
thank you
Related
I keep noticing a trend with people asking about how to wipe their SD cards. so here is a hopefully easier way.
Steps:
Type this in recovery menu console
Code:
mount /system/
mount /data/
rm -rf /data/*
rm -rf /system/sd/*
if you wish to save your userinit.sh
Code:
mount /system/
mount /data/
rm -rf /system/sd/app*
rm -rf /system/sd/dalv*
rm- rf /data/*
and that should do it. I would like to work on a recursive app that will have more security about it, possibly a busybox type command that would allow you to simply type wipe -all and it give you a Y/N option. I started a type up of a shell script but no , however recovery menu doesn't start any scripts, and running it in android itself is retarded. the system needs all the files.
This is awesome thanx. It will be useful.
Question:
I understand wiping the apps of the ext but why would you want to wipe the data when you can just do an alt+w? Wouldn't an alt+w also wipe the data?
Mine shows /system/sd/ empty, but when I boot up into the OS all the apps are still there.
Thanks Denkai, one thing missing...
First
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
Denkai said:
I keep noticing a trend with people asking about how to wipe their SD cards. so here is a hopefully easier way.
Steps:
Type this in recovery menu console
Code:
mount /system/;
mount /data/;`
rm -rf /data/* ;
rm -rf /system/sd/* ;
and that should do it. I would like to work on a recursive app that will have more security about it, possibly a busybox type command that would allow you to simply type wipe -all and it give you a Y/N option. I started a type up of a shell script but no , however recovery menu doesn't start any scripts, and running it in android itself is retarded. the system needs all the files.
Click to expand...
Click to collapse
I usually would do mount /system/sd/ then rm -rf /system/sd/*
Denkai said:
I keep noticing a trend with people asking about how to wipe their SD cards. so here is a hopefully easier way.
Steps:
Type this in recovery menu console
Code:
mount /system/;
mount /data/;`
rm -rf /data/* ;
rm -rf /system/sd/* ;
and that should do it. I would like to work on a recursive app that will have more security about it, possibly a busybox type command that would allow you to simply type wipe -all and it give you a Y/N option. I started a type up of a shell script but no , however recovery menu doesn't start any scripts, and running it in android itself is retarded. the system needs all the files.
Click to expand...
Click to collapse
You forgot 'mount /system/sd' step. Also, instead of 'rm -rf /system/sd/*', you may wanna say 'rm -rf /system/sd/app*;rm -rf /system/sd/dalv*;'. You don't want to delete people's custom /system/sd/userinit.sh.
this should be included in the cyanogen+JF recovery, so we can just do it there before installing new roms.
devsk said:
You forgot 'mount /system/sd' step. Also, instead of 'rm -rf /system/sd/*', you may wanna say 'rm -rf /system/sd/app*;rm -rf /system/sd/dalv*;'. You don't want to delete people's custom /system/sd/userinit.sh.
Click to expand...
Click to collapse
you don't need to mount system/sd it gets mounted when you mount system. and the idea by 'rm -rf /system/sd/*' instead of what you are saying is so that it does wipe EVERYTHING. hense the context. if they don't want to remove thier userinit.sh, they need to keep a copy.
Denkai said:
you don't need to mount system/sd it gets mounted when you mount system. and the idea by 'rm -rf /system/sd/*' instead of what you are saying is so that it does wipe EVERYTHING. hense the context. if they don't want to remove thier userinit.sh, they need to keep a copy.
Click to expand...
Click to collapse
Mount command is not recursive. Somebody cribbed about their '/system/sd' being empty, it was because of this.
no it wasn't. I've tested it. the apps folder is there with all the .apks. test it out yourself. they probably didn't know what they were doing.
it says device or resource busy.. :S
what to do?
UPDATE: this works..
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
but honestly i dont know the difference between all these commands...
When I wipe it involves formatting the partition, not just deleting the data off it. i.e. `mke2fs -j /dev/block/mmcblk0p2`
so if i do this:
mount /system/
mount /data/
rm -rf /data/*
rm -rf /system/sd/*
will my FAT32 partition remain intact?
my end goal is to wipe/nuke everything on my EXT3 and then reflash a ROM all from 1.4 recovery.
elingreen said:
so if i do this:
mount /system/
mount /data/
rm -rf /data/*
rm -rf /system/sd/*
will my FAT32 partition remain intact?
my end goal is to wipe/nuke everything on my EXT3 and then reflash a ROM all from 1.4 recovery.
Click to expand...
Click to collapse
Your FAT32 should not be touched using this.
dumfuq said:
When I wipe it involves formatting the partition, not just deleting the data off it. i.e. `mke2fs -j /dev/block/mmcblk0p2`
Click to expand...
Click to collapse
awesome, tried it and works... i have 4 apps installed.. so nuking is my best option!!!
thanks man!
Denkai said:
however recovery menu doesn't start any scripts, and running it in android itself is retarded. the system needs all the files.
Click to expand...
Click to collapse
I believe this 'could' work
the files are in RAM, so not all needed. Possibly deleting them all and then an immediate reboot would work
or delete and then r/o really fast.
Hi, I'm enter on my transformer by :
adb shell
and I want do that :
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system
cd /data/app
rm com.mhuang.overclock*
cd /data/data
rm com.mhuang.overclock*
cd /data/dalvik-cache
rm *mhuang.overclock*
exit
But when I execute su, it don't work :
/data/app # su
Segmentation fault
Can you help me ?
Thanks
Just reflash your rom without wiping data unless your trying to flash a rom that is overclocked by default
If it's in your data partition, then it's not a system file. Try this:
adb uninstall com.mhuang.overclocking (use the full package name)
EDIT: saw your other thread about borking your TF. follow badfrog's trick and flash a rom with a non-overclocking kernel, which will limit setcpu.
If adb uninstall don't work, which rom with overclock by default propose me ? Révolution HD ?
Sorry for my english, i'm french ?
Prime has a stock kernel as default
http://forum.xda-developers.com/showthread.php?t=1251044
i want to use INT2EXT in cm9 i followed this tutorial
xpmode said:
INT2EXT+ INSTALLATION TUTORIAL
IF YOU ALREADY HAVE S2E, LINK2SD OR SIMILAR, YOU MUST REPARTITION SD CARD AND FACTORY WIPE
int2ext+ is a relatively new script that instead of making symbolic links(Link2SD) or moving certain partitions(S2E) to sd, extends your internal storage into your ext partition in sd, which means S2E's potential space saving and Link2SD's stability combined together and gives you something to brag about.
PREPARATIONS
Download the latest build of CyanogenMod 9.
Download the latest version of CronMod INT2EXT+ here.
Open CyanogenMod 9 zip.
Navigate to /system/etc/init.d
Open INT2EXT+ zip.
Navigate to /system/etc/init.d
Add the file called 40int2ext in the /system/etc/init.d directory in CM9 zip.
INSTALLATION
Go to recovery, do factory reset and advanced > partition sd card.
Select 1024M for ext(for some reason, I selected 4096 and it only read the first 1GB-ish) and 0M for swap.
Wait until it says Done and goes to menu.
Go to Mounts and Storage.
Select USB storage and connect your phone to your computer.
Copy your modified CM9 zip file to the root of your sd.
Select unmount.
Reflash ROM.
Reboot.
After reboot, go to settings > developer settings > root access and select Apps and ADB.
Go to your adb directory and do adb shell.
Type su.
Then do:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/etc/init.d
chmod 644 00banner
chmod 644 90userinit
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Reboot.
After reboot, reboot into recovery and flash gapps.zip normally.
Then go to Applications and enjoy your new, extended internal storage.
Click to expand...
Click to collapse
can someone help me how to do adb shell and go to adb directory
Use the directory that you used to root your device.
Hpsgill said:
can someone help me how to do adb shell and go to adb directory
Click to expand...
Click to collapse
Err, now that's funny. To do adb shell, all you have to do is put in the command adb shell
Isn't that funny? xD
What the guide meant for adb directory is the place where the adb.exe file is kept.
So all you have to do is put in cmd:
adb shell
and while you're in shell you just put in those commands:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/etc/init.d
chmod 644 00banner
chmod 644 90userinit
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
After that to close the terminal, type in:
exit
then adb reboot
Hope that helps =)
Chaosgod27 said:
Err, now that's funny. To do adb shell, all you have to do is put in the command adb shell
Isn't that funny? xD
What the guide meant for adb directory is the place where the adb.exe file is kept.
So all you have to do is put in cmd:
adb shell
and while you're in shell you just put in those commands:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/etc/init.d
chmod 644 00banner
chmod 644 90userinit
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
After that to close the terminal, type in:
exit
then adb reboot
Hope that helps =)
Click to expand...
Click to collapse
Thanks
No worries =)
Chaosgod27 said:
No worries =)
Click to expand...
Click to collapse
can u tell me how to use other scripts eg apps2sd,link2sd and their works
Hmm, if you want. Right now I'm a bit busy with work...
Chaosgod27 said:
Hmm, if you want. Right now I'm a bit busy with work...
Click to expand...
Click to collapse
Anytime ,when u r free or pm me
Sent from my HTC Explorer A310 using xda premium
What did you want to know about them? You want to know how to install them or?
Chaosgod27 said:
What did you want to know about them? You want to know how to install them or?
Click to expand...
Click to collapse
Every thing about there scripts I never partation my memory card
Sent from my HTC Explorer A310 using xda premium
Chaosgod27 said:
Err, now that's funny. To do adb shell, all you have to do is put in the command adb shell
Isn't that funny? xD
What the guide meant for adb directory is the place where the adb.exe file is kept.
So all you have to do is put in cmd:
adb shell
and while you're in shell you just put in those commands:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/etc/init.d
chmod 644 00banner
chmod 644 90userinit
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
After that to close the terminal, type in:
exit
then adb reboot
Hope that helps =)
Click to expand...
Click to collapse
Hmmm, you don't need adb for this. Just use terminal emulator on your phone. It comes installed by default on CM9 roms. Or you can search play store for android terminal emulator. The app is by Jack Palevich
Code:
su
mount -rwo remount /system
cd /system/etc/init.d
chmod 644 00banner
chmod 644 90userinit
mount -ro remount /system
Then again, I don't really see why it is necessary to deny execute permissions to these scripts in first place. They are just empty shells - unless they have been modified.
I'm using int2ext4 right now and never really had to...
EDIT: If you want to reverse these changes then
Code:
su
mount -rwo remount /system
chmod -R 755 /system/etc/init.d
mount -ro remount /system
Hpsgill said:
can u tell me how to use other scripts eg apps2sd,link2sd and their works
Click to expand...
Click to collapse
Script details:
a2sd,a2sd+,a2sd++,d2ext,d2ext+,int2ext,int2ext+,int2ext4,int2ext4+ --- forum.xda-developers.com/showthread.php?t=1716124
mount2sd --- forum.xda-developers.com/showthread.php?t=1342387
As of link2sd it uses installrecovery.sh file in /system/etc to mount sd-ext partition. It then moves apps/data/dalvik-cache to sd-ext and places symlinks at the original locations.
Take a look here where i've explained why symlink based apps/scripts should not be used on HTC explorer.
Hit thanks if i helped!:good::good:
sabaatworld said:
Script details:
a2sd,a2sd+,a2sd++,d2ext,d2ext+,int2ext,int2ext+,int2ext4,int2ext4+ --- forum.xda-developers.com/showthread.php?t=1716124
mount2sd --- forum.xda-developers.com/showthread.php?t=1342387
As of link2sd it uses installrecovery.sh file in /system/etc to mount sd-ext partition. It then moves apps/data/dalvik-cache to sd-ext and places symlinks at the original locations.
Take a look here where i've explained why symlink based apps/scripts should not be used on HTC explorer.
Hit thanks if i helped!:good::good:
Click to expand...
Click to collapse
thanks maaaaaan!!!
where is the adb directory?? do we have to install it in our pc or its there in our explorer?
Sent from my HTC Explorer A310e using xda premium
everything i did went well and i checked the internal memory its shows 850mb ... now the problem is when i type adb shell in terminal its say error:device not found ... so what should i do ???
Requesting for a ONE CLICK AUTO APK INSTALLER, i just want to make it short like selecting in my SD CARD the apps and games that i want to install after that i will automatically install those files that i choose after i confirm those to install.
i already used apps like this in my HTC last time. thanks in advance
ES File Explorer
wierzbik said:
ES File Explorer
Click to expand...
Click to collapse
i dont want to always press INSTALL.
its like this i will select the apks to install and then i will confirm to install them all after that it will install all the APKS with no more press "YES TO INSTALL"
adb install name.apk
#!/system/bin/sh
mount -o remount, -rw /sbin
mount -o remount, -rw /system
mount -o remount, -rw /system/xbin
mount -o remount, -rw /system/bin
# enable the adbd daemon and busybox
mount -o remount, -rw -t rootfs rootfs /
chmod 777 /sbin/adbd
chmod 777 /system/xbin/busybox
chmod 777 /system/bin/pm
cd /storage/sdcard1/apps;
for app in *.apk; do pm install -r $app; done
chmod 750 /sbin/adbd
chmod 750 /system/xbin/busybox
chmod 750 /system/bin/pm
mount -o remount, -ro /sbin
mount -o remount, -ro /system
mount -o remount, -ro /system/xbin
mount -o remount, -ro /system/bin
put apps in folder apps on external.
should you have different location then you can change line accordingly
I got this in tasker, source is xda, not me...
I can export as app, just reply with locations adbd, busybox pm, and route of external sd card.
but using this code in terminal should do it
You need root busybox and such. and permissions, set as you like
Sent from my GT-N7000 using Tapatalk 2
Lidroid Toolbox.
Choose your apks and it installs them all by ome click. Google it.
Sent from my GT-N7000 using Tapatalk 2
Hi, recently I updated to Alberto97's unofficial version of LineageOS "lineage-14.1-20171105-UNOFFICIAL-osprey.zip" and the latest opengapps. After booting the rom, I noticed I can't access the internal memory at all. I've already tried osmosis' SD card file permissions fix, fixing the context of SELinux on TWRP, these commands:
chown -R media_rw:media_rw /data/media/
find /data/media/ -type d -exec chmod 775 {} ';'
find /data/media/ -type f -exec chmod 664 {} ';'
and nothing fixes it. Is there any other fix for it? I can access the SD card itself, just not the internal memory.