What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

USB not auto-mounted on UI reboot

watusi

Regular Contributor
On an AC87 with AsusWRT-Merlin, I've been having a problem with my USB 3.0 flash drive sometimes not being mounted on reboot. I think I have isolated it to reboot from the HTTP GUI.

That is, if I reboot from the "reboot" button in the UI, it does not mount the USB filesystems. If I power-down and back up, it does mount the USB filesystems.

I am not currently playing with fstab.

I have 3 partitions on the USB. First one is a 512MB swap, and I use a pre-mount script to start swap on /dev/sda1/ It is the script from the documentation.

The other two partitions are ext4 filesystems. I just let them auto mount.

The second one has label 'opt', and has the asusaware.arm file, so it gets my downloaded packages. (I realize 2GB is way more than I need for opt... I wasn't able to create a partition < 2GB on this drive. Maybe just the software I used - I am lazy, so I used KDE Partition Manager on Kubuntu.)

The third one has label 'data', and I currently don't really use it for anything. It's waiting in the wings.

I suppose I ought to supply an FSTAB with UUIDs to foolproof it. (Yes, I've already accidentally inserted an OS X Yosemite installer stick! Then promptly put an adhesive label on it to avoid doing that again...)

FWIW, the only other custom configuration I have is a firewall-start script that loads ipsets with TOR exit nodes and some undesirable countries and sets iptables to block them. I wonder if there is some timing issue here? However, pretty sure I observed this behavior prior to setting that up.


admin@l33tw0pr:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 34.8M 34.8M 0 100% /
devtmpfs 124.8M 0 124.8M 0% /dev
tmpfs 124.9M 8.8M 116.1M 7% /tmp
/dev/mtdblock4 62.8M 2.3M 60.5M 4% /jffs
/dev/sda2 2.0G 106.3M 1.8G 6% /tmp/mnt/opt
/dev/sda3 105.4G 187.6M 99.8G 0% /tmp/mnt/data

admin@l33tw0pr:/jffs/scripts# free -m
total used free shared buffers
Mem: 255760 76608 179152 0 792
-/+ buffers: 75816 179944
Swap: 530108 0 530108
 
Maybe you need to put a delay in one of the startup scripts to give time to the USB flash drive to be recognized.

I don't know if it makes a difference, but you could use the fdisk/mkfs/fsck commands included with the firmware to assure compatibility. I experience no problems using that method.
 
I have kinda same symptom in my RT-AC68U atm with 376.49_a1
GUI (and telnet) reboot comes up with different results,
for my USB3disc and USB2modem with SDflash (timingissue/driver suspected)

solution=powercycle works in 99,97%, have tried loads of workarounds
 
One thing to try is to make the USB flash drives excluded from spindown or disable spindown entirely on the Tools/Other Settings tab. Sometimes these drives don't like being sent a spindown cmd.
 
Done that already,
however above issue seams = so far so long better in .49
but now something with my dualwan usb2modem.

now back to that, factory default and tweaking

One thing to try is to make the USB flash drives excluded from spindown or disable spindown entirely on the Tools/Other Settings tab. Sometimes these drives don't like being sent a spindown cmd.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top