I'm trying to remove a dir on an SD card called MOMMA SCRIB.It has a directory Raven that has a ton of nonsense files in it:me@hackerspace-dev-vm /media/me/MOMMA SCRIB/Raven $ lsls: cannot access                   /.: No such file or directoryls: cannot access //.: No such file or directoryls: cannot access                    . /: No such file or directory ???????.???  ????????.???  ????????.???  ????????.???  ????????.???!???????.???  ????????.??!  ????????.???  ????????.???  ????????.???????????.???  ????????.???  ????????.???  ??(?????.???  ????????.???????????.???  ????????.???  ????????.(??  ??? ????.???  ????????.??6????????.???  ????????.???  ????????.???  ???/??/?.???  ????????.?6!????????.???  ????????.???  ????????.???  ????????.???  ????????.6??????????.???  ????????.???  ????????.???  ???????/.???  ????????.?6?????????.???  ????????.??!  ????????.???  ????????.?/?  ?????c??.???????????.???  ????????.???  ????????.???  ???? ???.???  ?????K??.???????????.???  ????????.???  ???????.???   ????????.???When I try to remove the dir:me@hackerspace-dev-vm /media/me/MOMMA SCRIB $ rm -rf Ravenrm: cannot remove Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/|9.^/83361\r\nG.1 x/rW\ny.: Read-only file systemrm: cannot remove Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/|9.^/83361\r\nG.1 x/\022\024}.M: Read-only file systemrm: cannot remove Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/|9.^/83361\r\nG.1 x/yf.: Read-only file systemrm: cannot remove Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/|9.^/83361\r\nG.1 x/pp\a.\ng: Read-only file systemrm: cannot remove Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/|9.^/83361\r\nG.1 x/6P.?x/00 X89.0.9 y/.710 E92.7.6/61.868\r\n.g1: Read-only file system...etc...How can I get rid of this directory?
Remove a dir with files with nonsense file names
rm
The error from rm says Read-only file system. Perhaps the drive is not mounted properly, in which case do mount /dev/sdX -o remount,rw as root.Your drive may have filesystem errors. Copy your files elsewhere, unmount the drive, and run filesystem check. The utility to use for that would depend on the type of filesystem used.