The kernel cannot be shut down when the hard disk fails.

Source: Internet
Author: User
Tags echo b

The kernel cannot be shut down when the hard disk fails. If the hard disk may be locked or has a bad track fault, it may cause shell command failure, including reboot, powoff, shutdown. Normal commands cannot be used to restart the disk.
Symptoms: # Reboot
Bash:/sbin/reboot: Input/Output Error
# Shurdown-R now
Bash:/sbin/shutdown: Input/Output Error Obviously, the kernel cannot read the binary Program/sbin/reboot and/sbin/shutdown from the disk because of the hard disk failure, so the command fails. The system automatically fsck may correct the disk error at the next startup, but the system must be restarted first. Removing the power may cause damage to the hard disk. The kernel can be restarted directly without reading (locked or broken) hard disks, as shown below, 1. Execute: Echo 1>/proc/sys/kernel/sysrq "Magic sysrq key" provides a method to directly send commands to the kernel through/proc. To enable this feature, you only need to enable the "config_magic_sysrq" option during kernel compilation. The standard kernel of the general release version has been enabled. Activate this option 2. You only need to execute Echo B>/proc/sysrq-trigger The device restarts immediately.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.