Quantcast
Viewing all articles
Browse latest Browse all 5391

Networking and servers • Re: Automatic file server?

The problem is I don’t know if it’s a flash drive or a usb external hard drive. I’m wondering how these companies are doing it. When I plug in a flash drive or hard drive it mounts it automatically and creates the smb sharing the I can ftp with a username and password to be able to access my files.
Not sure I understand that, SMB and FTP are different protocols and do not work together.

Sorry about that. I phrased it wrong. I corrected it in the last comment I did.
One possibility is a udev rule that upon detecting a USB storage device launches a script which mounts and exports it over the network. One may need to disable weird mounting software running on the desktop for this to work.

If the mount is read only, it should be possible to allow people to pull the drive out again without warning, detect that and clean up the mess.

If read write access is required then maybe a button (and resistor) connected to a suitable GPIO could signal desire to remove the USB devices. One could also add a few status lights using LEDs.

I'd isolate the USB port on the Pi behind a powered hub to make the hot plugging less likely to crash the Pi.

Statistics: Posted by ejolson — Sat Feb 10, 2024 7:02 pm



Viewing all articles
Browse latest Browse all 5391

Trending Articles