tomman |
Posted on 18-12-18, 18:20
|
Dinosaur
Post: #87 of 1315 Since: 10-30-18 Last post: 58 days Last view: 19 hours |
After having migrated from SMB/CIFS to NFS for my Linux-to-Linux network file sharing needs, now I'm in the need to making my life easier. See, currently I have to mount my partitions the way greybearded change-hating sysadmins do: using mount commands from a terminal. This requires me to create mountpoints on my filesystem manually (for example /media/nethd which is the one I usually use). This works fine for as long as I need to mount a single network share (which is basically 80% of my use cases). But sometimes I need to have several network shares mounted at the same time, and having my /media directory polluted with mostly useless nethd0/1/2/infinity mountpoints is UGLY. Surely we have the tech to do it better, right? At least we've had it for years if you're dealing with locally attached block devices: udisks2 is as easy at it gets, it does the required Magic™ (create mountpoints when attaching device, deleting them when unmounting/removing), but a quick 60-second Google search has been useless so far (maybe The Googles aren't tracking me hard enough to actually use their AI for good, I guess). Here is what I'm looking for: - Automatically manage mount points (create them on mount, delete them after unmounting) - DE-specific stuff (like GNOME VFS) is completely useless to me, as I do actually care about app compatibility (a terminal or a media player can't do anything with those fake mounts) - Should allow for non-root users to do their own mounts - Should allow for customizing mountpoint options (root dir, naming, etc.) - Bonus points if it can also do CIFS - It's fine if it's a console application, I'm not specifically looking for a GUI solution this time (and in fact, some of my hosts are headless at times) - Must work with Debian 8 and 9! - systemd-specific solutions are perfectly acceptable, although if they actually built in that functionality in later versions, sadly I'm not upgrading my old Debian hosts for it, sorry. Before you ask: I AM NOT LOOKING for /etc/fstab hard mountpoints, or mounting things at boot! I'm willing to rely on 3rd-party software for this, obviously. Any options? Licensed Pirate® since 2006, 100% Buttcoin™-free, enemy of All Things JavaScript™ |
funkyass |
Posted on 18-12-19, 09:40
|
Post: #16 of 202
Since: 11-01-18 Last post: 660 days Last view: 16 days |
autofs? |
tomman |
Posted on 18-12-22, 21:00
|
Dinosaur
Post: #96 of 1315 Since: 10-30-18 Last post: 58 days Last view: 19 hours |
Hmmm... it could be. The autodiscovery part sounds exactly like what I'm looking for, although the documentation is kinda confusing at points (the samples I find usually focus on "let's do things the fstab way!"). I can give it a try. But... since autofs also targets removable media, wouldn't it conflict with udisks2? Or can both be setup in a way so autofs can deal with the network shares only, while leaving udisks2 untouched? I don't mind having both working at the same time, and I don't want to switch away from udisks2. Gotta read more, so thanks for the suggestion! Licensed Pirate® since 2006, 100% Buttcoin™-free, enemy of All Things JavaScript™ |