On 2015-02-27, John Hupp wrote: > Running LTSP-PNP (with ltspfs 1.3-1) on Lubuntu 14.04.2 i386, I'm > looking for elegant handling of flash drives. (Also music/data CD and > DVD discs, but starting with this question.) So far I'm finding this: > > With the relevant lts.conf settings at default, and in Lubuntu, giving > regular users permission to mount user-space filesystems (FUSE): > > If I insert a USB flash drive into the server, client screens get: > Error: Device /dev/sdb1 is already mounted at > '/media/user1/2cc1-2221'. > They have to OK out of that. All right, not too bad.
There should be a way to deny user's access to the server's mounts... not sure what it is exactly. I tend to run headless servers, so there rarely are any users logging in at the console directly and plugging in USB sticks and such. > If I insert a flash drive into a client, the drive auto-mounts for the > logged in user on that client but it does not prompt to show the drive > in the file manager (as it does on the server, which seems to be the > usual experience). You can create hooks in /etc/ltspfs/mounter.d/ that execute on device insertion and removal, such as: /usr/share/doc/ltspfs/examples/notify > But to come to the most flagrant part of the > problem, if the user tries to unmount the drive, it produces: > Error: umount: /media/user2/usbdisk-sbd1 is not in the fstab (and > you are not root). There's a bug reported regarding not being able to unmount: https://bugs.launchpad.net/ltsp/+bug/1094899 It's essentially a fundamental design issue with the way ltspfs works. The user's data is mostly kept safe by unmounting the actual drive from the client side, while the virtual mount point still appears mounted, so it is safe to remove the drive after a few seconds of inactivity. But the user experience is unlike the typical workflow of mounting and unmounting devices manually. > Anyone recognize the problem and have a solution? If you're running fat clients, I'd suggest trying LOCALDEV=False in lts.conf and figuring out how to use the "normal" mounting mechanisms. For thin clients, well... This is all on the (very long) list of things to reconsider and redesign for the next major rewrite of LTSP... live well, vagrant
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net