What's new

How to change smb.conf

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

dumaz

New Around Here
I need to add a line to smb.conf whihc is in tmpfs

THe guide says to add config to /jffs/configs after allowing it from "administration/system/jffs".

However, there is no such place in the interface...
 
If you mean this guide:
https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files
Then you missed the part where you have to create a file on the router to add your samba parameter(s).

Do this:
- have jffs enabled (you did that already in the router WebUI)
- have ssh or telnet access to your router enabled
- log in using either of the two
- create the file /jffs/configs/smb.conf.add
- add the parameters to smb.conf.add
- reboot router
Done
 
I would like to do that. However, there is no such option in the menu as specified by that page. There is no "enable jff" in the menu Admin - system. This is the latest firmware that I am using. However, there is a /jff mount that is not a tmpfs and I was able to place my own smb.conf in the path specified by that page. However, it did not change the file that was created at boot to /etc/smb.conf (which is a symlink to the tmpfs partition metioned above).
 
I would like to do that. However, there is no such option in the menu as specified by that page. There is no "enable jff" in the menu Admin - system. This is the latest firmware that I am using. However, there is a /jff mount that is not a tmpfs and I was able to place my own smb.conf in the path specified by that page. However, it did not change the file that was created at boot to /etc/smb.conf (which is a symlink to the tmpfs partition metioned above).

JFFS can no longer be disabled since it's used by the firmware itself. You must however make sure to enable the option for custom scripts/configs, under Administration -> System.

Check your system log after rebooting, there should be an entry mentioning if your custom file has been found by the firmware, otherwise double check the filename and location.
 
Thank you for your reply. However, there is no such option under Administration -> System
.
Merlin.png


And there are no log entries of the kind you mention.
 
Last edited:
Are you using Merlin's firmware? If so, what version?


I thought so, but apparently it says

3.0.0.4.380_4005-ge00c831

which then isn't? Damn.

SO if this is the ASUS standard, then does that mean that the standard firmware does not allow for any changing of the configs whatsoever????
 
I thought so, but apparently it says

3.0.0.4.380_4005-ge00c831

which then isn't? Damn.

SO if this is the ASUS standard, then does that mean that the standard firmware does not allow for any changing of the configs whatsoever????
That and other reasons is why asuswrt-merlin exists.
It's an easy upgrade to the better version.
 
I just did. I want to apologize for the confusion that I caused thinking that I already was running it on this router.
 
I need to add a line to smb.conf whihc is in tmpfs

THe guide says to add config to /jffs/configs after allowing it from "administration/system/jffs".

However, there is no such place in the interface...

Which guide are you referring to? Would you please post link?

I need to modify the smb.conf as well.
 
Anyone know if the smb.conf file get reset at each reboot? I think it does. I made some changes and they did not persist after a reboot.
 
If you mean this guide:
https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files
Then you missed the part where you have to create a file on the router to add your samba parameter(s).

Do this:
- have jffs enabled (you did that already in the router WebUI)
- have ssh or telnet access to your router enabled
- log in using either of the two
- create the file /jffs/configs/smb.conf.add
- add the parameters to smb.conf.add
- reboot router
Done


I am trying to modify some options in the smb.conf to improve the samba throughput. Instructions from this site.

but
Code:
 socket options = TCP_NODELAY IPTOS_LOWDELAY
is already in the smb.conf. I just need to modify to this

Code:
 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

Any instructions on how to add only this? Also any other inputs to improve samba throughput are appreciated.
 
Also any other inputs to improve samba throughput are appreciated.

Modifying send and receive buffers will actually significantly lower performance. You can read up on some benchmarks with various options and results here
 
Modifying send and receive buffers will actually significantly lower performance. You can read up on some benchmarks with various options and results here


Thanks for the input. I read through the other thread. I guess since I have no buffer sizes specified, I should be already at best performance! Sigh. I am getting only about 22MB Write and 27 MB Read on a RT-AC1900P using a USB 3.0 connected SSD.

Client side is Windows 10 with a USB-AC68 wireless adapter sitting about 25 ft with no walls in between. I don't have a way to test wired.

Is this even worth trying? Anyone tried this: AC86U SMB Tweaking
 
Last edited:

Similar 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