Undeletable files - Galaxy S III Q&A, Help & Troubleshooting

In the process of restoring some backups I ended up with a couple clockwork mod backup folders in the top of the /mnt/sdcard or /sdcard folder. These files store on the internal sdcard (not the removable micro sdcard) are effectively Undeletable. I have checked permissions and tried to remove them via astro and root explorer and when mounted on desktop and via adb shell commands (rm ...). Other files in the folder are removable but these backups refuse to budge.
Have restored to stock. Have restored via cwm. Absolutely refuse to shift and they are not small.
Any advice on ridding my s3 of these files would be welcome.

You checked files's permissions, but what was exactly the chmod applied ? Do you hack checked the owner ?
If these are folders, did you use the correct option of rm ( rm -f ) ?
As they're CWM backup files, you could use ROM Manger to get rid of them as well.

Use "rom janitor" from market to delete cwm backup files

Related

[Q] is there a way to link messages/contacts to sdcard?

edit: take note, I am not asking on how to backup.
Having 17 thousand messages, don't want to delete any, of them.
I want messages on my inbox but memory consumed is on sdcard.
On The End 4.0 rom
tried
su
mount -o bind /data/data/com.android.providers.telephony /sdcard/data/sms
I think it's not working.
Any help there experts?
If you want to have a backup then use some SMS backup apps. Else, Titanium FTW.
Btw, what you're trying to do is just mounting. You can mount only images or partition storage in linux. Not a DIRECTORY.
Android uses SQLite database to store anything. If you want to have just a backup and you're sure about location of directory. Just pull with ADB, next time when you flash a ROM, you can use `adb remount` and push those database in same location to restore.
Rushyang said:
If you want to have a backup then use some SMS backup apps. Else, Titanium FTW.
Btw, what you're trying to do is just mounting. You can mount only images or partition storage in linux. Not a DIRECTORY.
Android uses SQLite database to store anything. If you want to have just a backup and you're sure about location of directory. Just pull with ADB, next time when you flash a ROM, you can use `adb remount` and push those database in same location to restore.
Click to expand...
Click to collapse
Hello, thank you for replying.
I am very well aware on how to backup. What Im asking is to link, having them on my inbox but memory consumed is sdcard instead of internal memory.
On sgs2, I was able to directory bind (by mounting) on gameloft games by mounting from internal memory to external memory.. I just forgot which commands I used.
Oh well, In that case I understood totally different what you were seeking for. Pardon me.
What you're seeking is "Attaching the filesystems" between directories through mount bind. (But there is not -o in modifiers there for creating such).
First backup your /data/data/com.android.providers.telephony safe place, which you won't be touching until Mount Bind process is successfully achieved.
Please consider I'm not responsible if you loose your 17k sms. Install SMS backup etc. But If you carefully follow these steps, I'm pretty sure nothing is serious.
Now,
1) Make directory in your SDCard, say
/sdcard/data/drigz08.telephony.original.source
2) Use app like root explorer to mount or just fire `adb remount` command if you've set up adb in your PC.
3) Move contents of /data/data/com.android.providers.telephony to /sdcard/data/drigz08.telephony.original.source
So now, all of your telephony directories data are moved. Now here comes the best part...
4) Bind those directories...
mount --bind /sdcard/data/drigz08.telephony.original.source /data/data/com.android.providers.telephony
Click to expand...
Click to collapse
step 4 will bind those directories in a way that from any path same contents are accessible, but new data will be store in sdcard only.
5) In case you want to change the path of source, or unbind directory..
mount -o remount,ro /data/data/com.android.providers.telephony
Click to expand...
Click to collapse
Let me know how it goes.
PS: I tested all of above under standard linux environment. Working fine.
did not work
drigz08 said:
did not work
Click to expand...
Click to collapse
Mount bind on new directory doesn't work or still mounted on com.android.....

[Q] No R/W on SDCARD

Hey guys,
I had Dark Paranoid 2.3 with MemSwapMod on my SGS3, everything was fine. Today there was an update and i decided to do a full wipe.
So I deleted the mod, copied my files, wiped, flashed Dark Paranoid 2.5, installed the MemSwapMod and wanted to copy my files (from windows to phone). But i cant copy, evertime I got errors. then I checked permissions on sdcard0 (cause now my external SD is my internale and vice versa) and seen that they are d---rwxr-x instead of drwxrwxrwx and belongs to system:sdcard_rw. changing ownership in Terminal gives me a "operation not permitted" (IM ROOT?!?!?!?!) and changing permissions with chmod gives my no errors, but even no changes of the permissions.
any help, gues or whatever????
cheers
Nik
z0mg.jer1Cho said:
But i cant copy, evertime I got errors. then I checked permissions on sdcard0 (cause now my external SD is my internale and vice versa) and seen that they are d---rwxr-x instead of drwxrwxrwx and belongs to system:sdcard_rw. changing ownership in Terminal gives me a "operation not permitted" (IM ROOT?!?!?!?!) and changing permissions with chmod gives my no errors, but even no changes of the permissions.
any help, gues or whatever????
cheers
Nik
Click to expand...
Click to collapse
Try change it with adb shell and use adb remount to have writable phone access (need one insecure kernel or adbd insecure (by Chainfire)).
If it doesn't work, flash a stock rom and look what happened. If you can write data, your filesystem (ext4) may be broken.
Tried mount -o remount /storage/sdcard1 (flashed ROM without Mod), no succes.
Now My External is my External again, I can copy files via windows, but not on the phone itself.
Copy Files via FTP to SDCard (SolidExplorer) is working fine, too.

