What's new

ASUSWRT_Samba_Fixer no longer works after reboot

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

tom

New Around Here
Hello folks

I have been using an Asus Rt-AC86U router for several years. For me it is very important that I can access my individual SSDs and HDs on the USB3 port individually via Samba. That's why I installed the Samba_Fixer (https://github.com/dnlongen/ASUSWRT_Samba_Fixer). It ran for years without any problems until I switched from Merlin 386.10 to 386.12. From then on, the Sambafixer script no longer worked. After what felt like 100 re-installations and reboots, I performed a hard reset using the reset button and then installed the 386.10 FW. After that Sambafixer worked again.

My VPN connection occasionally drops down to 1 MB/s download. After a router restart, the speed is back to normal. Yesterday it happened again and I rebooted.
Since then, the Samba_Fixer script no longer works. All Hds and SSDs are only displayed as a single hard disk with many folders.

I formatted the 4gb Usb 2.0 stick in ext2/3/4 and Fat/NTFS and restored the jffs backup partition several times. The script no longer works. I also executed the Samba_Fixer steps one by one via SSH. It does nothing. After restarting, only the folders of all HDs are displayed at once. The hard disks are displayed individually via FTP and I can access them. An empty SDA folder is displayed via FTP. As far as I remember, there was always a Jffs folder, even via Samba.

Another thing I notice in the system log: "Samba_Server: smb daemon is stopped" - 2 seconds later "Samba_Server: daemon is started". Shouldn't there be 3 minutes in between?

Now I'm running out of ideas as to what the problem could be.

Translated with Deepl

Feb 4 14:02:14 Samba_Server: smb daemon is stopped
Feb 4 14:02:16 Timemachine: daemon is stopped
Feb 4 14:02:16 avahi-daemon[1948]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Feb 4 14:02:16 miniupnpd[1896]: shutting down MiniUPnPd
Feb 4 14:02:16 Samba_Server: daemon is started
Feb 4 14:02:16 FTP_server: daemon is started
Feb 4 14:02:16 miniupnpd[1974]: HTTP listening on port 35128
Feb 4 14:02:16 miniupnpd[1974]: Listening for NAT-PMP/PCP traffic on port 5351
Feb 4 14:02:17 kernel: EXT4-fs (sde1): warning: mounting unchecked fs, running e2fsck is recommended
Feb 4 14:02:17 usb: USB ext2 fs at /dev/sde1 mounted on /tmp/mnt/dreamasus.
Feb 4 14:02:17 avahi-daemon[1948]: Alias name "RT-AC86U" successfully established.
Feb 4 14:02:18 rc_service: hotplug 1716:notify_rc restart_nasapps
Feb 4 14:02:18 iTunes: daemon is stopped
Feb 4 14:02:18 FTP_Server: daemon is stopped
Feb 4 14:02:18 wsdd2[1961]: Terminated received.
Feb 4 14:02:20 Samba_Server: smb daemon is stopped
Feb 4 14:02:24 Timemachine: daemon is stopped
Feb 4 14:02:24 avahi-daemon[2016]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Feb 4 14:02:24 miniupnpd[1974]: shutting down MiniUPnPd
Feb 4 14:02:24 Samba_Server: daemon is started
Feb 4 14:02:24 miniupnpd[2042]: HTTP listening on port 44374
Feb 4 14:02:24 miniupnpd[2042]: Listening for NAT-PMP/PCP traffic on port 5351
Feb 4 14:02:25 avahi-daemon[2016]: Alias name "RT-AC86U" successfully established.
Feb 4 14:02:29 crond[1179]: time disparity of 3025917 minutes detected
Feb 4 14:03:46 wlceventd: wlceventd_proc_event(530): eth6: Auth 24:CE:33:A4:33:41, status: Successful (0), rssi:0
Feb 4 14:03:46 wlceventd: wlceventd_proc_event(559): eth6: Assoc 24:CE:33:A4:33:41, status: Successful (0), rssi:0
Feb 4 14:03:47 watchdog: New firmware version 386.12_4 is available.
 
If you’re already running Merlin, you can already use a custom config file for Samba. That other workaround was intended for stock firmware.
Enable JFFS scripts and custom configs on the Administration page. Copy your smb.conf to /jffs/configs/smb.conf and restart Samba with service restart_samba
 
Last edited:
  • Like
Reactions: tom
If you’re already running Merlin, you can already use a custom config file for Samba. That other workaround was intended for stock firmware.
Enable JFFS scripts and custom configs on the Administration page. Copy your smb.conf to /jffs/configs/smb.conf and restart Samba with service restart_samba
Thank you.
As it stands, the postconf scripts only run while the router is running, and must be terminated manually before a reboot, otherwise the router will get stuck and must be reset.
The Dlongen Samba_Fixer avoids this by automatically overwriting the stock smb.conf at every boot.
 
As it stands, the postconf scripts only run while the router is running, and must be terminated manually before a reboot, otherwise the router will get stuck and must be reset.
That doesn’t make any sense to me.
 
Samba Fixer uses the script_usbmount variable which is no longer supported. Therefore the script will never run.
Until yesterday it ran without problems, for years already with a Sandisk 4GB usbstick in USB 2.0 input with Merlin FW 386.10
 
If you’re already running Merlin, you can already use a custom config file for Samba. That other workaround was intended for stock firmware.
Enable JFFS scripts and custom configs on the Administration page. Copy your smb.conf to /jffs/configs/smb.conf and restart Samba with service restart_samba
Thank you so much. You have made my day. I copied the smb.conf to /jffs/configs and my HDs are listed individually again. Then I unplugged the usb stick and rebooted and they are still there. Great :)
 

Attachments

  • Asus-RT-AC86U Samba.png
    Asus-RT-AC86U Samba.png
    52.2 KB · Views: 19

Sign Up For SNBForums Daily Digest

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