12312312
  • HK STES TECHNOLOGY CO., LIMITED
  • amazon
  • newegg
  • HK STES TECHNOLOGY CO., LIMITED
  • HK STES TECHNOLOGY CO., LIMITED
Back Home Support Faq

SATA protocol, how to upgrade hard disk firmware using hdparm: detailed tutorial

This article provides a detailed guide on upgrading hard drive firmware using the hdparm tool. It includes an overview of the tool's features, step-by-step instructions, necessary precautions, and answers to common questions to help users achieve a smooth firmware update.

1. System Requirements

1. Operating System: Linux OS
2. If your hard drive is in the following modes:
(Upgrade restricted, CPU > RAID Card {RAID Mode} > HDD/SSD)
(Upgrade restricted, CPU > South Bridge {SATA Controller} (*in BIOS / RAID Mode) > HDD/SSD)
3. Please switch to the following modes:
(Upgrade unrestricted: CPU > RAID Card {JBOD Mode} > HDD/SSD)
(Upgrade unrestricted: CPU > South Bridge {SATA Controller} (*in BIOS / AHCI Mode) > HDD/SSD)
4. Linux OS Tool Version: The version of hdparm must support firmware updates, requiring version 9.60 or higher.

Linux OS Quick Installation Commands

Commands to install hdparm on different Linux distributions:

Ubuntu/Debian:
sudo apt-get install hdparm
CentOS/RHEL:
sudo yum install hdparm
Fedora:
sudo dnf install hdparm
Arch Linux:
sudo pacman -S hdparm

If the current version of hdparm does not support firmware updates, you can manually download the latest version:

Official Download: hdparm

2. Preparation Before Upgrade

1. Hard Drive Connection and Recognition
Ensure that the hard drive is correctly connected to the Linux system and is recognized properly. You can use the lsblk or fdisk -l commands to confirm whether the hard drive is recognized by the system.

2. Upload Firmware File
Upload the target firmware version's ***.bin file to your Linux system. It is recommended to store it in the /root directory for easy access.

3. Confirm Hard Drive Device Name
Use the lsblk or fdisk -l command to get the device name of the hard drive (such as /dev/sda, /dev/nvme0n1), which will be used in the upgrade command.

3. Firmware Upgrade Steps

1. Execute Upgrade Command

Execute the following command in the terminal, replacing with the path to your uploaded firmware file and with the name of your hard drive:

hdparm --yes-i-know-what-i-am-doing --please-destroy-my-drive --fwdownload  

For example:

hdparm --yes-i-know-what-i-am-doing --please-destroy-my-drive --fwdownload /root/firmware.bin /dev/sda

If the firmware upgrade is successful, a message confirming the success will be displayed.

2. Restart the Hard Drive / linux OS

reboot

After a successful firmware upgrade, you need to perform a power cycle on the hard drive. You can disconnect and reconnect the hard drive, or restart the system. After restarting, check the hard drive status again to ensure the firmware upgrade has been applied correctly.

4. Conclusion

By following the steps above, you can successfully upgrade the hard drive firmware in a Linux environment using the hdparm tool. This process carries some risk, so make sure to back up important data before performing the upgrade.

This tutorial does not cover other common operations with the hdparm tool, such as checking hard drive information or running time. For more information, you can refer to the relevant documentation or other resources.

Wechat