Logic Machine Forum
more than one USB key - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: more than one USB key (/showthread.php?tid=2777)



more than one USB key - SigmaTec - 06.08.2020

Hi all,

in order to write/read files, is this possible (by script), to mount/umount more than one USB key ? For example using an USB HUB connected at the LM, and with 2 ou 3 USB key plugged ?

Have a nice end of week.
All the best.


RE: more than one USB key - Daniel - 06.08.2020

This should work but your hub must be externally powered, not from LM


RE: more than one USB key - SigmaTec - 06.08.2020

Ok for the PU.

And for Lua script ?
Actually I use these commands :
"part = part or devn"
"os.execute('umount -f /mnt 2>&-')"
"res, stat = io.readproc('mount /dev/' .. part .. ' /mnt 2>&1')"
But how to access one USB key or another specialy on the USB Hub ?

Thank's Daniel.


RE: more than one USB key - Daniel - 06.08.2020

I never tried this but look here how to find port names
https://forum.logicmachine.net/showthread.php?tid=2036&pid=12724#pid12724


RE: more than one USB key - SigmaTec - 06.08.2020

ok Daniel. thank's. I will try this.


RE: more than one USB key - admin - 06.08.2020

Why do you need multiple drives? If you want to store large amounts of data you should use a network storage or an external database.


RE: more than one USB key - SigmaTec - 07.08.2020

I chose USB keys because I have to minimize the weight of my system, which is shipped in a transportable case. The first USB key records data from the LM, the second allows a copy of the data for use on an external PC.