1

I rebooted my Raspberry Pi and discovered it has auto mounted the external hard drive under /media/pi/driveLabel! I had originally created a mount point at ~/USBHDD/ before the reboot.

How can I unmount from /media/pi and auto mount on ~/USBHDD/ every time I boot my Raspberry Pi? I'm running Raspbian Jessie.

Jacobm001
  • 11,904
  • 7
  • 47
  • 58
Ciasto piekarz
  • 355
  • 2
  • 12
  • 28

1 Answers1

3

You will need to tell your system that you want this drive mounted to the directory of your choice by modifying /etc/fstab:

/dev/sda1 /home/pi/USBHDD/ auto,users,rw,uid=pi,gid=pi 0 0

Or, if you want only a particular drive to be mounted there and happen to know its UUID:

UUID=XXXX /home/pi/USBHDD/ auto,users,rw,uid=pi,gid=pi 0 0

Here is a good tutorial on the subject in case you get lost or face issues.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147