i'm trying to remove directory from my external hard drive that i mounted to the file system i'm using the rm -r command but i got the the strange error :

rm: cannot remove `Lundu nitip/Downloads/Downloads/linux-3.12.2/arch/s390/include/uapi/asm': No such file or directory

this is strange because when i entering the directory recursively,directory and file contain in the directory i want to remove is exist. why does this happen? and how to remove the directory

  • What's the exact command line you used? – Ƭᴇcʜιᴇ007 Apr 23 '14 at 17:09
  • rm -r Lundu\ nitip/ where Lundu nitip is the name of the directory – harianja Apr 23 '14 at 17:15
  • try this: find Lundu\ nitip/ -delete && rmdir Lundu\ nitip/ – Marcel Apr 23 '14 at 17:28
  • Which filesystem does your external drive use? – derobert Apr 23 '14 at 20:13

Try to see what is in the directory by listing hidden files, like;

$ ls -lRa directoryname

In Linux/Unix all files which starts with a . (dot) are considered hidden files

Another possibility is that you don't have permissions to remove the content -- the -f in rm -rf will cause those files you cannot remove due to permission issues to be ignored, so you can also try to issue the rm without the f option, like

rm -r directoryname

Additionally if the directory is a mount-point, you may have lost access or it may have gone into read-only mode -- To determine if that is the case you use the mount command and carefully examine the output.

The last is probably true, if the directory is a NFS mounted volume (or Windows share) where the remote machine has stopped responding


if you have the permission to mount a drive mount it in the nautilus(to simply see if the drive exists and is readable (in a format linux can read) and wether the file exist or not...if not found press ctr+H to show hidden files... also make sure you typed the path correctly....remember the linux terminal is case sensitive hence Directory is not the same as directory or dirEctory...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.