• 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!

Diversion Diversion 5.4.1 - the Router Ad-Blocker, December 15, 2024

(also incorrectly posted in uiDivStats thread), but if I enable dnsmasq logging in diversion, I am unable to properly unmount my external ssd, the log is spammed with:

Jan 12 11:10:35 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:36 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:37 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:38 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:39 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:40 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:41 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:42 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:43 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:44 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:45 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:46 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:47 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:48 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:49 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:50 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:51 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:52 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:53 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:54 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:55 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:56 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:57 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:58 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:10:59 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:00 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:01 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:02 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:03 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:04 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:05 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:06 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:07 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:08 ejusb: USB partition unmounted from /tmp/mnt/Samsung_T5 fail. (return -1, Device or resource busy)
Jan 12 11:11:09 ejusb: USB partition busy - will unmount ASAP from /tmp/mnt/Samsung_T5

unmount I am using is from frontend: 'safely remove disk', then spinner freezes, eventually it will return unmounted status there, but the log is as above and it gives me the feeling that it just gave up unmounting.
If I disable dnqmasq logging the behaviour is back to normal.

running (latest versions of) diversion and skynet on GT-AXE16000
 
If I disable dnqmasq logging the behaviour is back to normal.
You can see what other files are open on the drive with this command:
Code:
/usr/bin/lsof | /bin/grep "/tmp/mnt/Samsung_T5"
 
Last edited:
lsof is included in the firmware now!?
A very primitive Busybox implementation. Only useful for very basic output.
Code:
rtradmin@router:/tmp/home/root# /usr/bin/lsof | /bin/grep jffs
3260    /bin/busybox    /jffs/syslog.log
11935   /usr/sbin/dnsmasq       /jffs/dhcp/dnsmasq.leases
 
A very primitive Busybox implementation. Only useful for very basic output.
Code:
rtradmin@router:/tmp/home/root# /usr/bin/lsof | /bin/grep jffs
3260    /bin/busybox    /jffs/syslog.log
11935   /usr/sbin/dnsmasq       /jffs/dhcp/dnsmasq.leases
Strange. I don't have that on my RT-AX86U (3004.388.8_4).
Code:
admin@RT-AX86U:/# /usr/bin/lsof
-sh: /usr/bin/lsof: not found

admin@RT-AX86U:/# find / -name lsof
/tmp/mnt/TOSHIBA1/entware/bin/lsof
 

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!
Top