The current working directors is, e.g. /media/username/ExtHDD/.
When disconnecting and re-connecting that HDD, commands such as ls do not work properly anymore.

$ -????????? ? ?    ?             ?            ? Filename.txt

Why do I have to use cd / ; cd /media/username/ExtHDD/ before the commands work again?


When you eject a drive, all information about that drive and any processes attached to it, is discarded from the working memory of the operating system.

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.