restorecon -FR broke my internal storage - Huawei Ascend P6, Mate

Hi sorry for the spamming I couldn't find the relevant forum for my phone.
I have a Huawei Y360 with emui custom rom installed, but when I checked my sdcard it only had 5MB free out of 5MB when it should read more than 1GB so I went to adb shell and typed in:
restorecon -FR /data/media
And rebooted my phone and it said 0.00B free and cause I download a lot of files I need my internal storage back to normal does anyone have a fix for this?

Related

[Test] Extended App2SD with data/data on SD

I'm using App2SD+ with MoDoCo r7.
I have today tried to moving data/data to sd card through symlink. I have now 138 MB internal memory free with (240 Apps). 90% of Apps & all Games works fine. But I can't start some Apps like "Market" or "Swype".
I get an error and it will be closed.
Can somebody check my adb steps ? is it correct or have I forgot some things ?
mount system
mkdir /system/sd/data
cd /data/data
cp * /system/sd/data
cd /data
rm -r data
ln -s /system/sd/data /data/data
thanks!
App data on SD causes too much problems and a big decrease in speed. (Galaxy S users have problems because data is on an internal SD card by default)
There's a reason data hasn't been moved to SD by the A2SD script yet.
If you really really really want as much space on /data as possible,
it's better to move an apps lib file to /system and symlink it to the apps data directory.
So at least the file is on the internal NAND.

[Q] Developers help. Need to mount external SD to /sd

