I am new to UNIX and I have been trying to setup Transmission on my new Raspberry Pi. I have formatted my external USB drive to ext4
and added the following line to the /etc/fstab
.
/dev/sda1 /media/USB96 ext4 defaults 0 0
It works fine but when I login as pi
(instead of root
) it returns an error when mounting the drive
mount: only root can do that
I'm stuck here because when I try to download a torrent with the Transmission web interface it also returns an error:
Permission denied (/media/USB96/torrents/complete/my torrent link)
Please help me to solve this problem and tell me how to allow the normal user pi
to mount and have access to the USB drive.
Best Answer
You should change your
/etc/fstab
entry to this:According to the
fstab(5)
manpage, theuser
option allows any user to mount the file system.