📜 ⬆️ ⬇️

About NONAME power supplies, or a brief excursion into Western Digital's drive information management information

We continue the cycle of publications about the disks of one of the few remaining manufacturers of HDD - Western Digital and their problems. Today on the operating table WD5000AAKS-00S9B0, the family of Dragon Fly III.



According to the client, from the previous administrator he got a fleet of workstations with poor-quality noname-power supplies Made In China, cases of failure of disks for this reason have already been, but previous drives, by contrast, did not contain important data.
')
As usual - “only yesterday the disk worked properly”, and today it has become defined in the BIOS as WDC-ROM MODEL-DF3-PL2K, and with a capacity of 232Gb.

Having received the hard drive on the diagnosis, first of all, they checked the electronics board for possible damages (http://habrahabr.ru/company/hardmaster/blog/251263/) and fed the power to the disk. The request get ID in the field of the passport “highlighted” the factory alias. Here it is necessary to make a small digression and tell what the usual reason for this behavior of WD Royl drives.

In cases where the disk, with complex initialization, cannot read the Service Information modules critical for a normal start (Service Area), the drive goes to the so-called Kernel Mode, giving only the family code from the ROM, and passport data (which In fact, they are in SA) - they give themselves to such a “fish”. Or not given at all.



It seems that everything is clear - problems with reading SA, it's time to look for a broken head. But the specified disk, giving such a passport, was NOT in Kernel Mode. At a minimum, the program code (overlays) are read and loaded into RAM. This is already interesting. If the initialization has gone, then the modules in the service area are read in principle. And the reason for the return of such a "crooked" passport must be sought somewhere else.

Here it is necessary to make one more digression and to tell a little about the structure of proprietary information “Westerns”.

In order for the disk to work with service information modules, it needs to know where, in which sectors, these modules are located. The very first module SA, which is located at the offset specified in the ROM, is called id00 DIR, to describe their coordinates.

The passport of the disk and its main operating parameters are described in the module next door - this is id02 - Drive Configuration.

On this, with theoretical considerations, we’ll finish, and since we (at least) have problems with the disk passport, we’ll see what the patient’s id02 contents are:



Obviously, no passport data here and close there. How so? And where did the original id02 go? There are a lot of questions.

The next step was to check the presence in the disk of all necessary overlays needed for ATA work, and we launched a special procedure that scans SA, and by signatures, finds modules in it.



And even DIR was found. Suppose that the found is somewhat not what the disc gives us in the normal mode. We configure the utility based on the DIR found and try to access the SA using it.



This is the answer to the question “where did the original id02 go?”. He has not gone anywhere and is in his place. But its coordinate in the DIR is corrupted.

Just in case, we reserve all found modules, and also completely all SA with a single dump. We try to write id02 in the place specified in the DIR, distort the power, the disk is correctly initialized and ready to remove data from it in the normal mode:



What happened, you ask?

During operation, the disk periodically updates some modules. These are SMART, defect lists, etc. Most likely, at the time of the next update of one of these modules, there was a power release due to the poor quality of the applied power supply, and the recording did not occur in the desired module, but in the DIR, “successfully” spoiling the id02 coordinate in it. While the contents of id02 were in the RAM of the disk, everything worked fine, and after the restart on nutrition, there was a complete seam.

For an engineer with sufficient knowledge of the internal structure of Western Digital disks, this is not a very difficult job. In this case, we had to spend about half an hour, from the time the disk was taken into operation, until access to the “glade” (user data) was obtained. But, in modern conditions of total economy on everything that is possible, the consequences are often much more sad. Here are burned-out boards and outgoing BMG switches in the containment area. The data is usually recovered, but it is rather disappointing to realize that the $ 20 savings that were once saved now led to a loss of money, about 50 times higher.

Source: https://habr.com/ru/post/258077/


All Articles