[Q] teamhacksung's ICS can't delete symlink /datadata->/data/data - Galaxy S I9000 Q&A, Help & Troubleshooting

From beta3 I can't delete symlink. It's important for me because I actually using phone instead of flashing.
I tried->
1.root explorer
-> delete /data/data
-> copy /datadata ->/data
-> change name to /data/data
No effect, after reboot symlink restore
2. Same thing but with terminal
3. serch fstab, init, for script that making ln -s
4. delte from xbin ln program
nothing made any effect. Symlink always back after reboot.

I found at /sbin script setupdata....
But I can't delete/change it, every reboot it's restoring itself.

Sorry, I don't have an answer for you, but I really need this too. I didn't even install that many apps and everything is FC'ing because datadata is full. It seems it's not just app data as well, because I was browsing the folder with root explorer, and every time I clicked on a folder (within datadata), the available space went down some more. On CM7 my phone was fast enough without the symlink, so an option to remove it would be nice.

Related

Nothing in system/sd

I have OI file manager and I go into the system/sd folder and i dont see anything. But when i install a new app, i do notice that my ex3 partition available space changes. So it seems that the apps are installing on the ex3, but why dont i see anything in the system/sd folder?
Also, how can i copy files from my sd onto my system/sd folder? Do I have to adb it?
Thanks guys.
I know this is one of my first posts but I have been lurking these forums for a loooong time.
You will not see anything in system/sd unless you have root access. You can either use SU File Browser if you want a GUI for browsing, or just open the terminal and enter
$ su
# cd /system/sd
# ls
I try not to go into detail on anything that can be used for warez, so let me just state that you can either use SU File Browser, or the terminal (with root access) to copy to system/sd. Remember to mount /system as read-write.
snyper2k2 said:
I have OI file manager and I go into the system/sd folder and i dont see anything. But when i install a new app, i do notice that my ex3 partition available space changes. So it seems that the apps are installing on the ex3, but why dont i see anything in the system/sd folder?
Also, how can i copy files from my sd onto my system/sd folder? Do I have to adb it?
Thanks guys.
I know this is one of my first posts but I have been lurking these forums for a loooong time.
Click to expand...
Click to collapse
Get a file manager with root access.
SU File Browser & Terminal
http://forum.xda-developers.com/showthread.php?p=4126161
I really like this one.
Will get that, thanks guys. Appreciate the help.

how do you delete system applications

im having a problem figuring it out?
hey
you can either find the system.apk you want and adb it out
or recompile the update.zip file and remove the apks you dont want
tho word of warning messing around with system apks can cause some system instabilites
or rm -r /system/app/nameofapp.apk
or you can...
purchase the SUFBS, a rooted browser, from the market.
You can set /system and /data to rewritable with the push of a button and just delete them through the file browser or use the builtin terminal to do it as described above.

[Q] Can't delete stock apps-"read only" files???

I rooted so I could delete the stock apps and free up some internal memory so my phone would work properly. I have tried everything including root explorer, and titanium backup and haven't been able to delete the apps. The closest I got was with titanium backup, but when I went to uninstall it said the file is "read only". How do I get around this?
If you are root explorer there should be a button on top thats will let you mount it R/W. Or using command from computer do
Code:
adb remount
adb shell
cd /system/data
ls
Then you will get a list of all the apps. Find the ones you want to remove and type
Code:
rm xxxxxxxx.apk
Linux is case sensitive so type exactly as you see it.
There might also be xxxxxxx.odex file which you would want to delete also

[FIX] Download large Apps from Android Market on CM7

