I am trying to access the usb stick that I use for storage on my Pi, PI_USB. I am able to access it while using startx, but I am denied permission while in console mode.

In the terminal, I typed in the following:

$ cd /media
/media $ cd PI_USB
bash: Permission Denied
/media $ sudo cd PI_USB
sudo: cd: command not found

I was wondering, why am I being denied permission? How can I fix this? I am using the byobu console interface, could this be the issue?

  • What is mounting the device?
    – Jivings
    Apr 26, 2013 at 20:57
  • 1
    Indeed. Do you mount it yourself, or automatically? What does your /etc/fstab contain?
    – krs013
    Apr 27, 2013 at 3:24
  • @Jivings How would I find out what mounts it? I use an external USB port (from staples...) May 3, 2013 at 18:55
  • I mean are you mounting it yourself? Can you access as root (not using sudo).
    – Jivings
    May 4, 2013 at 16:09
  • 1
    you can not sudo cd but you can start a new shell with sudo -s and then running cd would do so with root access. Remember to type exit before doing anything that could wreck your system.
    – rob
    Oct 30, 2013 at 20:54

1 Answer 1


I had the same problem, and I ended to start doing :

sudo chmod 777 PI_USB

As a workaround before putting the good permissions.

Good luck!

  • 1
    While not very elegant, it does solve the problem. I'll upvote.
    – Bex
    Apr 20, 2014 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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