Sample Header Ad - 728x90

Is there any way to delete this garbled folder on a Android device?

0 votes
1 answer
205 views
*******************The main content of the question** A few months ago, I accidentally disconnected the device during the execution of the adb push instruction and left a folder with more than 30 GB of garbled characters, which contained many garbled files, This caused a lot of waste of storage space. The file management programs on Android (such as RootExplorer, Estrongs, etc.) cannot delete the garbled folder I have tried many ways in many attempts, such as deleting files in adb-shell environment, various methods found on google, and even the busybox terminal program on Android devices, none of them work. The current situation is that I can use the cd command to enter the folder, the rm command with the file name parameter will report an error, the rm command with the inum parameter will not report an error, but the rm command parameter with the inum parameter is invalid after the execution (in the output of the ls command Neither the content nor the Android space status has changed) The sample command prompt (adb) code snippet is as follows
C:\Users\14520>adb shell
c2q:/ $ cd /sdcard/shit
130|c2q:/sdcard/shit $ cd $(find -inum 11939)
c2q:/sdcard/shit/闊 $ ls -il
total 3009874
36369 drwxrwx--- 3 root everybody       3488 2021-09-07 23:27 2001-00-鐣欎綇杩欎竴鍒荤郴鍒?-5[瀛旈泙寤婃繁椋為摱鑺増][WAV]
34351 drwxrwx--- 3 root everybody       3488 2021-09-07 23:29 2001-00-鐣欎綇杩欎竴鍒荤郴鍒?-10[瀛旈泙寤婃繁椋為摱鑺増][WAV]
#...
c2q:/sdcard/shit/闊 $ find -inum 3488 -exec rm -rf {} \;
c2q:/sdcard/shit/闊 $ ls -il
total 3009874
11946 -rw-rw---- 1 root everybody     253384 2020-05-21 20:04 mgsvtpp.[v4.0.6].zip
39450 drwxrwx--- 8 root everybody       3488 2021-09-07 23:36 銆傚師澹板甫
35775 -rw-rw---- 1 root everybody       1089 2020-04-20 21:30 鏃犲嵃鑹搧.lnk
35826 -rw-rw---- 1 root everybody 2277719590 2019-03-11 12:06 缇ゆ槦.-.鎽囨粴涓浗涔愬娍鍔沒.婕斿敱浼?(DVDRip)_9522f.mkv
#...
c2q:/sdcard/shit/闊 $</code></pre>
[Full screenshot of this code snippet
Explanation: The folder with an inum of 11939 is the top level of the garbled folder

Resetting the phone is a bad idea because it costs too much, I don’t want to do it now.

Is there any other way here? If anyone can help me solve this problem(Delete garbled folders without losing other data), I can buy him a(large-large) cup of coffee.

Thanks all the friends here.(My English skills might not be very good, If there are some grammatical problems, forgive me please)

*******************Supplement to what I forgot to say**

·I tried "rm with FOLDER_PATH" and "RM with FOLDER_INODE_NUMBER", after running it will return "not found" and no effect (I discovered this before asking the question, but I forgot to add it to the sample code snippet)
# sample example for the Two usages of command “rm” I used refered above
# rm with folder_name
rm -rR NAME
# rm with inode_number, 11939 is inode_number
cd $(find -inum   )
find -inum 11939 -exec rm -rf {} \;
·All the Android application I knowned cannot delete the garbled folder without root ·The garbled folder is in the internal storage instead of the external storage. ·The model of this device is Samsung Note20 Ultra 12+512G, rooting will cause the loss of data and several functions. The reason I never want to format the partition is that there are too many 504G files to be backed up. *******************Approximate provisional conclusion** The current situation and imformation proves that: to delete garbled folders without root permissions, It is not feasible to use the "rm" console command (either pointing to path or inode-number'). I can only backup and format the entire partition(contains 504G files). I want to ask a question to see if there is any way to delete the garbled folder without losing other data, but it seems that there is no such way. By the way, I have paid less attention to stackoverflow these days and did not reply to your message in time. Sorry. Alas, if there is no other way, I can only format the entire partition (containing 504G files) another day. All in all, thanks to everyone who tried to help me.
Asked by Xinge (1 rep)
Nov 14, 2021, 12:38 PM
Last activity: Nov 16, 2021, 09:33 PM