Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: Change udev rule to automount USB disk into /home/user* instead of /media/user*  (Read 129 times)

Offline bpr323

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
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)?
« Last Edit: July 07, 2020, 11:03:20 am by bpr323 »