You are here

Challenges mounting a USB Drive on Mikrotik HAP

3 posts / 0 new
Last post
KI6GOA's picture
Challenges mounting a USB Drive on Mikrotik HAP

Okay, I've been beating my head against a problem for a few days now and I've finally reached the point where I'm going to ask the group for some help.

First some background. I have a couple of Mikrotik HAP AC Lite routers running AREDN and I'm trying to set them up to enable the USB port for USB flash drive storage. This is to increase storage for MeshChat as well as to store files needed by IP phones on their startup. My model for this has been the following post here on the AREDN forums ( along with similar directions I found for the OpenWRT firmware ( 

I've gotten these steps to work for two of my nodes with the extra step of having to add a mount command to my /etc/rc.local file to execute on startup. However, for the other two nodes I cannot get the USB drive to mount on startup. Entering the command manually via telnet (mount /dev/sda1 /mnt/sda1) works fine, but again I'd like this to be done automatically at startup.

I've tried adding this task as a cron job at startup using crontab -e and making the following entry "@reboot mount /dev/sda1 /mnt/sda1" but no joy. 

Does anyone have any suggestions as to how I can get my node to run this simple command at startup? Something tells me I'm making a very novice mistake here but for the life of me I can't quite figure it out.

Thank you in advance for your feedback and Happy New Year!
​Tom, KI6GOA

nc8q's picture
Challenges mounting a USB Drive on Mikrotik HAP

Hi, Tom:

Up to April 2022, I was trying to install Asterisk-16 on my hAP and/or AR300M16, but was running out of RAM storage for all the required .ipk files.
Anyhow, I used this to get a USB drive to auto-mount.

gelmce@nc8q-mesh:~/tmp/usb$ cat
opkg update && opkg install block-mount e2fsprogs kmod-fs-ext4 kmod-usb-storage kmod-usb2 kmod-usb3
mkdir /mnt
mkdir /mnt/usb
#mkdir /mnt/usb/https
#mkdir /mnt/usb/sip
mount /dev/sda1 /mnt/usb
block detect | uci import fstab
sed -i "1,17s/option enabled '0'/option enabled '1'/" /etc/config/fstab


73, Chuck

KI6GOA's picture
Thanks Chuck!
Thanks Chuck! Your directions almost mirrored the step I was taking but I found one little mistake I was making that resolved the whole issue. I'm good now!

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer