bananalama
New Member
Hi everyone,
I'm trying to delete some nested directories which seem to be recursive to infinity (if that's possible).
The directories were created by a recovery tool in windows and written to a veracrypt container.
If I want to delete them with rm -rf there is only the mount.ntfs process at full cpu load but nothing happens.
I found some suggestions like using find to not follow links and use -depth but this results in
sudo lsof | grep find
find . -depth -type d -exec rm -rf {} \;
find 181731 foo 3r DIR 253,0 0 2128914 /media/veracrypt1/recov/andotherfoldernames/SPUNINST/SPUNINST/SPUNINST
find 181731 foo 4 unknown /proc/181731/fd/4 (readlink: File name too long)
find 181731 foo 6 unknown /proc/181731/fd/6 (readlink: File name too long)
find 181731 foo 7 unknown /proc/181731/fd/7 (readlink: File name too long)
find 181731 foo 9 unknown /proc/181731/fd/9 (readlink: File name too long)
find 181731 foo 10 unknown /proc/181731/fd/10 (readlink: File name too long)
find 181731 foo 11 unknown /proc/181731/fd/11 (readlink: File name too long)
With 7zip:
7z a -t7z test.7z recov/ -sdel
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz (A0653),ASM,AES-NI)
Scanning the drive:
ERROR:
fillin_CFileInfo - internal error - MAX_PATHNAME_LEN
Also no success with rimraf.
Any suggestions on how to remove that junk?
I'm trying to delete some nested directories which seem to be recursive to infinity (if that's possible).
The directories were created by a recovery tool in windows and written to a veracrypt container.
If I want to delete them with rm -rf there is only the mount.ntfs process at full cpu load but nothing happens.
I found some suggestions like using find to not follow links and use -depth but this results in
sudo lsof | grep find
find . -depth -type d -exec rm -rf {} \;
find 181731 foo 3r DIR 253,0 0 2128914 /media/veracrypt1/recov/andotherfoldernames/SPUNINST/SPUNINST/SPUNINST
find 181731 foo 4 unknown /proc/181731/fd/4 (readlink: File name too long)
find 181731 foo 6 unknown /proc/181731/fd/6 (readlink: File name too long)
find 181731 foo 7 unknown /proc/181731/fd/7 (readlink: File name too long)
find 181731 foo 9 unknown /proc/181731/fd/9 (readlink: File name too long)
find 181731 foo 10 unknown /proc/181731/fd/10 (readlink: File name too long)
find 181731 foo 11 unknown /proc/181731/fd/11 (readlink: File name too long)
With 7zip:
7z a -t7z test.7z recov/ -sdel
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz (A0653),ASM,AES-NI)
Scanning the drive:
ERROR:
fillin_CFileInfo - internal error - MAX_PATHNAME_LEN
Also no success with rimraf.
Any suggestions on how to remove that junk?