Re: Pendrive corrupted filesystem
According to Rodolfo Medina,
> When I try to remove a certain directory from my pendrive,
> the following error message appears:
> $ rm -vr to-be-removed
> rm: WARNING: Circular directory structure.
> This almost certainly means that you have a corrupted file system.
> NOTIFY YOUR SYSTEM MANAGER.
> The following directory is part of the cycle:
> . Do I have to throw it away, or is there a way to repair it?
You can try formatting it, e.g. mkfs.vfat /dev/mypendrive
A side note/tip: It can be good to mount these types of
drives with -o sync. I've pulled out my usb flash drive by
mistake before it was really done because without option
sync cp and mv would return as soon as the operation was