Hello,
i would like to use an external usb drive with a NTFS partition on it as share (and samba share). That works like a charm while mounting the partition with the web ui and create the share via web ui.
But i like to have it automounted and "autoshared" without accesing the shell or the webui and want it identified by UUID as device names can change. After searching the forum i consider to create a Udev-Rule, maybe like this (example i found):
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",SYMLINK+="usb-%n", GROUP="storage", NAME="%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",RUN+="/bin/mkdir -p /symbiosis/utopia"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /symbiosis/utopia", OPTIONS="last_rule"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/umount -l /symbiosis/utopia", OPTIONS="last_rule"
My Question:
How can i "autoshare" the partition on the usb drive? I read this [Solved] Adding Share Folder from USB Stick and understand, that it'll maybe impossible. Thats right? Maybe i can configure a samba share manually in the smb.conf to achieve the goal? Or is there another way?
Thank you for reading.
-aeronaut