Flash DD-WRT firmware after turning off USB

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Tue Feb 13, 2024 8:23    Post subject: Reply with quote
Alozaros wrote:
correct way to unmount...prior flash...

# Stop all init scripts in /opt/etc/init.d including symlinks
/opt/etc/init.d/rc.unslung stop

# "Stop mDNS & SAMBA service before unmounting USB thumbdrive & filesystem checks!"
service mdns stop
service samba3 stop

# Unmount thumb-drive partitions jffs and optware
umount /jffs
umount /opt

with last command you can go to extreme and unmount with magic number command..

echo u > /proc/sysrq-trigger

you can download your update files at /tmp so those will not be affected by the unmount...

for the record i used to download my files to /opt and than flash with no unmount...than delete the files from /opt ..i know it was a dirty game but it was ok...


I just saved this precious information of yours, thanks!
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Wed Feb 14, 2024 11:33    Post subject: Reply with quote
Alozaros wrote:
correct way to unmount...prior flash...

# Stop all init scripts in /opt/etc/init.d including symlinks
/opt/etc/init.d/rc.unslung stop

# "Stop mDNS & SAMBA service before unmounting USB thumbdrive & filesystem checks!"
service mdns stop
service samba3 stop

# Unmount thumb-drive partitions jffs and optware
umount /jffs
umount /opt
...

In case someone is interested: I flashed direclty from /opt (USB) using shell commands not WEBUI. Didn't stop those services as well. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Wed Feb 14, 2024 12:09    Post subject: Reply with quote
mwchang wrote:
In case someone is interested: I flashed direclty from /opt (USB) using shell commands not WEBUI. Didn't stop those services as well. Smile


I used to do that for ages...Razz Razz now dont give a shit as far as there is a location where you can have your flash file you can flash from anywhere... ggl drive, SCP, TFTP, serial...Razz Razz what's the point???

_________________
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
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Feb 16, 2024 4:46    Post subject: Reply with quote
Alozaros wrote:
I used to do that for ages...Razz Razz now dont give a shit as far as there is a location where you can have your flash file you can flash from anywhere... ggl drive, SCP, TFTP, serial...Razz Razz what's the point???

So why was there a need to turn off USB and services before flashing DD-WRT? What routers were involved?

This is just an interesting piece of DD-WRT's history. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
D.F.Cruizer
DD-WRT User


Joined: 14 May 2023
Posts: 95

PostPosted: Fri Feb 16, 2024 20:06    Post subject: Reply with quote
(From a different angle).

My own experience is that a directly-connected USB key (to a router on Stock Firmware or DDWRT) provides an easy and quick access to simple file storage/retrieval.

But for 'heavy' uses such as streaming rich media contents including robust file indexing, from the directly connected USB device that has NO self CPU-processing power but using the router's, its functions as a routing device will suffer. Especially, if the router already houses multiple separate networks with many devices and encrypts/decrypts traffic on its own VPN connections (Client and Server modes).
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum