Skip to content

Instantly share code, notes, and snippets.

@sshilko
Created August 9, 2019 14:06
Show Gist options
  • Save sshilko/3c88b5c0564e1db7f88daf33c23b9f17 to your computer and use it in GitHub Desktop.
Save sshilko/3c88b5c0564e1db7f88daf33c23b9f17 to your computer and use it in GitHub Desktop.
Intel SSD 8mb bug Fix

Intel SSD 8mb bug Fix

How To Fix Intel SSD 8MB bug Using Linux Terminal

Persian Article is Available On Academia.edu

Also You Can Read This Article In My Blog sirvan.me

Requirements:

  • Linux Terminal or Mini Linux in Hiren’s Boot CD / USB Tools
  • Physical access to your SSD

Get started:

1- Open Terminal and Enter the following command to get a list of all available harddrives in your computer:

 fdisk –l

Locate your Intel SSD in the list and take a note of the device name, for example /dev/sda

 

2- For get Drives Information Type the command:

 sudo hdparm -I /dev/sda

where sda is your SSD device. If you see the following in the output: Serial Number: BAD_CTX that confirms that you are hit by this bug.

If at the Security section it reads frozen you CANNOT continue, you have to use a workaround to eliminate the freeze before you can continue:

So Unplug and then replug the SATA data cable of your Intel SSD while the system is still powered on. So, leave your computer powered on, open up your case, locate the SATA data cable of your Intel SSD, unplug it and then replug it. This should unfreeze your SSD.

3- Check Again Drives Information using This command:

 sudo hdparm -I /dev/sda

4- For Set a Password Type the command:

  sudo hdparm --user-master u --security-set-pass Password /dev/sda


Again /dev/sda is your SSD drive, and Password is a password you want to set for the SSD.We will need that SOMEPASS later on, so remember it/write it down.

  1. Check the drive again:
 sudo hdparm -I /dev/sda

Now it should say enabled and not frozen at the security section:Security: Master password revision code = 65534 supported enabled not locked not frozen not expired: security count supported: enhanced erase

6- For secure erase Type The command:

 sudo hdparm --user-master u --security-erase Password /dev/sda

This issues the secure erase command. Again /dev/sda is your SSD, Password is the password set before. The completion of this operation can take a few minutes. After this your SSD should be functional, if not, try again with this command:

 sudo hdparm –user-master u –security-erase-enhanced Password /dev/sda


This latter command takes much more time (30-40 minutes).

7- After this check the drive again:

 sudo hdparm -I /dev/sda

The BAD_CTX thing should be gone and your drive should be functional

You can now reinstall your O/S. After all this don’t forget to update the firmware of the SSD using Intel SSD Toolbox to prevent the bug from happening again in the future.

OK, Done. Good Luck :)

Website : Visit
Twitter : @S1rv4n
Bitcoin address for donations: : 1NjTdkh6zB3iGG9REAakXxB71cjzRhkNAq
@lkddan25
Copy link

man, I really appreciate you for posting this to us. just fixed my intel using this method works great just make sure you get the commands right or just copy and paste them it'll be easier.

Big Thanks To You

@Nourstar
Copy link

Problem Fixed with This tutorial but Data Gone without anyway to Recovery it
thanks

@adek0716
Copy link

adek0716 commented Dec 17, 2024

This is a great apport and works perfectly tky sshilko. Im just like to add to this post if u can not revive try unolugin the energy SATA conector not the data connector in the step 2 and it works perfectly, and when finish all the steps needed to unplug SATA energy again/connect again and verify the disk with the totally space and info it gonna be correct.
After update the firmware for solve the problem in the future.

I got this issue after energy fail at my home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment