I run an Ubuntu system, and it sometimes takes a while to shut down. Apparently, GNU/Linux attempts to, in a nutshell, stop all running processes, flush the filesystem journal, and then cut off the power. My reasoning is that, when power is removed, all data kept in RAM is lost, and therefore the system does not need to manually kill the processes as they will die anyway. Would running sudo sync and then removing power be a safe (and significantly faster) alternative to a proper shutdown (shutdown -h now), or would it present a hardware/security danger?
|
|
|||
|
Doing
¹ Except possibly for RAID volumes: if a RAID volume needs to be verified, that can take hours — it's done in the background, so it isn't blocking, but it does cause a performance hit. |
|||
|
|
|
No, in general it would not be safe. The Imagine a GUI program which reads in a configuration file at start and writes the configuration file when the program quits. If you change a setting in the GUI a Another example is a torrent client. A You should usually give programs a chance to properly shut down. Having said this, there are cases in which it does not make a difference. However, the file system may still be marked as dirty if it's not been properly unmounted. Side note: |
||||
|
|

haltfrom a VT to see what's up. Ps. your idea is a bad one and will lead to filesystem corruption if you make it a habit. – goldilocks Dec 29 '12 at 23:11