I have a raspbian-lite headless server setup.
Debian 9 (stretch)
I am having difficulty properly mounting two usb drives with write permissions.
My setup is nothing fancy, and no real alterations or deviations from a normal headless server.
I can get fstab to auto-mount them, but then permissions are always not right.
The two usb drives (from fstab output) are:
proc /proc proc defaults 0 0
PARTUUID=815bed4b-01 /boot vfat defaults 0 2
PARTUUID=815bed4b-02 / ext4 defaults,noatime 0 1
----> UUID=596FBA3E042EEE51 /media/usb0 ntfs-3g errors=force,rw,defaults 1 1
----> PARTUUID=69ac58f5-01 /media/usb1 ext3 defaults,nofail 0 0
Problem #1: I cannot get the system to automatically mount the devices upon insert into the usb slots.
So I'm pretty experienced using linux command line... and I've setup a fair number of distros including several raspbian ones. I'm pretty proficient with Debian as well. I'm sure I've had success detecting and mounting usb attached hardware in the past. Seems like a few programs had to be installed for this to happen automatically. I feel like I've installed all that I routinely remember. (mount, pmount, usbmount, ntfs-3g...etc...)
Problem #2: I cannot get rw permissions for all on either drive?
So, has something changed recently with systemd, udev, or basically in Debian 9 that changed mounting processes? I have tried multiple formats on each drive... seems like raspberry pi does not work with usb hardware in the same way Debian does?
Also, I've looked all over for good information to address the issue. Most posts and answers seem to only confuse the discussion. Most all solutions I've been able to find either no longer work, or are very specific to a users system.
My hope in posting this is to get some clarity! Thanks!