Solve the Problem of Hard Disk voice when the hard disk is shut down in Fedora and Ubuntu

Source: Internet
Author: User
In Linux, when the power is shut down or sleep, the hard disk emits a beep when the power is cut off, just as the hard disk sound when the power is suddenly cut off in Windows exists in both Fedora and Ubuntu, there is no problem in Windows, so it is basically the reason for the Linux system itself. As a result, the hard disk power management is abnormal and it seems that this will seriously scratch the hard disk. The hard disk is still relatively expensive and it is better to suffer less. refer to other people's solutions to solve the problem: 1. Create a file "/et

Shut down or sleep in Linux. When the power supply is cut off, the hard disk emits a crash, just like the hard disk sound in Windows when a sudden power failure occurs.

It exists in both Fedora and Ubuntu, but there is no problem in Windows, so it is basically the reason for the Linux system itself, resulting in abnormal hard disk Power Management

It seems that this will seriously scratch the hard disk, the hard disk is still relatively expensive, less suffering as well.

Refer to other people's solutions to solve the problem:

1, new file "/etc/rc0.d/S00hdd-shutdown-workaround" content is:

#! /Bin/sh

Echo 1>/sys/class/scsi_disk/0 \: 0 \: 0 \: 0/stop_on_shutdown

Note: "/sys/class/scsi_disk" may contain directories similar to "0 \: 0 \: 0 \: 0, view your "/sys/class/scsi_disk/a \: B \: c \: d/device/model" file, determine which one corresponds to your hard disk (usually 0 \: 0 \: 0 \: 0 ).

2, chmod + x S00hdd-shutdown-workaround

The abnormal shutdown response has been fixed.

3. cp the file to "/ect/init. d/hdd-shutdown-workaround"

4. Establish a connection

# Ln-s/etc/init. d/hdd-shutdown-workaround/etc/rcS. d/S99hdd-shutdown-workaround

Of course, you need to first su get # permission

In this case, the hard disk power is shut down and sleep.

5. Complete.

Related Article

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.