if you have adb and superuser (h**p://forum.xda-developers.com/showpost.php?p=7239659&postcount=3 you need to grand permission from the phone when you type su)
Code:
adb shell
su
mount -o bind /sdcard/external_sd /sdcard/sd
this should last until you reboot.
why don't you just remove the app and reinstall? it's way safer, if you don't know about the previous commands.
I will try this thank you very much for your reply!
I tried to install the app again but there is no difference.
It continues to search for the resource files at /sdcard/sd :S
What is the problem via simply simlinking external_sd
to sd? I.e. using ln -s?
sdcard is vfat, so ln doesn't work

[Q] Leedroid Gingerbread A2SD+ complaining about insufficient storage

I recently upgraded my A2SD+ Leedroid 2.2f to 3.0.8.2 (Gingerbread). To do this, I first wiped all data from ClockworkMod and then installed Leedroid's zip. Now, after a few weeks of use and having installed a small fraction of the apps I used to have on 2.2f the device is constantly complaining from insufficient storage. Sometimes it's so bad, it won't even sync!
Quick System Info Pro says I have:
SD storage: 7.09GB (1.33GB free)
A2SD storage: 494MB (259MB free)
Internal storage: 148MB (14.74MB free)
System storage: 250MB (19.70MB free)
System cache: 40.00MB (38.31MB free)
Memory: 405MB (83.35MB free)
I'm almost certain that the problem is related to the low free internal storage. When I uninstall apps, the free internal storage seems to increase. Do apps still store their data in the internal storage? I don't get this. I've never had such problems with Leedroid Froyo, and used to have much more apps installed.
It will be the dalvik cache. You can move the dalvik cache to ext and it will be fine. But you would of been better off with 1GB ext.
Thanks for the quick reply!
1) Any idea where I can find instructions how to do that?
2) Would this require a faster SD card? Mine currently is class 4.
3) Would it require reflashing?
1) Open terminal emulator and type
Code:
a2sd cachesd
Reboot phone and type
Code:
a2sd reinstall
Swyped from Oxygen with Transparent XDA App
Installed "Terminal Emulator" from the market, ran it but it says:
a2sd: not found
I'm running Leedroid 3.0.8.2 with A2SD+ (don't have S-OFF).
(bump)
Any ideas, fellas? It's really annoying having to constantly worry about space and not being able to install new apps
I really hate to spam the thread like this, but please, any suggestions?
Thanks!
connect the device to ur computer using the USB cable.
make sure you're on Charge Only.
also, make sure u have all the drivers that using adb requires.
open the cmd and type
Code:
cd C:\android-sdk-windows\tools
now type:
Code:
adb
Code:
adb shell
now wait for the # to show up.
after it showed up, type:
Code:
df -h | grep data
this will show you how much space of the internal space is taken.
type:
Code:
du -sk /data/data/* | sort -rn | head
and it'll show u your top ten internal-space-taking apps by order.
create a new folder that the dalvik cache of those apps will be moved to by typing:
Code:
mkdir /system/sd/.data
(the name of the folder will be .data)
now move some of those apps and link them to their original place by typing:
Code:
mv /data/data/com.navngo.igo.javaclient /system/sd/.data/com.navngo.igo.javaclient
and then
Code:
ln -s /system/sd/.data/com.navngo.igo.javaclient /data/data/com.navngo.igo.javaclient
.
of course that instead of 'com.navngo.igo.javaclient', you will type the name of the app you're moving.
Thanks, b1gdrag0n! And what about moving the whole /data/data to the sd? Or will this slow down things a lot?

[Q] [CM7] Can't install/update from market after flashing Alpharev partition table

Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Ok, I found the problem.
The problem is that CM7 isn't automatically moving the /cache partition to the /data partition, which it should do since /cache partition is small (5 mb).
Thus, since market uses /cache/download to store downloaded .apk, it cannot store there apks bigger than 5mb.
To fix this I created a symbolic link with a folder inside my SDcard: this folder will act as the new market cache folder.
Here is the list of commands for users encountering my problem:
Code:
adb shell
cd /cache/
rm -R download
mkdir /mnt/sdcard/marketcache
ln -s /mnt/sdcard/marketcache download
chown -h system.cache download
Can someone explain me why CM7 didn't automatically performed this step for me ?
Thanks.
Just wanted to say thank you, because this also worked for me after I somehow screwed up the FAT32 partition on my SD card.
The only way to reconnect with the market was to make a symlink to the cache/download folder as you describe. (In fact, there wasn't a "download" folder at all under my cache partition -- which may have been part of the problem). But it's fixed now. A million thanks.
CM7r2 Hboot, GSM desire, running Mildwild 2.9.5 / Oxygen
I am happy it helped, that is why I posted the solution I had found.
Cheers
ghepardo said:
Hi,
I am running CM7.1.0 on rooted and s-off HTC desire with DarkTremor app2sd scripts.
I just flashed the Alpharev CM7r2 partition table (moving also Davilk to sd-ext through App2SDGUI), but, even if I gained a lot of internal memory space, I am no more able to update/install new apps from Market due to an "insufficient storage available" error.
Can someone help me ? I tried also to wipe all and re-install from scratch CM7, but still getting the same error. It seems to me I cannot download/update apps with download size > of my /cache partition size, which is 5mb.
Many thanks to anyone helping me.
Click to expand...
Click to collapse
There is another code(need sdcard extfs, runing in Android Terminal or under ADB shell in cmd):
Code:
cp -a /cache/download /sd-ext
rm -r /cache/download
ln -s /sd-ext/download /cache/download
reboot

[MOD][Howto] Move folders from internal to external sd card

Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. tested with adam 1.3.2 and perseus alpha1. (alpha0 did not work for me).
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
this works with the mount --bind command, nothing new, similar scripts are documented for the galaxy s3, galaxy tab and also used by the foldermount app. one advantage over the foldermount app is, that this script is launched by init.d very early in the boot process, so no app is started at the time of mounting (not finding the files they expect).
1. you need a kernel with init.d support. adam kernel has it, others may have it too.
2. get a root command promt on your phone, i recommend adb shell, a local terminal emulator will work too.
3. you may need to type "su" in the console to get a root shell
4. create the init directory by typing "mkdir /etc/init.d" and "chmod 777 /etc/init.d"
5. create the file "/etc/init.d/02mountbind" by using your favorite text editor. you may also create it on sdcard first and then copy it over. make sure to do a "chmod 777 /etc/init.d/02mountbind" on it.
6. the content of the script depends on your requirements. also, it does not move any files, you have to do that yourself. I recommend to test with the first mount -o bind test line. then comment in the other two lines after you have moved the files over to your external sdcard.
Code:
#!/system/bin/sh
echo "started mount script" >/data/local/tmp/init.d_log.txt
#start the volume manager
vold
#mount the external sd card, its not there at boot time
mount -t vfat -o umask=0000,uid=1000,gid=1023 /dev/block/vold/179\:9 /storage/extSdCard/ 2>&1 >> /data/local/tmp/init.d_log.txt
#this is a test, you can use it to confirm everything is working before you start to move files. if all is fine, you can write files to the folder "test" on your internal sdcard and see the changes on the external one.
mount -o bind /storage/extSdCard/test/ /data/media/0/test 2>&1 >> /data/local/tmp/init.d_log.txt
#mount the Android directory of the extSdCart to the internal one. Move all files from your internal sdcard to the external one first
#mount -o bind /storage/extSdCard/Android/ /data/media/0/Android 2>&1 >> /data/local/tmp/init.d_log.txt
#also mount the obb directory. its not on the "internal sdcard" but also on your internal storage. it holts the most data of games like gta3, max payne and so on.
#mount -o bind /storage/extSdCard/Android/obb /data/media/obb/ 2>&1 >> /data/local/tmp/init.d_log.txt
echo "done mount script" >> /data/local/tmp/init.d_log.txt
after placing the script and making it chmod 777, try to reboot and see if it works. if not, check the file /data/local/tmp/init.d_log.txt for log informations.
i have some games installed, had a full internal memory and were able to free up 6Gb space on my using this method.
Feedback welcome.
Click to expand...
Click to collapse
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
@palash_6670 Why dont you use the foldermount app from the market
grgsiocl said:
@palash_6670 Why dont you use the foldermount app from the market
Click to expand...
Click to collapse
I use it
It is amazing ^_^
Sent from my GT-I9500 using Tapatalk 4 Beta
palash_6670 said:
can you plz make a app for this coz its very difficult for ameture like Me.Thanks
Click to expand...
Click to collapse
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
greatricky said:
bhai, use FOlderMount (https://play.google.com/store/apps/details?id=com.devasque.fmount) ! awesome application !
Click to expand...
Click to collapse
Yeah Bro Using it Thanks for the suggestion
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Pistolaobr said:
Guys, wouldnt be easier to simply edit the root\etc\vold.fstab and change the montpoints of internal memory and external microsd?
Click to expand...
Click to collapse
i have tried that, there is no mount point for the internal one in vold.fstab. instead i have modified the init.rc config (by repacking the kernel) to mount the external one in place of the internal one and ignore the external moint point, but that caused the camera application to hang (i think it checks for both sdcards). also, my script does not only mount the large Android folder from one sd to the other, it is also able to mount the /data/media/obb folder, which neither on the internal nor on the external sdcard, to the external sdcard. simple mountpointswapping would'nt make this possibe. that obb folder was 3,5GB large for me, containing the most data of my games.
palash_6670 said:
Yeah Bro Using it Thanks for the suggestion
Click to expand...
Click to collapse
How much space did you save doing that?
drziddo said:
How much space did you save doing that?
Click to expand...
Click to collapse
u can put the game file on sd card[OBB,game files] and mount it.it will work like as a Mobile memory. [sorry for the english]
Hi
Is it possible to find a way through CWM Flash ?
azoojeddah said:
Hi
Is it possible to find a way through CWM Flash ?
Click to expand...
Click to collapse
Probably yes, but it woulb be one for each cwm custom rom or for each custom kernel.
xperia z
pls folder mount doesnt work with xperia z any suggestions pls???
johnemone said:
pls folder mount doesnt work with xperia z any suggestions pls???
Click to expand...
Click to collapse
What does it say?
mw86 said:
What does it say?
Click to expand...
Click to collapse
it shows me d green pin but wen I try to start d game it doesn't start
raw235 said:
Here is the script i use to mount folders from my external sd card over folders on the internal one. This makes it possible to transfer the most space consuming files off the internal memory, so you have more space for installing other applications.
this method requires some basic linux skills, if you dont know how to use the linux command line, you better try the foldermount app. as always, use this method on your own risk.
Click to expand...
Click to collapse
Nice work...Keep it up
Click to expand...
Click to collapse
Looks Greattttt.....Keep It Up :good:
is this will work on galaxy s3?

Categories

Resources