This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

more than one USB key
#1
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.
Reply
#2
This should work but your hub must be externally powered, not from LM
------------------------------
Ctrl+F5
Reply
#3
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.
Reply
#4
I never tried this but look here how to find port names
https://forum.logicmachine.net/showthrea...4#pid12724
------------------------------
Ctrl+F5
Reply
#5
ok Daniel. thank's. I will try this.
Reply
#6
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.
Reply
#7
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.
Reply


Forum Jump: