Other Unable to delete file on NTFS disk

I have a zero length file on an NTFS disk which I am unable to delete

$RECYCLE.BIN/S-1-5-21-1708338021-2842998701-1705813283-1000/$RKQB0LM

rm: $RKQB0LM: Input/output error

Is there anything I can do to remove it?
 
Hi

I don't know what console you are using but if it is csh the default FreeBSD console $ is a special character that refers to variables.

Have you tried to delete the path by quoting it?

rm -rf '$(file/dir)'
 
For toolkit you would be better off with an BartPE or Win8PE-SE than anything FreeBSD.
Recycle Bin has special significance on NTFS.
 
Hi

I don't know what console you are using but if it is csh the default FreeBSD console $ is a special character that refers to variables.

Have you tried to delete the path by quoting it?

rm -rf '$(file/dir)'
root@X1:/mnt/tmp/blob/S-1-5-21-1708338021-2842998701-1705813283-1000# ls -al
ls: $RKQB0LM: Input/output error


I guess I'll connect the disk to a Windows system and see what Windows can do with the file.
 
Copy over all good stuff and quarantine.
Then DD zero the whole device. Re-Partition and format.
Consider other filesystems.
 
Copy over all good stuff and quarantine.
Then DD zero the whole device. Re-Partition and format.
Consider other filesystems.
I spent the last few days copying all the files off this disk to various systems. This was the remaining file.

Incidentally it didn't show up under Windows, so not sure if it was a hidden file.

I'm intending to use this disk as a multiboot Ventoy disk.
 
On Windows, I just went into 'My PC' and it shows My Passport (D)
457GB free of 931GB.

When I click on the icon, it says this folder is empty !!!!!!!!!!!!!!

Just wondering what has happened to half of the capacity....
 
Did you try the escape slash before the symbol? \$
On Windows, open Disk Management, you may have hidden partitions, empty space, or just hidden system files:
File Explorer / click View (...) / Options / Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives, and uncheck the box labeled Hide protected operating system files.
 
Are you sure your USB stick is not damaged? What messages do you get from the kernel when you plug in? Or the dmesg output?

You get some errors when you try to be it or write it with dd?

P.S: As the user said Phishfry have looked at the possibility of choosing another file system.
Or using other means for data transfer such as the network?
 
Are you sure your USB stick is not damaged? What messages do you get from the kernel when you plug in? Or the dmesg output?

You get some errors when you try to be it or write it with dd?

P.S: As the user said Phishfry have looked at the possibility of choosing another file system.
Or using other means for data transfer such as the network?
It's actually a 1 GB external disk and has been reformatted. There was only a single file I couldn't delete, but I guess it might still be worth checking, although not sure what to check it with...
 
You were getting IO errors. So all the theories about quoting $ signs or viruses are unlikely to be the culprit. I see two possibilities: Either an actual hardware IO error, which would have to be a sector that holds the metadata for that object to be deleted. That should be diagnosable by looking at dmesg. Or an implementation error in FreeBSD's NTFS emulation, which is (wrongly) reported as EIO. That implementation error could be triggered by a file system object that really is not deletable, such as a locked or invisible file, reparse point, junction point, and various others that have no direct equivalent in Unix file systems.

You say it is a "1 GB external disk". Does such a thing still exist? The last time I worked with 1 gig disks must have been around 1998, the ill-fated Jaz drive (with removable cartridges).
 
Back
Top