Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Change udev rule to automount USB disk into /home/user* instead of /media/user*

Started by bpr323, July 07, 2020, 04:46:50 AM

Previous topic - Next topic

bpr323

I have external USB disk which Sparky auto mounts into media/xxx/ folder. The drive is full read/write/delete for user "xxx"

As user "xxx" I configured Minidlna to share the files on USB and the Downloads:

root_container=B
media_dir=/media/xxx/SSD-2
media_dir=/home/xxx/Downloads

where:
/media is owned by root, /xxx is also owned by root and SSD-2 is owned by user "xxx"
/home is owned by root, /xxx is owned by user "xxx" and Downloads is owned by "xxx"

Minidlna shares out the contents of /home/xxx/Downloads, but refuses to share any content of /media/xxx.

Is this because /media/xxx is owned by root, as opposed to /home/xxx owned by user "xxx"?

To fix this, how should I edit some config files to make Sparky mount the USB drive into /home/xxx/Media (or Storage, etc)?

View the most recent posts on the forum