automatically create directories for noauto mounts
I recently changed my /media directory to be a tmpfs, and that means there are no directories existing. There is a existing issue for systemd
my fstab contains these entries:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
//192.168.0.2/public /media/WDCloud cifs user=none,password=none,rw,users,uid=1000,vers=3,noauto 0 0
I am on debian testing x86_64, udisk 2.8.4.
This caused some issues:
- WDCloud cant be mounted anymore without creating the /media/WDCloud directory first
- /media/cdrom0 cant be mounted manually, but inserting a cdrom will automatically create the directory (udev?).
Naturally I would like to be able to mount the WDCloud share/Cdrom for all users as before - Nautilus shows the share and you can click it.
For the cdrom0, maybe there is a better option like configuring udev to make the symlink as default cdrom, dont know.
At any rate you will probably lose shared access if the device is then mounted below /media/<user>. debian does not use /run/media but /media for "private" user mounts, perhaps complicating this further.
Maybe some udisks config option to automatically mount cdroms for shared access and create those legacy links?