Rebooting a linux server correctly to avoid fsck

Tiffany Walker asked:

Is there a correct way to reboot a server to avoid FSCK and just avoid getting FSCK in general? I have been using the reboot command to reboot servers.

My answer:

The reboot command may reboot the system without shutting down system services or unmounting filesystems cleanly. It’s supposed to shutdown the system normally, but apparently this doesn’t always happen.

To avoid this problem, use the shutdown command with the appropriate options to have it reboot the system.

An example:

shutdown -r now

So long as the system shuts down cleanly, it will not normally attempt to fsck the drives on next restart (unless the filesystem mount/time count is exceeded, but that’s another story).

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.