Hi,
recently I upgraded my setup to RB5009 (coming from a HAP-Device).
I noticed (Version 7.11) that every now and then, mostly with a reboot, my USB-Stick got renamed ("SLOT" got changed).
One boot it's USB1 (and the partition accordingly: USB1-Part1), next boot it is USB2 (and USB2-part2)...
Also I noticed an empty partition showing up which occupied the other slot.
Since this is annoying in having an SMB-Share or containers hosted, and I saw this happening to other users as well in the firmware-discussion threads, I'd like to share a workaround, which is working fine for me.
1. In Winbox open SYSTEM -> DISKS
2. Write down or copy the MODEL - string of the attached device which is always changing (in this example: USB SanDisk 3.2Gen1 )
3. Open SYSTEM -> SCHEDULER
4. Create a new scheduled script (by pressing +)
Script:
Name: Rename USB
Start Time: startup
On event:
:delay 10
/disk set slot=data [find model="USB SanDisk 3.2Gen1"]
What's this doing?
Every time the Routerboard is starting up the attached USB-Stick is renamed to "data".
This is more reliable than hoping the correct order will be preserved after reboot.
You then will be able to create Containers stored in e.g. /data/container/ or you can be sure that your SMB-Services are running correctly if you add shares like /data/share .
For containers you will want to create another script, making them run after the rename-script did the job.
Autorun containers fail if you set them to "start on boot" and the devices name is still false.
Maybe someone knows, WHY the renaming is happening in the first place? Is it a bug? Is it depending on the USB-Hardware?
Hope this helps someone, somewhere
Best regards,
Martin!