Add a USB Memory stick with a volume named "jffs". Much better than wear out the Flash Memory.
Hey, yeah, I'm aware of that, I think we've spoke about it a few months ago when I posted some guide about using the JFFS for the SmartDNS config
Anyways, any tips about the small size? _________________ 1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Sat Apr 30, 2022 21:49 Post subject:
Could be a bootloader limitation to the flash layout. Might want to find the R7800 thread(s) in the references sticky and read all 200 some-odd pages of that death trap. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Sat Apr 30, 2022 22:38 Post subject:
yep R7800 and R7000 are different routers from different vendors and have different mtd layout/partitions...all normal... and nobody uses the flash jffs not good idea... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Add a USB Memory stick with a volume named "jffs". Much better than wear out the Flash Memory.
Alozaros wrote:
nobody uses the flash jffs not good idea...
I get all the risks of using the JFFS however... USB storage fails to work properly half of the time.
Correct me if I'm wrong:
From the all the reports I read here and my personal experience I can conclude that there are zero guarantees that a USB hard drive is mounted at the right time so services like Smartdns can use it to read config files at boot. What usually happens is that the hard drive mount gets delayed or fails and then the service starts with a built-in or generic config that may have other implications.
I get that the timing of startup related stuff is hard to get right but for static config files the internal JFFS is a sure way to avoid problems.
With that said 25M are more than enough to store simple configuration files, my question is more about why in this specific router I only get that and how likely it is someone with another firmware (or manually) did something that they shouldn't have done / how to reverse it.
Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Sun May 01, 2022 11:09 Post subject:
cat /usr/bin/is-mounted
Code:
# Wait until directory is mounted and writable
# Usage: is-mounted path-of-directory max-wait-time
# default is /jffs 35
# Can also be used to test drive readiness e.g.:
# if is-mounted /jffs 5; then echo "drive ready"; else echo "drive not ready"; fi
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Sun May 01, 2022 11:29 Post subject:
yep is-mounted /jffs works as intended...as well, to avoid troubles with jffs, you can use /opt instead...
In addition to what egc suggested...instead of is-mounted /jffs, you can save your commands in save to USB, and those will come executed after USB is up and running...
To fiddle with timings/scripts executions, in order to delay script execution or delay execution of certain commands, you can add sleep 5 or 10 or any period of seconds to the top of any script locations...
for example some routers have faster CPU and boot time, so sometimes fiddling with timing is needed on some slower routers....
At the end of the day, still not good idea to use internal jffs...
either stick to egc advise or save script to USB...
as well in order to shutdown correctly
you'd need a shutdown script too, for example as im running things from /opt, i would like to stop those before router is down/rebooted...(just for the record i used to use SmartDNS form /opt) now im using Stubby...
sleep 10
/opt/etc/init.d/rc.unslung stop _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Guys thank you for the feedback. I'll try the is-mounted script in this router to see how it goes long term.
Particularly speaking about SmartDNS, why can't we "have nice things" and have an "Additional SmartDNS Options" textarea to save its config to NVRAM? Example:
Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Sun May 01, 2022 18:37 Post subject:
The problem is not making it it is about 20 minutes work.
I just added a setting to Force redirect DNS over TLS (DoT) to redirect a DoT query to the router (see picture and this is not a mock up but it is working )
The problem is that it adds extra code and takes up extra nvram.
As it also has to fit into very low specced routers we do have to be careful with what we add.
That said as SmartDNS is configurable I will see what I can do
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Sun May 01, 2022 21:43 Post subject:
yep egc this will be a very cool option to have it, as SmartDNS offers a tons of useful other than just DoT and Doh settings...although to me, setting it up via config file, its not a proble (as long as its working its fine)...the only thing is SmartDNS must be 100% working a hassle free and in conjunction with DNSmasq...(as i had some odd behaviour with it and went back to good old Stubby, it never fails)...
p.s. there you go....we have it on the current build 48786
4:48 PM Changeset [48784] by brainslayer
update by egc for extended optiond with smartdns
4:47 PM Changeset [48783] by brainslayer
update by egc for extended optiond with smartdns
Thanks egc _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913