Info: This has been fixed in Nightly #15. If you still want to move your cache, you may do it, but it is not necessary anymore!!
Hey folks,
as many of you might have expierienced with the CM7 nightlies, large apps won't download from the android market.
This due to the /cache/ partition, where the download files are stored in /cache/download/, being too small to acommodate for large apk files cached by the market.
So I searched around the net how to move this cache to another directory.
This is what I've come up with:
ATTENTION: I do not take any responsibility for any problems you may encounter with using this fix. It has worked fine for me, and it probably will for you as well.
This fix comes at a (little) prize: It moves the market cache to the internal SD card, so when you unmount the internal storage when you turn USB Mass storage on, market downloads will probably fail.
You probably have to be rooted for this, but since you are on CM7, you already should be
Code:
adb shell
# cd /cache/
# rm -R download
# mkdir /mnt/emmc/marketcache
# ln -s /mnt/emmc/marketcache download
# chown -h system.cache download
Code explanation:
Code:
adb shell
This one should be obvious, if you don't know what it does, you probably shouldn't do this
Code:
cd /cache/
Navigate to /cache partition
Code:
rm -R download
Remove /download recursively (meaning DELETE F***ing everything in there )
Code:
mkdir /mnt/emmc/marketcache
Create a directory named marketcache in the root directory of the internal SD card. Theoretically, you can choose whichever directory you'd like, but I don't know how the symlink would handle different file systems for example if your external SDCard is FAT32. And since the internal SD card became somewhat unused in CM7, I found it to be a good spot for this cache folder.
Code:
ln -s /mnt/emmc/marketcache download
Create a symbolic link named download to the directory you just created (remember to change the directory if you chose another one). This is somewhat anologous to a shortcut in Windows, where the OS treats the shortcut as a folder, while it actually just redirects everything to another location.
Code:
chown -h system.cache download
I don't know if this is necessary, but the original download folder has these permissions. It worked for me with, and without these permissions, maybe someone more expierienced could comment on whether you should set the permissions for the symlink and/or the destination folder.
To sum it up, what we did was delete the original download cache folder for the market and create a shortcut to the internal SDcard. From now on, the market will store the cached apks there instead of the cache partition.
After applying these changes, I was successfully able to download Cordy and MegaJump from the market, which I couldn't do before.
Hit the Thanks button if it helped you
Cheers
aMpeX
aMpeX said:
Hey folks,
as many of you might have expierienced with the CM7 nightlies, large apps won't download from the android market.
This due to the /cache/ partition, where the download files are stored in /cache/download/, being too small to acommodate for large apk files cached by the market.
So I searched around the net how to move this cache to another directory.
This is what I've come up with:
ATTENTION: I do not take any responsibility for any problems you may encounter with using this fix. It has worked fine for me, and it probably will for you as well.
You probably have to be rooted for this, but since you are on CM7, you already should be
Code:
adb shell
# cd /cache/
# rm -R download
# mkdir /mnt/emmc/marketcache
# ln -s /mnt/emmc/marketcache download
# chown -h system.cache download
Code explanation:
Code:
adb shell
This one should be obvious, if you don't know what it does, you probably shouldn't do this
Code:
cd /cache/
Navigate to /cache partition
Code:
rm -R download
Remove /download recursively (meaning DELETE F***ing everything in there )
Code:
mkdir /mnt/emmc/marketcache
Create a directory named marketcache in the root directory of the internal SD card. Theoretically, you can choose whichever directory you'd like, but I don't know how the symlink would handle different file systems for example if your external SDCard is FAT32. And since the internal SD card became somewhat unused in CM7, I found it to be a good spot for this cache folder.
Code:
ln -s /mnt/emmc/marketcache download
Create a symbolic link named download to the directory you just created (remember to change the directory if you chose another one). This is somewhat anologous to a shortcut in Windows, where the OS treats the shortcut as a folder, while it actually just redirects everything to another location.
Code:
chown -h system.cache download
I don't know if this is necessary, but the original download folder has these permissions. It worked for me with, and without these permissions, maybe someone more expierienced could comment on whether you should set the permissions for the symlink and/or the destination folder.
To sum it up, what we did was delete the original download cache folder for the market and create a shortcut to the internal SDcard. From now on, the market will store the cached apks there instead of the cache partition.
After applying these changes, I was successfully able to download Cordy and MegaJump from the market, which I couldn't do before.
Hit the Thanks button if it helped you
Cheers
aMpeX
Click to expand...
Click to collapse
Thanks dude
Really nice fix and easy to understand.
-- Kiljacken
An interesting solution.
However, as I understand it, CM7 on the 2X has this issue because the Dalvik Cache is in the /cache/ partition, thus using up a large portion of the available space. There is a fix in the CM7 thread called fix_cache.zip that moves Dalvik-Cache to /data/
This has the added advantage of the download cache being located on a faster NAND chip (I think). Not that it'd make much difference for Market downloads. It also means that Market downloads will work with USB Storage turned on.
I'd link to it, but I'm in bed and cbf getting out and to my PC
Kudos for the original solution though; I've been wondering how to put /emmc/ to better use!
Sent from my Optimus 2X using XDA App
kiljacken said:
Thanks dude
Really nice fix and easy to understand.
-- Kiljacken
Click to expand...
Click to collapse
You're welcome, but you shouldn't full quote posts like that ;o)
Also, does this fix persist after a reboot?
Sent from my Optimus 2X using XDA App
unfnknblvbl said:
An interesting solution.
However, as I understand it, CM7 on the 2X has this issue because the Dalvik Cache is in the /cache/ partition, thus using up a large portion of the available space. There is a fix in the CM7 thread called fix_cache.zip that moves Dalvik-Cache to /data/
This has the added advantage of the download cache being located on a faster NAND chip (I think). Not that it'd make much difference for Market downloads. It also means that Market downloads will work with USB Storage turned on.
I'd link to it, but I'm in bed and cbf getting out and to my PC
Kudos for the original solution though; I've been wondering how to put /emmc/ to better use!
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
Since the dalvik cache is the cache for all the app-related stuff, I opted for moving the download cache, because you don't care about file access/read speeds when downloading apps from the market.
The solution you mentioned basically does the same as mine, moving the dalvik cache instead of the market cache.
The issue with USB storage turned on is legit however. Downloading from the market while having USB storage turned on will likely fail. I'll update the first post.
unfnknblvbl said:
Also, does this fix persist after a reboot?
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
I cannot comment on that yet, probably I will when I have to reboot next time
aMpeX said:
You're welcome, but you shouldn't full quote posts like that ;o)
Click to expand...
Click to collapse
Full quoting is funny xD
It increases the amount of people who actually reads the post
Nice work, is it already merged? http://goo.gl/Zd9f6
The commit from your link makes this guide obsolete I guess. I'll keep going with this until it is merged into the nightlies (13 doesn't have it yet)
aMpeX said:
The commit from your link makes this guide obsolete I guess. I'll keep going with this until it is merged into the nightlies (13 doesn't have it yet)
Click to expand...
Click to collapse
Still u deserve a pat on your back. Good job!
temasek said:
Still u deserve a pat on your back. Good job!
Click to expand...
Click to collapse
I hoped it would've holded out a bit longer Thanks for the pat
How does Android responds to startups scripts. This should be in a startups script somewhere...
this workaround is permanent and withstands a reboot, so you only have to apply it once. As it says in the first post you are basically creating a shortcut to another partition.
The Fix from rmcc to the cyanogen source redirects the dalvik cache to /data/ instead of cache by a command line in build.prop, making room for the temporary downloads.
aMpeX said:
this workaround is permanent and withstands a reboot, so you only have to apply it once. As it says in the first post you are basically creating a shortcut to another partition.
The Fix from rmcc to the cyanogen source redirects the dalvik cache to /data/ instead of cache by a command line in build.prop, making room for the temporary downloads.
Click to expand...
Click to collapse
Ok, that's nice... 1 time change....
I was wondering...
Could it be something like the following:
(updater-script)
Code:
ui_print("Symlinking /cache to /mnt/emmc/cache");
run_program("/sbin/busybox", "mount" "/system");
run_program("/sbin/busybox", "rm -R", "/cache/download");
run_program("/sbin/busybox", "mkdir", "/mnt/emmc/marketcache");
run_program("/sbin/busybox", "ln -s", "/mnt/emmc/marketcache", "/cache/download");
unmount("/system");
Just a thought.
should work as well. But the issue will be fixed in the next nightly. So this fix would remain for other devices with that problem.
Ok, then we wait some hours
Chown notes
This is pretty useful information. I used AlphaRev and flashed the Bravo CM7 partition, and the small /cache means I can't download any large apps.
There's one extra thing to note:
Chown Note
In the event that you are getting "chown: unknown user/group system:system" please try 1000.1000 as this has been reported to work on several of the samfirmware-released roms that fail with this message.​credit:max_warheads
http://forum.xda-developers.com/showpost.php?p=7390510&postcount=1
As of right now, it looks to me that my Desire+CM6 doesn't actually use /cache/download for market downloads, but rather just /cache.
Oh, that might also be related to me using market_black_emerald_2.3.4
http://forum.xda-developers.com/showthread.php?t=877510
Unclear if I can use this same symlink method in such a case.
Perhaps I can use something like this
http://blog.endpoint.com/2009/09/using-ln-sf-to-replace-symlink-to.html
to replace the current /cache with the new symlink. I'm hesitant, since /cache is it's own partition, right?
Symlink /cache FAIL
I tried to symlink /cache according to this
http://www.infoparlor.com/android/h...o-protected-apps-install-when-using-custommtd
1. Mount the root file system writable:
Code:
mount -oremount,rw rootfs /
2. Unmount the existing /cache mount
Code:
umount /cache
3. Remove the existing /cache folder
Code:
rmdir /cache
4. Create the new link
Code:
ln -s /sdcard/cache cache
Click to expand...
Click to collapse
That author was trying to fix Protected Apps, whereas I'm just trying to fix downloading large Apps, but seems that the process should be the same.
Except, each time I reboot recovery, the /cache keeps coming back just like it was.
This thread gives essentially the same instructions as are listed in the OP
http://miuiandroid.com/forums/showt...e-to-install-large-apps-like-MAPS-from-market.