[Q] invisible/hidden sd cards after "platform.xml" file mod

Hi all, I've got brand new Samsung Galaxy S5 mini (SM-G800F), which I rooted already. Also used an app to fix permissions to ext SD card (I've got Android Kitkat). Everything was fine but I didn't have full access to ext SD card. Found online that I need to make one more change in "platform.xml" file. Using ADB I pulled file and after modification changed permissions, had read-only message, to push file back on place (used command below to get permission).
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
chmod 755 /system/app
What happened after these operations:
1) I lost access to all cards (internal and external) through mobile phone. SD cards are "invisible", pictures in gallery disappeared and when I use camera to take a new one it shows file is saved and then pic disappears. Used ADB to find out what's on card and directory /sdcard/dcim/camera has all pics I had before but newly taken are not saved.
2) I've got pop up messages saying "Unfortunately, (name of app) has stopped." Once I press OK, after few seconds new message pops up for another app. Many apps don't work but not all of them.
3) Kies can't connect with my phone. Can't find the device.
4) When phone is connected to PC I can access it but there is no files (empty folder). Files can be accessed with ADB only.
What I've done trying to solve the problem:
1) Restored original copy of "platform.xml". Didn't help so I...
2) Downloaded copy of my sys (G800FXXU1ANL1) from samsung-update website.
3) Unrooted, but all above didn't help so I...
4) Rooted again, installed TWRP recovery and installed sys again. It didn't help so...
I'm here to ask for your help How to restore sys or what should I do to get it back to normal?
Gemini

Titanium backup not see backups copied from sdcard

Hi.
I have installed busybox, have root and install titanium backup. I do backup of for example 2 apps.
But next I move files (all backupped) from directory 0/TitaniumBackup (phone memory) to sdcard. (And remove files from phone)
And after I move back files to directory 0/TitaniumBackup
titaniumbackup don't see backupped apps.
I do this this way because titaniumbackup does not have write permissions in sdcard.
Program see backups until I move it or delete, and when I move back don't see anything.
And... although it is less important... why when I choose directory of backups, program don't have write permissions on sdcard? And I must copy all to phone's memory
https://youtu.be/gDbOb6vrjH0

Android 10 backup from TWRP terminal

Hi all,
I'm tinkering with my OnePlus 6 and trying to backup so I can restore after I soft-brick it by removing bloatware.
I'm using OxygenOS 10.3.2 and seems that TWRP doesn't backup/restore as it should, it always bricks my phone whenever I restore /system or /data.
I'm trying to save and restore data via terminal at the moment, I mounted /system and I see I have access to dd.
Is it possible to just copy everything from /system and /data to /sdcard, move it to my pc, and whenever I brick the phone, just stock install OxygenOS 10.3.2 then TWRP and restore via terminal?
Anyone done this?
I presume the risk is low if I'm only touching /system and /data?
edit:
Managed to backup /system with DD but I don't know how to backup /data, as /data is the same device as /sdcard, and it would create a file equal to the whole partition size. I would not be able to store it on the same partition since /sdcard is basically a subfolder of /data.
Any way of backing up /data? on the same partition?
I would have tried with rsync then zip the whole thing and extract it on my pc. I know rsync keeps the file/folder permissions intact. But rsync is not available in TWRP recovery.
I tried to make a tar archive while inside /data, excluding the media folder, like this:
Code:
tar -pzcvf data.tar.gz --exclude=media *
The -p option should preserve SELinux attributes. I then copy data.tar.gz to /sdcard and pull it on my PC.
But, when I move it back, delete everything in /data except media folder, then unpack the archive and reboot, it goes into recovery.
I don't understand why wiping all files then putting them back from the archive breaks the system. What am I missing?
edit:
Apparently /data backup and restore work from TWRP modified by Mauronofrio, only the /system backup/restore is broken, but that can be done with DD from TWRP.
So my issues are solved at the moment.
mad_rock said:
I tried to make a tar archive while inside /data, excluding the media folder, like this:
Code:
tar -pzcvf data.tar.gz --exclude=media *
The -p option should preserve SELinux attributes. I then copy data.tar.gz to /sdcard and pull it on my PC.
But, when I move it back, delete everything in /data except media folder, then unpack the archive and reboot, it goes into recovery.
I don't understand why wiping all files then putting them back from the archive breaks the system. What am I missing?
edit:
Apparently /data backup and restore work from TWRP modified by Mauronofrio, only the /system backup/restore is broken, but that can be done with DD from TWRP.
So my issues are solved at the moment.
Click to expand...
Click to collapse
I'm not sure if -p is sufficient to also backup the selinux rights.
Have you tried the tar option --selinux ?
From the man1 page:
Code:
--selinux
Enable SELinux context support.

Categories

Resources