The .trash-1000 folder of by WD USB drive contains a number of damage files and folders. KDE trash fails to remove these. I went into the terminal, under superuser. The rm -r command fails, indicating that directories are not empty. Looking into these folders, somehow the pdf and odt files register as folders. rmdir doesn’t get rid of these files either. I think these files got damaged when a copy to the usb drive was canceled midway through writing. Obviously I can reformat the drive. I’d rather not do that as it contains a lot of back up data. Any help would be appreciated.
On 2014-03-30 00:36, Parthenolide wrote:
> canceled midway through writing. Obviously I can reformat the drive. I’d
> rather not do that as it contains a lot of back up data. Any help would
> be appreciated.
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
Or, if it has a Windows file system, mount the USB drive under Windows and use CHKDSK on it.
There are many options for fsck. Type fsck. and press tab twice.
fsck.<TAB> + <TAB>
For NTFS fs there is also ntfsfix. Type ntfs and press tab twice.
ntfs<TAB> + <TAB>
Those tab completion should show you what is available in your system. Although if you have some important data on that disk and it is indeed a NTFS fs then boot your favorite windows os and fix it from there.
A bit off topic, but you can use the -f option to force the removal of a directory that is not empty. See the rm man page.
But I am not sure if that is clever to do in this situation.