[Q] Apply Market Fix

OK. Pardon Adndroid Noooobness.
I have the device incompatible Android Market problem with NC.
Running CM7
I found two fixes.
1. Set DPI to 160
2. Edit Build.prop to make nook present itself as smamsung *something S*
I downloaded ROM Toolbox and after going through what I think is EVERY icon and setting I cannot find where or how to change the DPI setting.
I have modified the build.prop file using ES File Explorer but cannot get the file to copy back from the sdcard to the system folder. Protected or in use probably. Tried booting to CW to copy but dont know how to do that either.
How can I get actully appy either of these. I have searched but cannot find this answer.
Thanks
How about just reverting to the old market, clearing the market data/cache and uninstalling the market updater app?
did not seem to help for me
Did that as well and that did not work. As soon as I connected to the Market it closed and updated. This was after removing the updater and clearing the cache.
On another note, does anyone have the BN reader.apk and the Kindle.apk. Hope I have that terminology right, and the instructions for installing apk files. Sure I can find those instructions.
Thanks
To edit the file in /system, start up Terminal, become root by typing "su" and remount the /system partition by typing "mount -o rw,remount /system". Then you can edit all you like. When you're done type "mount -o ro,remount /system" or just reboot.
aegrotatio said:
To edit the file in /system, start up Terminal, become root by typing "su" and remount the /system partition by typing "mount -o rw,remount /system". Then you can edit all you like. When you're done type "mount -o ro,remount /system" or just reboot.
Click to expand...
Click to collapse
I have CM7 on an SD card and tried this command. I get the following:
mount: not found
Any suggestions?
I tried this command and I am not sure I am putting it in right. I do not a space "remount/system" and a bunch of commands come up. I do use a space and nothing. Either way, I am unable to edit or copy a new file in. Copy failed or cannot save file.
Do I have to copy from within the Terminal window? After running this command I go into ES file explorer to edit or copy with no luck.
<Set DPI to 160>
There is an app called LCDDensity which allows you to alter the DPI on the nook. If the market allows you to download it, or you are able to sideload it, you might try that.
What happens for me is my market will stop working, then I use LCDDensity to set the DPI to 160 or 240, and reboot. Then the market works, but only for a day or two, and then things seem to reset. (I have tried freezing and renaming the market app, and market updater app, but it doesn't seem to have any effect. Then again I'm new to these things myself, and could be missing something silly.)
It isn't an ideal solution, but it seems fine unti a more permanent fix comes along.

Categories

Resources