Re: Pendrive corrupted filesystem



According to Rodolfo Medina,
Hi.

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:
`to-be-removed/News/to-be-removed/News'

. Do I have to throw it away, or is there a way to repair it?
Thanks,
Rodolfo

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
queued.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Pendrive corrupted filesystem
    ... rm: WARNING: Circular directory structure. ... This almost certainly means that you have a corrupted file system. ... Harcourt Fenton Mudd, Star Trek:TOS, "I, Mudd" ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Pendrive corrupted filesystem
    ... rm: WARNING: Circular directory structure. ... This almost certainly means that you have a corrupted file system. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Pendrive corrupted filesystem
    ... rm: WARNING: Circular directory structure. ... This almost certainly means that you have a corrupted file system. ... If 1/2 of all US marriages end in divorce, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Pendrive corrupted filesystem
    ... rm: WARNING: Circular directory structure. ... This almost certainly means that you have a corrupted file system. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: rsync 10 times slower in Etch than in Sarge!
    ... Can anybody please explain this strange phenomena? ... I put the `sync' option just to avoid drive corruption. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)