|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
Quote:
So please folks, don't question my intelligence. |
|
#2
|
||||
|
||||
|
Re: Shutting Down a Robot-Mounted Pi
Quote:
This is not to question to you, or anyone's intelligence, just a point that currently I have 50,000+ copies of Linux online and running in various public and private clouds and datacenters. The smart thing to do is do a proper shutdown unless you know for a fact you've controlled the risk or have no better option. For example I used to take Dell OptiPlex systems I had as leftovers from upgrades and put Ubuntu on them. Mess with the disk settings to spin down the hard drives and spin them up only on demand or every 6 hours (which ever was first and then spin them back down in 5 minutes). I would increase the write cache large enough that casual writes would come back from memory. I would remove the swap so that would not qualify to spin up the hard drive. Most of the drives lasted beyond 8 years and those that did not were already questionable (had de-allocated bad sectors that weren't mapped at the factory). These systems were used for print server farms like a giant version of the HP JetDirect driving down the cost of the printers because we could print to CUPS raw queues from Windows happily. So again - there's plenty of simple ways shown here to accomplish this task from using a button and a script or SSH. Why run any risk you don't need to? Unlike other applications out there you really might take the chance you have an issue in the next match that hurts your competitive edge. Last edited by techhelpbb : 18-02-2016 at 10:28. |
|
#3
|
|||||
|
|||||
|
Re: Shutting Down a Robot-Mounted Pi
As long as you never write the SD card, then the SD card's wear leveling feature shouldn't try to move blocks around.
This requires: -Disabling swap entirely (it's generally a good idea to disable virtual memory entirely on real-time systems anyway) -Mount the SD card as read-only -Mount the temp directory onto a RAM disk There are some tutorials on the internet explaining this, there are a lot of nuances since a number of automatically installed packages will try to write to disk (including syslog and fake-hwclock among others). Once you take care of all of those, you can set the fstab to mount the partition as read only so no program can write to the disk. It's certainly possible for a carefully designed system to be turned off by pulling power. Virtually all embedded systems including the roboRIO operate in this way. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|