You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, flash drives are mounted to a path based on the order in which they are plugged in. The first one plugged in gets /mnt/sda1 and the second gets /mnt/sdb1 - it doesn't matter which port they are plugged into. However, when the Tessel is booted, it loads the top port first so if you initially plugged in the first flash drive into the bottom port and then plugged another drive into the top, they will have their paths switched and your fs.readFile will very wrong. We can get around this by assigning paths to usb ports.
The text was updated successfully, but these errors were encountered:
I think there is probably a way to do it but I didn't have the time to implement it.
For anyone interested, my guess is that you would make a hotplug script that looks for new flash drives being plugged in. You should also be able to get data about the usb port being used and mount it on the proper path based on that. You will have a lot of info available to your script:
Currently, flash drives are mounted to a path based on the order in which they are plugged in. The first one plugged in gets
/mnt/sda1
and the second gets/mnt/sdb1
- it doesn't matter which port they are plugged into. However, when the Tessel is booted, it loads the top port first so if you initially plugged in the first flash drive into the bottom port and then plugged another drive into the top, they will have their paths switched and yourfs.readFile
will very wrong. We can get around this by assigning paths to usb ports.The text was updated successfully, but these errors were encountered: