Quote Originally Posted by back2basic View Post
I did some testing and left my router off for a day.
It turns out that even when it is running on a usb stick it doesn't boot off the stick but instead it boots failsafe(ready light doesn't start blinking but instead it goes off after 20 sec or so.)
after some checking i found out that the nvram boot_dev was nothing ( So nvram is resetted when our box has no power. strange there is a batery onboard of our monster ????)
so I set it again(gave my network a static ip 192.168.1.1 and telnet):
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
and rebooted the router , now it boots on usb

Now here's a solution to the problem but it's a bit risky
on a working router I created myself a script called S99reboot in my samba share with this content:

Code:
#!/bin/sh
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
sleep1
reboot
copied that to my pc and removed it from the router after that boot failsafe.
nvram unset boot_dev
nvram commit
reboot

telnet to the router again and copy the scipt created into /etc/rc.d
http://www.putty.nl/download.html I used PSCP to copy

then chmod +x /etc/rc.d/S99reboot

and than run the scrip
Code:
:(:(the dirty thing is when the usb fails it keeps rebooting:(:(
I need to find a other way somehow to solve this problem


stange that youre samba didn't worked the first time did you did a chmod 777 /hdd
Hello,
how did you exactly managed to copy init script into /etc/rc.d/ ? I tried pscp, but I was not able to find any way how to upload file after booting into failsafe.

Does anyone have different solution for this problem ?

Thanks.