I am trying to mount a USB HDD. A create a folder here:
/media/pi/HDD
My HDD is formated to ext2
After that, I modified my /etc/fstab
and add this line:
/dev/sda1 /media/pi/HDD ext2 rw,defaults,user 0 0
Then reboot, and I can see, the mounted HDD, but the owner and the group is root
.
Thus, any app can't write this folder. For example, Chromium cannot download anything to this folder, and I also can't use transmission to download in this folder neither.
If i check the /media
folder belongs to pi:pi
My question is, how can I mount this HDD as pi
user on boot?
lsblk --fs
from the command line, and include the output of that command in your question./media/pi/HDD
(where you presumably want to write), not on/media
.