/proc/sysrq-trigger】和【reboot】" type="hidden"/>

[Linux]重啟命令【echo "b" > /proc/sysrq-trigger】和【reboot】


The /sbin/reboot is a regular executable in the filesystem.
If your filesystem is hosed (e.g. filesystem driver hang, SATA hardware hang or disk firmware hang), the changes for successfully executing that executable are slim to none.
On the other hand, assuming that you have a root shell open already, echo b > /proc/sysrq-trigger does not need any filesystem access.
簡而言之,echo "b" > /proc/sysrq-trigger
可以確保環境在掛文件系統的時候重啟成功;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM