At the moment we are working on the L009UiGS-2HaxD-IN with an USB attached, we managed to get a container work directly from the usb without any issue while powered on,
but noticed that most of the times after a reboot of the hardware, we find duplicated disk under the “files” menu.
This prevent the container automatic restart and we need to manually delete the duplicated disk named “Usb1” and rename the original Disk from “Usb2” to “Usb1”,
then we can start the container correctly. Has anyone got the same “problem” or found any automatic solution to it?
Is that disk by any chance a Sandisk USB-3 device ?
Known issue on RB5009. They are working on it.
We are looking forward to fix it and currently can suggest to configure a startup scheduler script which does USB power-reset or consider using other brand USB Flash drive
It is connected with USB 3 sticks that are sometimes detected as USB 2, Sandisk sticks appear to be more prone to the issue, but it is possible that other brands are also affected.
Thanks both for the informations and replies, we found a workaround to prevent the issue, if anyone find it useful.
We put the following script inside a netwatch with a ping to one of our public ip.
Can the script resolve the issue of mounting to a wrong position after a sudden reboot?
I have several issues of this when the USB drive was mounted to a different name that containers won’t start. As a result, I have to reformat the USB and reinstall the containers. The later takes a much loner time as I need to configure again some settings in the containers’ applications.
BTW, is there way to save the container as a tarball?
It sounds like a different issue if you actually need to re-format the USB and reinstall the containers.
The script only checks if - by any chance - the USB disk/stick has been mounted on the “wrong” slot and if it is, corrects the slot name.
In any case, if you are experiencing USB corruption or in any case for “proper” backup/restore, if it is a “normal” USB stick (normal in the sense of “sized a few GB’s”, or “not a zillion GB’s USB disk/SSD”) it would make IMHO a lot of sense to make a dd-like (sector by sector) image, it is the easiest way to restore the stick to a pristine/initial state, and the image is likely well compressible with zip or gzip. (of course if you have local/physical access to the router and stick)