/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