Bekijk de volledige versie : Looses all information, when unplugged
KingGuru
14-09-2007, 12:33
Well. I have an annoying little problem.
not every time the I take the power from the router, but sometimes (can't seem to find a system in this) every bit of information that I have typed in is gone.
so I have to start with installing dropbear, and then from that install everything over again.. :mad: :mad: this is really annoying.
so.. anyone have any idea why this would happen ?
and is there any way to save an Image of all installed on the router, so I won't have to manually install everything over again..
KingGuru
Hi,
when you've 'typed something' or updated info on the asus, do you flash that info to the flash memory?
If you don't do this, the updated things stay only alive while running, after a reboot everything is gone.
you can flash the information to the flash memory with the following command.. (beware, this also reboots your router)(
flashfs save && flashfs commit && flashfs enable && reboot
KingGuru
14-09-2007, 14:10
nope..
I do run the flash save..
and I can reboot with out problems.. it's when I take the power away the problems shows.. I used to take the power during night, when I didn't have a dl in queue, or any particular reason for having power computer region in the home.
to switch off power gracefully use halt
is there any way to save an Image of all installed on the router, so I won't have to manually install everything over again..
flashfs save creates /tmp/flashfs.tgz file which contains the content of the flashfs.
In the web interface there is also option to save content of the flashfs
KingGuru
03-10-2007, 20:17
hmm.. there is no tgz file..
so I guess I have to start over every time
type in this command:
flashfs save && flashfs commit && flashfs enable
And if you want to have a "halt" button you can make a script for the EZ button!
Just make a file here: /usr/local/sbin/ez-setup with content:
#!/bin/sh
/sbin/halt
Then chmod +x /usr/local/sbin/ez-setup
then dont forget the cmds:
flashfs save && flashfs commit && flashfs enable
And if you now press the EZ Button (between power adapter cable and the 2 usb slots) for 3 seconds the cmd should be invoked and your router shuts down safetly ;)
OT: I made there a script for invoking sispmctl to enable the computers power socket ;) I have put the power cable in a usb controlled power management device. And so i turn on/off the power for my computer by pushing this button on the router ;) (the button could be bigger :D)
KingGuru
04-10-2007, 10:33
Well..
flashfs save && flashfs commit && flashfs enable will save the current flash in a file, commmit it to the router and enable it.
it's hard to set up a router without that command.
the thing is that the router might work.. for a month.. on and off, no problems.. then one of the times that I unplug it, all settings are gone.
(even the flashfs.tgz, apperently). so I have to start up with setting up ssh, ect ect to get it running again.
but why it does this trick, I have no idea. maybe a defect in my router, though I can't imagine what that would be.
gumtrolium
05-10-2007, 17:54
Sometimes when I reboot or shutdown the wl-500gp. Data gone.
I have a problem while flashing my wl-500gp first time, it didn't automatically reboot itself.
After I waiting for a night (about 4-5 hours), I manually unplug and replug the power.
It work like normal, but sometimes will lost all data.