私は苦労して学んだ
sudo reboot
間違ったタイミングで実行すると、ハードディスクにヘッドがぶつかる原因になります。
暗号化された LUKS で実行されている Ubuntu を再起動する唯一の安全な方法は、認識しているプロセスを手動で「killall」することですか? この場合、''' sudo safe-reboot''' コマンドはありますか?
答え1
はい、あります/sbin/shutdown
。 を読んでman shutdown
、再起動または停止に使用できます。 を参照してくださいman shutdown
。そこには次のように書かれています。
trusty (8) shutdown.8.gz
Provided by: upstart_1.12.1-0ubuntu4_i386 bug
NAME
shutdown - bring the system down
SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE]
DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All
logged-in users are notified that the system is going down and, within
the last five minutes of TIME, new logins are prevented.