删除包含无意义文件名的文件的目录

删除包含无意义文件名的文件的目录

我正在尝试删除 SD 卡上名为 的目录MOMMA SCRIB

它有一个目录Raven,里面有大量无意义的文件:

me@hackerspace-dev-vm /media/me/MOMMA SCRIB/Raven $ ls
ls: cannot access 
                  



/.: No such file or directory
ls: cannot access 

//.: No such file or directory
ls: cannot access 
                   




.
 /: No such file or directory
 ???????.???  ????????.???  ????????.???  ????????.???  ????????.???
!???????.???  ????????.??!  ????????.???  ????????.???  ????????.???
????????.???  ????????.???  ????????.???  ??(?????.???  ????????.???
????????.???  ????????.???  ????????.(??  ??? ????.???  ????????.??6
????????.???  ????????.???  ????????.???  ???/??/?.???  ????????.?6!
????????.???  ????????.???  ????????.???  ????????.???  ????????.6??
????????.???  ????????.???  ????????.???  ???????/.???  ????????.?6?
????????.???  ????????.??!  ????????.???  ????????.?/?  ?????c??.???
????????.???  ????????.???  ????????.???  ???? ???.???  ?????K??.???
????????.???  ????????.???  ???????.???   ????????.???

当我尝试删除目录时:

me@hackerspace-dev-vm /media/me/MOMMA SCRIB $ rm -rf Raven
rm: cannot remove ‘Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/Ç▄Æ|Ä¡î9.⌐^ç/83361\r\nG.1 x/ürëW\néyä.▐Çî’: Read-only file system
rm: 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 system
rm: 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 system
rm: 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ü═.\någ’: Read-only file system
rm: cannot remove ‘Raven/\n\n\n\n\n\n\n\n.\v\027\023/.173 Y12.1.0/Ç▄Æ|Ä¡î9.⌐^ç/83361\r\nG.1 x/é⌠ê6é»Pâ.ÿ?x/00 X89.0.9 y/.710 E92.7.6/61.868\r\n.g1’: Read-only file system
...etc...

我怎样才能摆脱这个目录?

答案1

错误rm显示“只读文件系统”。

  1. 也许驱动器安装不正确,在这种情况下请mount /dev/sdX -o remount,rw以 root 身份操作。

  2. 您的驱动器可能存在文件系统错误。将文件复制到其他位置,卸载驱动器,然后运行文件系统检查。用于此目的的实用程序取决于所使用的文件系统的类型。

相关内容