Hello!
I’ve set up logging to USB stick on my RB951G-2HnD (running RouterOS v6.12) and run into a problem with usbX mountpoint not being consistent, i.e. when I boot up the router, USB storage is mounted to usb1/ and logging works flawlessly, but after some time the mountpoint changes to usb2/ and the logging to file stops.
Logging stopped because usb1/ no more exists:
[admin@MikroTik] > store disk pr detail
Flags: S - system
0 S name="system" total-space=126976KiB free-space=112408KiB status=ready
1 name="usb2" total-space=7783060KiB free-space=7634460KiB status=ready
[admin@MikroTik] > sys reboot
After reboot:
[admin@MikroTik] > store disk pr detail
Flags: S - system
0 S name="system" total-space=126976KiB free-space=112408KiB status=ready
1 name="usb1" total-space=7783060KiB free-space=7634460KiB status=ready
Logging works for some time, but then suddenly usb1/ changes back to to usb2/ again and the logging stops.
The USB stick is directly connected to the one available port on the RouterBOARD:
[admin@MikroTik] > system resource usb pr
# DEVICE VENDOR NAME SPEED
0 1:1 Linux 3.3.5 ehci_hcd RB400 EHCI 480 Mbps
1 1:2 JetFlash Mass Storage Device 480 Mbps
export compact related sections:
/system logging action
set 0 memory-lines=500
set 1 disk-lines-per-file=100
add disk-file-count=128 disk-file-name=usb1/usb-stick-log disk-lines-per-file=65535 name=usb1 target=disk
/system logging
add action=usb1 disabled=no topics=!debug,!dns
Is there any way to somehow “glue” that specific USB storage to a constant mountpoint, perhaps by using UUID?