Poweroff , damages hardware?

5

So i've been using poweroff command to shutdown my computer at a specific hour.

Is it okay for the hardware to do this (e.g hard drives)? Or should I use other system call?

Fisher

Posted 2011-06-24T18:24:47.200

Reputation: 213

@Fisher the hardware itself doesn't care if the drives are mounted or not, so that's not an issue. Data on the drives may be corrupted, but the drive itself (hardware) will be fine. – None – 2014-11-19T09:24:47.610

1As I understand it, poweroff makes sure the drives are synced and so forth, so it should not cause hardware issues. However, it does not give software a chance to terminate cleanly - you should use shutdown for this. – user55325 – 2011-06-24T18:41:01.400

On most systems, poweroff and shutdown -h are exactly the same. Debian/Ubuntu is one of these systems. You have to call poweroff -f to skip the shutdown phase, according to the man page. – Flimzy – 2011-06-24T19:34:03.100

What about unmounting drives? Should i worry about that? – Fisher – 2011-06-24T20:47:57.063

Answers

3

poweroff is the proper way to do this. shutdown -h is exactly equivalent in Debian/Ubuntu (and most other systems).

Flimzy

Posted 2011-06-24T18:24:47.200

Reputation: 4 168