Hi,
I'm using a USB drive in my router for the first time, to take advantage of features such as Diversion and Skynet.
When rebooting the router (either via the router's GUI or power cycling), must the USB drive be removed for the reboot process?
Thanks,
Anton
+1Recommend that you add the disk check script in amtm
Thank you, and thanks to all for your comments and experience/advice.@AntonK, for simple rebooting of the router, no, do not remove the USB drive. While you can 'Safely Remove' it from the GUI, how will you know at what point to plug it back in while it is rebooting?
But! I have been successfully using a different method to update routers for a while now (you may have already seen it in my recent posts).
Instead of rebooting the router/network and waiting 5 to 10 minutes to flash a new firmware (which is almost required for a router that is running for more than a couple of days with scripts installed), I do the following.
It doesn't hurt to 'Safely Remove' the USB drive(s) and, leaving them plugged in, reboot the router.
- ssh into the router and fully update all scripts, including amtm and all non-amtm scripts such as unbound (currently) to their latest versions.
- In the GUI, safely remove all USB drives you have connected to the router. Be patient, this may take a minute or more depending on how many scripts are running and for how long the router has been 'up'.
- When the GUI comes back, I simply flash the latest firmware I want to use.
- After the router has rebooted and is idling/stable again (5 to 15 minutes, depending on the hardware/configuration), I ssh into the router and verify that the scripts are working properly and also check one last time for updates.
- At this point, I usually reboot the router (at around the 15 or 20-minute mark).
- Finally, after an additional hour has passed, I reboot the router once again and usually don't need to touch the router/network until the next upgrade.
I would be leary of physically removing the drives ('Safely' or not) though. Even though amtm has made inserting a USB drive effectively bullet-proof, I am not one to tempt fate.
Using the GUI to safely remove the drive(s) and flash the newest firmware is a great time saver. And (to flash the actual firmware), only one reboot needed afterward.
The additional reboots I perform are for increased stability of the network. I have seen the router 'busy' configuring itself up to an hour afterward. I don't want to have to go back to a customer site just to reboot their network.
Not the ones I code. The amtm disk-check and Diversion (and with it Entware) start when the disk is mounted, irrespective of the procedure that ran before that - like a reboot.Seems like removing it would interfere with installed 3rd party packages that load during the reboot and need to to access it. Kinda counter-productive.
@AntonK, for simple rebooting of the router, no, do not remove the USB drive. While you can 'Safely Remove' it from the GUI, how will you know at what point to plug it back in while it is rebooting?
But! I have been successfully using a different method to update routers for a while now (you may have already seen it in my recent posts).
Instead of rebooting the router/network and waiting 5 to 10 minutes to flash a new firmware (which is almost required for a router that is running for more than a couple of days with scripts installed), I do the following.
It doesn't hurt to 'Safely Remove' the USB drive(s) and, leaving them plugged in, reboot the router.
- ssh into the router and fully update all scripts, including amtm and all non-amtm scripts such as unbound (currently) to their latest versions.
- In the GUI, safely remove all USB drives you have connected to the router. Be patient, this may take a minute or more depending on how many scripts are running and for how long the router has been 'up'.
- When the GUI comes back, I simply flash the latest firmware I want to use.
- After the router has rebooted and is idling/stable again (5 to 15 minutes, depending on the hardware/configuration), I ssh into the router and verify that the scripts are working properly and also check one last time for updates.
- At this point, I usually reboot the router (at around the 15 or 20-minute mark).
- Finally, after an additional hour has passed, I reboot the router once again and usually don't need to touch the router/network until the next upgrade.
I would be leary of physically removing the drives ('Safely' or not) though. Even though amtm has made inserting a USB drive effectively bullet-proof, I am not one to tempt fate.
Using the GUI to safely remove the drive(s) and flash the newest firmware is a great time saver. And (to flash the actual firmware), only one reboot needed afterward.
The additional reboots I perform are for increased stability of the network. I have seen the router 'busy' configuring itself up to an hour afterward. I don't want to have to go back to a customer site just to reboot their network.
@AntonK, for simple rebooting of the router, no, do not remove the USB drive. While you can 'Safely Remove' it from the GUI, how will you know at what point to plug it back in while it is rebooting?
But! I have been successfully using a different method to update routers for a while now (you may have already seen it in my recent posts).
Instead of rebooting the router/network and waiting 5 to 10 minutes to flash a new firmware (which is almost required for a router that is running for more than a couple of days with scripts installed), I do the following.
It doesn't hurt to 'Safely Remove' the USB drive(s) and, leaving them plugged in, reboot the router.
- ssh into the router and fully update all scripts, including amtm and all non-amtm scripts such as unbound (currently) to their latest versions.
- In the GUI, safely remove all USB drives you have connected to the router. Be patient, this may take a minute or more depending on how many scripts are running and for how long the router has been 'up'.
- When the GUI comes back, I simply flash the latest firmware I want to use.
- After the router has rebooted and is idling/stable again (5 to 15 minutes, depending on the hardware/configuration), I ssh into the router and verify that the scripts are working properly and also check one last time for updates.
- At this point, I usually reboot the router (at around the 15 or 20-minute mark).
- Finally, after an additional hour has passed, I reboot the router once again and usually don't need to touch the router/network until the next upgrade.
I would be leary of physically removing the drives ('Safely' or not) though. Even though amtm has made inserting a USB drive effectively bullet-proof, I am not one to tempt fate.
Using the GUI to safely remove the drive(s) and flash the newest firmware is a great time saver. And (to flash the actual firmware), only one reboot needed afterward.
The additional reboots I perform are for increased stability of the network. I have seen the router 'busy' configuring itself up to an hour afterward. I don't want to have to go back to a customer site just to reboot their network.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!