Posts: 169
Threads: 58
Joined: Oct 2017
Reputation:
0
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.
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
This should work but your hub must be externally powered, not from LM
------------------------------
Ctrl+F5
Posts: 169
Threads: 58
Joined: Oct 2017
Reputation:
0
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.
Posts: 4644
Threads: 24
Joined: Aug 2017
Reputation:
207
I never tried this but look here how to find port names
https://forum.logicmachine.net/showthrea...4#pid12724
------------------------------
Ctrl+F5
Posts: 169
Threads: 58
Joined: Oct 2017
Reputation:
0
ok Daniel. thank's. I will try this.
Posts: 7760
Threads: 42
Joined: Jun 2015
Reputation:
447
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.
Posts: 169
Threads: 58
Joined: Oct 2017
Reputation:
0
07.08.2020, 04:59
(This post was last modified: 07.08.2020, 04:59 by SigmaTec.)
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.