Using a flash drive to save log files

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mchaley
DD-WRT User


Joined: 19 Feb 2008
Posts: 121

PostPosted: Sun Feb 07, 2016 16:31    Post subject: Using a flash drive to save log files Reply with quote
I'm having an issue with wifi going down and the router rebooting. I've got a 512mb flash drive formatted to FAT32 and I'd like to be able to save the log file to it so I don't lose it when the router reboots. Ideally I'm hoping that'll help narrow down what the issue is so I can fix it.

I'm just not sure how to set this up.

/dev/sda1 mounted to /tmp/mnt/sda1
Sponsor
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Tue Feb 23, 2016 15:00    Post subject: Reply with quote
I'd say LN the current log location to the mounted USB stick. Did not test it, so it's on your own risk.

Code:
mkdir /tmp/mnt/sda1/log
ln -s  /tmp/mnt/sda1/log <current log directory>


You might need to sudo the commands.

_________________
Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429
IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi

Found a bug, report it so the it can be fixed: http://svn.dd-wrt.com/
Display posts from previous:    Page 1 of 1
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