Na osnovu predloga nekih korisnika skinuo sam program hddl.exe.
Ovo je grub prevod readme fajla sa ruskog na engleski, pronašao sam ga na nekom forumu link stavljam čim ga pronađem
Code:Here is a rough translation of the readme file included in the hddl download mentioned above.
Especially useful is the descriptions of the menu's. [/quote]
[quote]
Program HDDL is intended for a study, diagnostics and the repair of storages on the hard magnetic disks with
IDE- interface (further called customary word "screw"). Program is written in accordance with standard Ata-6 and does not
include a number of possibilities, accepted in this standard by those become obsolete - for example, the work
with the screw in LccHS- addressing.
Program allows:
- to carry out the search for the residue and dolgochitayushchikhsya units on the disk, i, in certain cases, the restorationthe replacement of such units.
- to construct the timetable of the verification of the sectors of disk in LBA- mode, which makes it possible to visually estimate the quality of the surface of disk.
- to change the configurative setups of screw - mode of operation of kesha, limit LBA, the level of noise and t.d.
- to govern the password protection of the screw
- to load into the screw the external micro-code, for example, for the renovation of microprogram.
- to examine attributes SMART, the periodicals of errors and tests, and to also start SMART- diagnostics.
- to examine and to edit contents of the sectors of the disk
- to work with IDE- registers of screw - to send instructions, to read results, to be exchanged with the screw the units of data and t.d.
The latter possibility is intended, in essence, for the researchers and the experimenters, since in this mode it is possible to work, also, with the
supers-command of screws (besides quantum). Remaining possibilities are calculated for the wide circle of users
and, in particular, on those, who actively uses for diagnostics of screws utility HDDSpeed, since this program works in LBA- mode directly with the ports of screw
and does not have limitations in 8 Gb. It would be possible to name this program Hddspeed-4 but name hddspeed
narrower reserved by one sheriff of Sherwood,
true, reserved completely without the benefit.
Program works on any IBM- compatible computer with processor i386 and
it is above. Program can work as in the clean pill box,
so in its emulators of different operating systems. Single
limitation - the function of graphing of verification cannot be
neglected under Windows. Furthermore, the program is necessary of shchy2K of extended storage (XMS) for
positioning the buffer of exchange with the disk. If XMS is inaccessible,
that the operations of the exchange with the disk of the units of data
will be inaccessible.
With the work on by the systems of class M$ Windows 9x, it is necessary with the aid of the control panel to open controller, to which is connected the screw being investigated. Otherwise the system will not give direct access to program to IDE-
ports of screw. In system OS/2 it is necessary, in order to in file CONFIG.SYS
there was line IOPL=.YES, which permits access DOS- programs to the apparatus ports of system.
Program is thus far even damp and is glyuchnaya, i, apparently, it contains the mass of errors.
Subsequently to the same ftp://195.209.232.10 will be laid out the
following versions of program. Do not forget to sometimes glance there.
2. Kopirayty, the limitation of itd.
Since no one reads these thing, let us pass them and will go further.
3. Starting of program.
Command line takes the form:
> HDDL x ini
x - one of the letters:
f - screw will hang on Primary IDE (0x1f0) p - screw it will hang on
controller Pc-3000 (0x100) any other letter or generally nothing -
screw will hang on Secondary IDE
ini - the name of file with the setups of the predetermined
instructions (see the description
work with window IDE- registers). On default - default.ini.
If file with this name is absent from the catalog with the program,
that it is created automatically. You will focus attention, that with the use of this parameter it is necessary to indicate in the
command line and the first parameter, i.e., letter, determining utilized IDE- controller.
Common for such type of programs working desk will appear after
starting on the screen. In the upper part of the screen is a principal menu, access to which can be obtained by key F10. Below screen is located the line of state having the following form:
????????????????????????????????????????????????????????????????????????????????
170h M BSY RDY DWF DSC DRQ COR INX ERR | BBK UNC 0 IDNF 0 ABRT T0NF AMNF
On the left side of the line the base address IDE- controller shows, on
which is located the screw being investigated, and also letter, showing, what
from the devices is selected (M - master, or S - slave). Then goes bit-by-bit contents of the register of state (1x7) and
register of errors (1x1). Zero
bits show by dark-blue color, single - red (in the register of errors) and green (in the register of
state). Program dynamically tracks contents the registers indicated. The description of the sense of single bits it is possible to find in
ATA- standard and heap of others dock, to here give its 4 I will not be.
All useful for function programs are started through the principal
menu.
Their comprehensive description further follows.
4. Menu "file".
In this menu there are following points:
- "to select the file of configuration", intended for the installation of the new file of configuration. Its description is given in the section,
describing the window of registers.
- "about the program"
- "output"
Last 2 points the commentary do not require.
5. Menu "screw"
In this menu there are following points:
- the "selection of interface"
- "passport"
- the "window of registers" (it is described in the appropriate section further)
- the "editing of sectors"
- "loading of the micro-code"
- the "stop of spindle"
- "program reset"
5.1 selection of the interface
It makes it possible to indicate to program, to kaomu intefeysu is connected the screw being investigated. Are possible 3 values - Primary, Secondary and Pc-3000.
The first two interfaces are located practically in all computers
(their base addresses 1F0h and 170h respectively). Interface Pc-3000 is necessary only to those,
in whom there is the appropriate card (trying Pc-3000 or new Pc-3000
pro). Base address of port - 100h.
Furthermore, it is possible to indicate the type of device - Master or Slave.
One should consider, that in the window of registers the type of device is ignored.
5.2 Drive Information.
Is removed basic information from the unit of the identification of
screw,
returned on ATA- instruction identify (ECh). As is known, 512- byte unit returns on this instruction, large part of which is for us of no interest. In this case from entire unit it is selected the most useful fields.
Window is opened, having the approximately following form:
+-[?]------------ Passport of the screw of----------1-[]-+
? ?
? Model: WDC AC22000L ?
? Version: 32.41N37 ?
? Serial No.: WD-WM0000000000 ?
? Number of Sectors CHS: 3907008 ?
? Number of Sectors LBA: 3907008 ?
? ?
? * ??????? ????????? CHS: ?
? ?
? No Cylinders: 3876 ?
? No Heads: 16 ?
? No Sectors: 63 ?
? ?
? Limit LBA: Not Supported ?
? Level of Noise: Not Supported ?
? Password Protection: Not Supported ?
? ?
+---------------------------------------------------------+
By current parameters CHS are understood the parameters, established
by the last instruction Initialize drive parameters (91h) or selected
with screw automatically with the starting.
Window can be shut with button ESC.
5.3 loading of the micro-code.
Instruction is intended for the loading into the screw of the external
micro-code with the aid of instruction Download Microcode (92h). For the loading it is necessary to have special file - loader
(loader), moreover this loader must be intended for the loading precisely into
this screw. An attempt at the loading into the screw of strange loadera can be
finished than conveniently - from the abortion of instruction to the
complete spoiling of sluzhebki. So that you look attentively, what of loader you load.
With the call of instruction this window is opened:
????+-[?]-------- Loading the micro-code -------------+?????????????????????????
????? ??????????????????????????
????? File: __________________________ Browse_ ??????????????????????????
????? ???????? ??????????????????????????
????? [X] Only into the Storage ??????????????????????????
????? ??????????????????????????
????? OK _ Cancel _ ??????????????????????????
????? ???????? ???????? ??????????????????????????
????+-------------------------------------------------+?????????????????????????
In the field "file" it is necessary to enter the name of file- loader
- or by hands,
or with the aid of the instruction "Browse", opening the standard dialog box of the selection of file. Flag "only into the storage" is determined, where will be placed the loaded micro-code - only in RAM screw, or also into the utility region on the disk. One should consider, what interpretation of this flag depends on concrete screw - for
example, this flag must be compulsorily taken for IBM.
The process of loading begins after pushing of knob OK, and monitor window with the counter of the already loaded units is
reflected on the screen.
In this version of program is provided loading loaderov by size to
65536 units (e2K). Previous version, and also the majority of other programs of such type, including kvantumovskiye utilities from package PC3000,
they have a limitation to the length of loadera into 255 sectors.
5.4 stop of spindle.
Is carried out the cessation of the gyration of disk with the aid of
instruction Idle Immediate (E0h). It can be usefully, for example, for executing the diverse variants hot-swap (type of the transfer of
board from the jar to the jar without turning off of nourishment). It is necessary to note, that hot-swap - this is very dangerous procedure, and to resort to it it is better only in the very limiting cases.
5.5. Program reset.
Sends to screw signal Reset, which, in principle, it must interrupt the execution of the current instruction. True, this occurs far from always - frequently cases occur, when screw departs to itself and reacts not to what interactions from
the side of interface.
If screw is connected to controller Pc-3000, that instead of the program reset is carried out apparatus reset (IDE
Reset), because of possibility (reset through register 10A) placed into this
controller. But even this reset does not always help.
5.6. Editing of sectors.
This function is intended for survey and changing the sectors of data
of disk. After its call on screen interactive panel is placed, allowing
to introduce LBA the edited sector. Then is opened strictly the window of editing. It is the most ordinary editor of dumps,
to all customary and not requiring special commentaries. Button TAB transfers cursor from HEX- window in ASCII and vice versa. Button F2 writes the made changes to the disk, and F4 - undoes changes, giving sector to the initial form. F5 it makes it possible to pass to the editing of sector with the the
drkgim LBA. ESC it shuts window and completes the procedure of editing.
6. Menu "tests".
In this menu the means of diagnostics of screws are assembled. It has the following points:
- internal diagnostics
- the recording of the sectors
- the rapid recording
- the verification of the sectors
- the rate of verification in LBA.
6.1. Internal diagnostics
It starts the internal diagnostic procedure of screw with the aid of
instruction Drive Diagnostic (90h). The result of executing the instruction is represented at the end of
diagnostics. One should consider, that many up-to-date screws very strangely master this instruction. For example, the "error of diagram ECC" can appear as a result of disturbance of
one of the modules of sluzhebki.
6.2 recording of the sectors
The sequential recording of the group of sectors in LBA- mode is
carried out with special pattern. This can be usefully for the forced concealment of defective units
(with that switch oned Auto Write reassign),
study of the work of translator and for many other purposes. Screws, not
knowing how to work in LBA- mode, by this procedure cannot be prescribed - use HDDSPEED.
The window is opened upon command:
??????????+-[?]- Recording of sectors in LBA ---+???????????????????????????????
??????????? ????????????????????????????????
??????????? Direction: Step: ????????????????????????????????
??????????? () forward ( ) 1 sector ????????????????????????????????
??????????? ( ) backward () 256 sectors ????????????????????????????????
??????????? ????????????????????????????????
??????????? Starting LBA: 0 ????????????????????????????????
??????????? ????????????????????????????????
??????????? End LBA: 3907008 ????????????????????????????????
??????????? ????????????????????????????????
??????????? OK _ cancel _ ????????????????????????????????
??????????? ???????? ???????? ????????????????????????????????
??????????? ????????????????????????????????
??????????+-------------------------------------+???????????????????????????????
Here it is possible to select the direction of recording - to the side
of an increase or decrease LBA, the step of recording - quantity of sectors, written to the disk for one instruction (on 1 sector or with groups of
256 sectors). Recording on 256 sectors goes considerably more rapid. Furthermore, it is indicated
initial and final LBA the written section. On default initial LBA - 0, final - latter LBA screw (it is taken from the passport).
In the process of recording the analysis of the meeting errors is not
carried out.
Pattern, written in each sector of disk, has the following format:
00000000: A5 02 00 00?EB EB EB EB?EB EB EB EB?EB EB EB EB e...yyyyyyyyyyyy
00000010: 2A 20 48 44?44 4C 20 2A?00 EB EB EB?EB EB EB EB * HDDL *.yyyyyyy
00000020: EB EB EB EB?EB EB EB EB?EB EB EB EB?EB EB EB EB yyyyyyyyyyyyyyyy
. . . .
000001F0: EB EB EB EB?EB EB EB EB?EB EB EB EB?EB EB EB EB yyyyyyyyyyyyyyyy
In the first four bytes of sector is written LBA this sector.
Through address 0x10 is located the signature of this program "* HDDL *".
The remaining bytes of sector are filled with code 0xeb.
It certainly and to hedgehog is understandable, but nevertheless I want again to note, that this procedure erases all user data from the selected region and
substitutes by their pattern. So that is then late will late regret about the killed gigas-byte of
skachannoy from the Internet pornukhi.
6.3. Rapid recording.
Rapid recording - this not entirely according to the designation the
function Security Erase from the subsystem of the password protection
of screw used. As studies showed, during the execution of this instruction the screws carry out
recording into all sectors of disk, in this case bad sectors are revealed and will be brought in into G-
sheet. Accordingly, an instruction can be used for the concealment of polokhikh sectors, in this case the recording occurs much more rapidly, than by the ordinary instruction 20h, due to the absence of the transmission of data of cherekh interface. K
to regret, this possibility is accessible to lobule for the screws, having
the subsystem of password protection. Older screws so not to process.
After the call of this function program, first of all,
password is established on the screw. Password is word "[*Profanity*]",
augmented by gaps to 32 bytes. Accordingly, in the case of any failures and hoverings the password can be
removed, using the built-in the program control capabilities of password
protection.
If password is successfully established, that is caused operation Security Erase. At the end the screw automatically removes password protection. At any moment it is possible to interrupt operation by button ESC. In this case the program will forcedly remove password from the screw.
6.4. Verification of sectors.
This procedure carries out search and, possibly, the restoration
the damaged and dolgochitayushchikhsya sectors of disk. Verification is carried out in LBA- mode, consequently, for the screws, not understanding LBA, the procedure
it is not applied - use HDDSPEED.
Entire procedure is broken into three successive stages for the
purpose of the acceleration of the search for the bad sectors:
1. Verification of the entire region indicated with groups on 256 sectors
and compositions of the list of groups, inside which are discovered the defects.
2. Verification each of group of one sector noted earlier,
for the development of already kontkretnykh bad sectors, and the composition of the list of bad sectors.
3. Attempt at the restoration of bad sectors.
Restoration is carried out as follows. At first sector forcedly is prescribed. Then it is checked already with the aid of reading.
If the read unit coincides with that recorded, that it is considered restored. Otherwise is carried out an attempt at forced reassigna of sector with
the aid of instruction format track (50h). True,
the majority of up-to-date screws this instruction or ignores, or
the same forced recording of sectors is carried out. But attempt - not torture.
One should consider, that some sly screws, for example, Seagate U- series,
form makes, that the sector is hidden,and the pattern recorded in it even honestly returns. But very rapidly they forget about this and sector again becomes bad. As is correct to hide sectors on seagate - 4 I cannot say,
I will not thus far dismantle their microprogram. However, it is still in front.
For obtaining the more reliable result one should disconnect kesh of
recording, if it there is in screw. To make this is possible with the aid of the instructions of the menu
of configuration.
After the call of instruction the following window is opened:
??????????+-[?]---- Verification of sectors in LBA --------+????????????????????
??????????? ?????????????????????
??????????? Starting LBA: 0 ?????????????????????
??????????? ?????????????????????
??????????? Ending LBA: 3907008 ?????????????????????
??????????? ?????????????????????
??????????? Wait Time: 400 [X] include ?????????????????????
??????????? ?????????????????????
??????????? OK _ Cancel _ ?????????????????????
??????????? ???????? ???????? ?????????????????????
??????????? ?????????????????????
??????????+------------------------------------------------+????????????????????
Here is indicated initial and final LBA the written section.
On default initial LBA - 0, final - latter LBA screw (it is taken from the passport). Waiting time - this is time in the milliseconds, during which the program will await answer to the instruction of
verification. It is minimal
possible time - 50 ms. If after this time screw does not remove flag BSY, that is carried out the forced interrupt of instruction with the aid
of signal ATA Reset, and sector, on which occurred this event,
it is entered in the list of bad sectors. Thus it is possible to reveal sectors with the long time of access, which potentially at any moment can become simply bad sectors. One should consider, that information, it is earlier
located in this sector, with an attempt at the restoration it will be destroyed - so that at
first copy the still read files into another place.
There are screws, for example, many fujitsu, which after the interrupt of verification on ATA Reset begin to behave
very strangely.
For these cases is provided turning off of checking the time of the
verification of sector by removing galochki "[ X ] to include". In this case the program will await the end of the verification of
sector infinite time, thus far screw itself will not decide to remove flag BSY.
The monitor window of the following form appears after the
installation of all parameters and pushing of knob OK:
???+-[?]------------ Verifying: pass 1 -------------------+????????????????????
???? ?????????????????????
???? LBA: 532992 Defects: 3 ?????????????????????
???? ?????????????????????
???? ??????????????????????? 13 %???????????????????????? ?????????????????????
???? ?????????????????????
???? Borders LBA Error Codes ?????????????????????
???? 156160 - 156415 Wait time elapsed ?????????????????????
???? 232960 - 233215 Wait time elapsed ??????????????????????
???? 501248 - 501503 UNC - uncorrected error ??????????????????????
???? ??????????????????????
???? ??????????????????????
???? ??????????????????????
???? ??????????????????????
???? ??????????????????????
???? ?????????????????????
???? ?????????????????????
???? Press ESC to stop ?????????????????????
???+-------------------------------------------------------+????????????????????
Here it shows LBA sector, subjected verification at the present moment, a quantity of discovered defects, and also the list of the obtained defective regions and the codes of
errors. The scroller of the list of defects in the process of test does not
work!
At the end of test in the lower part of the window appear the buttons
"passage 2" and "output". Now it is possible to examine entire list of the defects (scroller
begins to work), and to also continue test by button "passage 2".
On the second passage the same monitor window is used, like given above, only in it already show the specific values LBA of bad sectors. At the end of passage 2 appear the buttons "to hide" and "output". Pressure on the button "to hide" starts the procedure of the
concealment of defects, in this case on the screen shows LBA the workable sector, A
also the total quantity of concealed and not concealed sectors.
Again I want to emphasize, that the procedure of concealment given above is not panacea, and sector, which like would be hidden, in reality it can again become bad. Apparently, the general-purpose procedure of the concealment of defects it cannot
exist in principle - it must tie to the concrete family of screws and
use straight recording in G or P- sheet.
6.5. Rate of verification in LBA
This procedure is intended for the visual evaluation of the quality of
the surface of disk by graphing of the time of the verification of
sectors. Similar procedure is located also in the the known HDDspeed, only there screw was tested in CHS and occurred the limitation of 8Gb. Here screw works in LBA- mode, and there are no limitations to the size of screw.
After the call of instruction the program places on screen the
following dialog box:
?????????????????+-[?]------ Select LBA ---------+??????????????????????????????
?????????????????? ???????????????????????????????
?????????????????? Starting LBA: 0 ???????????????????????????????
?????????????????? ???????????????????????????????
?????????????????? Ending LBA: 19541088 ???????????????????????????????
?????????????????? ???????????????????????????????
?????????????????? Maximum Speed: 0 Mb/s ???????????????????????????????
?????????????????? ???????????????????????????????
?????????????????? [X] Auto-detect speed ???????????????????????????????
?????????????????? ???????????????????????????????
?????????????????? OK _ Cancel _ ???????????????????????????????
?????????????????? ???????? ???????? ???????????????????????????????
?????????????????+-------------------------------+??????????????????????????????
Here it is possible to indicate LBA beginnings also of the end of the
testiruyemogo section (on default - entire disk, final LBA is taken from the passport). Furthermore,
it is possible to determine the method of the selection of scale
according to the vertical axis of graph (rate of verification) -
automatic or hand. In the automatic mode the program measures the mean time of the
verification of the initial section of the selected region and on the
basis of this number selects mastshtab of graph.
As a rule, measurement is made sufficiently accurately, therefore in the ordinary cases has sense to always use
auto-determination of velocity. Ho
cases occur, when program erroneously measures the mean time of verification, as a result of which the graph partially or completely exceeds the
limits of screen. The mode of the hand input of the assumed maximum time of verification
is provided for these cases. For this flag "auto-determination" must be removed, and in the field "max.velocity "to introduce the assumed maximum time of verification in the
megas-byte after pushing of knob OK program begins graphing. On
of horizontal is put aside the position of sector (in the
megas-byte), on the vertical line - time of its verification. For accelerating the work the verification occurs with groups of 256
sectors. The waiting time of the performance of instruction here is not limited
- in this case the dolgochitayushchiyesya sectors appear in the form
of well noticeable failures of graph downward. The list of defects in this case is not created - for search and
concealment of bad units use a procedure of verification,
described earlier.
One should especially note, which the program for measuring the time uses the third channel of
system timer (utilized DOS for calculating the system time), reprogramming it for the high frequency for increasing the accuracy of
measurement. In connection with the extremely curved realization of timer under
Windows 95 and analogous distributions M$, procedure proved to be inefficient in these "operating systems". Therefore the input into this point of menu will be blocked during the
detection of environment Windows. Program
it is possible to deceive - but normal graph hearth mastdayem you
nevertheless will not see in view of the nonuniformity of the work of
timer. You are loaded into the clean pill box.
The timer is realized correctly under OS/2, and in pill box- boxing OS/2 program sketches completely correct
graph, as in the clean pill box.
7. Menu SMART
In this menu is contained a number of procedures for the work with
sitemoy SMART screw. There are following points:
- "to include"
- "to open"
- "auto-retention..."
-" attributes..."
-" diagnostics..."
-" the periodical of tests "
-" the periodical of errors "
7.1. To includeto open auto-retention.
With these points everything is understandable without the
commentaries. With their help it is possible to include and to open the work of
system SMART, and also to solve or to forbid the automatic retention of SMART-
attributes. One should only consider, that all instructions of work with SMART, existing in this menu,
automatically is included work SMART, and they do not turn off at the end of work.
7.2. Attributes.
This procedure shows the list of the values of all attributes SMART,
unscrewed. Window is opened, having the approximately following form:
+-[?]--------------------------- SMART-attributes -----------------------3-[]-+
?
? ID Description flag threshold value RAW ?
? 001 Raw Read Error Rate 0b 200 51 000000000000 ?
? 004 Start/Stop Count 12 99 40 000000000704 ?
? 005 Reallocated Sector Count 12 200 0 000000000000 ?
? 010 Spin Retry Count 13 100 51 000000000000 ?
? 011 Recalibration Retries 13 100 51 000000000000 ?
? 199 UltraDMA CRC Error Count 0a 200 0 000000000000 ?
? 200 Write Error Rate 09 100 51 000000000000 ?
? ?
? Attributes version - 0005 ?
?
+-??????????????????????????????????????????????????????????????????????????-+
There is nothing new here, all fields are well known according to many other programs, showing SMART- attributes.
ID - identifier (code) of attribute,
description - interpretation of the code of the attribute (to translate entire base to the Russian language to me it was laziness),
flags - single-byte flag of attribute,
value - normalized instantaneous value,
threshold - smallest possible normalized value,
RAW - damp absolute value of attribute.
Since normal people usually interests only field RAW, that to the remaining fields it is possible not to turn attention. The field of worst corrected value (worst) I forgot to put, and I do not see in it special need.
To shut the window of attributes is possible with button ESC.
7.3. Diagnostics.
It starts the diagnostic procedures SMART. Diagnostics screw can execute in two modes - offline (in the
background, without interfering with basic work screw) and captive (being
completely thrown to the execution of diagnostics.
Program supports only starting in captive- mode.
Procedure can be executed in two versions - reduced and complete. Complete procedure occupies much more than time. Program
it waits until the end of diagnostics, and the code of result is placed on screen.
Further information can be obtained, examining the periodical of tests.
7.4. Periodical of tests.
In the periodical of tests, if it is supported by screw, they will be brought in
the results of execution SMART- diagnostics. Periodical consists of records.
With the call of periodical at the screen appears the current
recording - i.e., recording,
describing the last worked out test. Besides this recording, in the periodical the recordings about the previous tests can be
stored - also it is possible to look them.
The window of the survey of recording appears approximately thus:
??????????+-[?]--------- Periodical of diagnostics -------------+???????????????
??????????? ????????????????
??????????? Recording # 11 ????????????????
??????????? ????????????????
??????????? Test Mode: Captive, extended ????????????????
??????????? Result: Indeterminate ????????????????
??????????? Completion Code: 79 ????????????????
??????????? End Time: 230 from beginning ????????????????
??????????? ????????????????
??????????? Control point of the residue test: 03 ????????????????
??????????? LBA residue sector: 65267483 ????????????????
??????????? ????????????????
??????????? OK _ next _ previous _ ????????????????
??????????? ???????? ??????????? ???????????? ????????????????
??????????+-----------------------------------------------------+???????????????
By buttons "following" and "previous" it is possible to look the
remaining recordings of periodical. Button OK shuts the window of survey.
In detail to describe composition pour on the recordings of periodical
4 here I will not be - all this is well described in standard Ata-6.
7.4. Periodical of errors.
The periodical of errors stores information about the last
vstrechennykh spirally errors of input-output. Like the previous periodical, it consists of records,
moreover the current recording first appears at the screen, containing information about the last vstrechennoy error.
The window of the survey of recording appears approximately thus:
??????????+-[?]------------- History of Errors -----------------+???????????????
??????????? ????????????????
??????????? Record # 2 ????????????????
??????????? ????????????????
??????????? Last Instructions: ????????????????
??????????? 3x6 1x1 1x2 1x3 1x4 1x5 1x6 1x7 Time (ms) ????????????????
??????????? 00 ff 01 ef 09 cb e4 40 82100 ????????????????
??????????? 00 00 3f ef 09 cb af 91 87100 ????????????????
??????????? 00 00 00 00 00 00 00 ff 87100 ????????????????
??????????? 00 80 e8 ff 80 01 a6 ff 92100 ????????????????
??????????? 00 00 00 00 00 00 a2 ff 92100 ????????????????
??????????? ????????????????
??????????? Contents of registers with error: ????????????????
??????????? 1x1 1x2 1x3 1x4 1x5 1x6 1x7 State Time ????????????????
??????????? 00 00 00 00 00 a2 51 03 4 ????????????????
??????????? ????????????????
??????????? OK _ Next _ Previous _ ????????????????
??????????? ???????? ??????????? ???????????? ????????????????
??????????? ????????????????
??????????+-----------------------------------------------------+???????????????
List of five last instructions here is given, executed
spirally before the appearance of error. Lowest instruction - is instruction, caused error. Further is given contents all registers of screw at the moment of the
appearance of error.
With the aid of the buttons "following" and "previous" it is possible
to look other recordings of periodical. Button OK shuts window.
8. Menu of configuration.
The instructions of this menu are intended for changing the internal
configuration of screw. Menu contains the following points:
- limit LBA
- the level of noise
- the password protection
- the modes of the work of the screw
8.1. Limit LBA
This point of menu is intended for the installation of the maximum LBA
for the screws, supporting possibility HPA (Host Protected Area). This can be usefully, for example, for trimming of ya0-gigovogo screw to 32 gigas-byte for the purpose to
make friends of it with the old BASIC INPUT-OUTPUT SYSTEM.
Window is opened, having the following form:
?????????????????+-[?]-------- Configure Max. LBA ------------+?????????????????
?????????????????? ??????????????????
?????????????????? Plant max. LBA: 80418239 ??????????????????
?????????????????? ??????????????????
?????????????????? LBA: 80418239 [X] Temporary ??????????????????
?????????????????? ??????????????????
?????????????????? ??????????????????
?????????????????? Establish _ Default _ Cancel _ ??????????????????
?????????????????? ???????????? ?????????????? ???????? ??????????????????
?????????????????+--------------------------------------------+?????????????????
In the field "plant max. lba "is shown LBA, maximum for this screw (i.e., limited by its physical capacity). In field LBA should be introduced the new value of LBA for limiting
the capacity of screw. Flag
"temporarily" it shows, will remain the new border LBA after turning off of the nourishment of
screw.
Button "on default" enters in field LBA a maximally possible value
(plant LBA). The installation of such LBA leads to turning off of system HPA and
removal of limitation on LBA.
8.2. Level of noise
With the aid of this procedure it is possible to govern the level of
propeller noise,
supporting AAM (Advanced Acoustic Management). Such screws can decrease the volume of sound of positioning due to
reduction in the productivity (increase in the transit time from the
path to the path) or, on the contrary, to increase productivity due to an increase in the loudness of
positioning.
The level of noise is assigned by instruction Set features (EFh) in
the form of single-byte constant, which can take value of 80h (minimum noise), FEh (maximum noise) or any intermediate value (average noise). Accordingly, window, discovered on this instruction, it appears as follows:
????????????+-[?] Adjust level of noise -----+??????????????????????????????????
????????????? ???????????????????????????????????
????????????? () Maximum ???????????????????????????????????
????????????? ( ) Average -----> c0 ???????????????????????????????????
????????????? ( ) Minimum ???????????????????????????????????
????????????? ???????????????????????????????????
????????????? OK _ Cancel _ ???????????????????????????????????
????????????? ???????? ???????? ???????????????????????????????????
????????????+--------------------------------+??????????????????????????????????
Accordingly, it is possible to select the maximum or minimum level of noise, or to vvvesti the average value of the level of noise into the
appropriate field (in the range 81h - FEh).
8.3. Password protection.
This point of menu is intended for control of the subsystem of the
password protection of screw (Security management). Immediately it must warn, that for using this possibility it is necessary solidly to know, you want to make what. If you place on the disk password and you will forget it, to remove password standard means it will be impossible. It is better here to not climb for the entertainment.
Working window appears as follows:
??+-[?]-------------- Control of the password protection -----------------+?????
??? ??????
??? Unblock the screw _ [ ] Remove Password ??????
??? ????????????????????? ??????
??? Password: ??????
??? Erasing the data _ ___________________________ ??????
??? ????????????????????? ??????
??? Password Type: Level: ??????
??? Establish password _ () User () High ??????
??? ????????????????????? ( ) Master ( ) Maximum ??????
??? ??????
??? Current State: Password established, screw is open ??????
??? Current Level of Protection: High ??????
??? ??????
??? Cancel _ ??????
??? ???????? ??????
??+-----------------------------------------------------------------------+?????
The field of input under the heading "password" is intended for the
input of password.
Password is the chain of any bytes, what can be only introduced from the keyboard, with length from 1 to 32 bytes. If a smaller quantity of symbols is introduced, that program supplements the introduced password with gaps to the
right to 32 bytes. By switch the "type of password" can be established, what
password is introduced - user (User) or system (Master).
Different instructions are executed by pressure on one of three
command buttons.
- to unblock screw. This instruction opens access to the screw,
closed with password. In the field of the input of password should be indicated correct
password, and to select the type of the password (user or master) indicated. Afterward
the successful completion of instruction is opened access to the
operations of readingthe recording of the sectors of the user region of screw. With the installation of flag "to remove password" after successful
otkytiya of screw password protection is disconnected, and further access to the sectors of data will be permitted
immediately after the switching on of feed of screw. For the repeated making more active of the protective system will have
to establish anew password.
- erasing data. This is one of the versions of the operation of removing the
password,
with which the screw erases all user data. After the input of correct password and pressure on this button the
screw raises flag BSY,
it erases entire user region of data, and then the subsystem of the password protection (is removed
password) is disconnected. Procedure is useful for the obliteration of confidential data, storing on the screw.
- to establish password. Instruction is intended for including the subsystem of password
protection and installation of new password. Preliminarily should be introduced future password, to establish its type (user or master), and to also select the level of protection - high (high) or maximum
(maximum).
All details about the levels of protection and the special features of
the work of the subsystem of safety can be read in standard ata-6. One should consider, that
installation master- password to the nezaparolennyy screw in reality
does not lead to the making more active of the subsystem of safety. Simply screw memorizes new master- password to the future.
Again I want to emphasize, that the safety system of screw - this is not toy. Never forget, what password you establish.
8.4. Modes of the work of screw.
This point of menu makes it possible to include or to turn off some
subsystems of screw - kesh of recording (write cache), the system of predvyborki of reading (read look-ahead) and extended
control of nourishment (advanced power management). Working window appears as follows:
??+-[?]-------------------- ?Modes ------------------------+????????????????????
??? ?????????????????????
??? Write Cache () Include ( ) Open ?????????????????????
??? ?????????????????????
??? Read look-ahead () Include ( ) Open ?????????????????????
??? ?????????????????????
??? Adavnced Power Mgmt () Include ( ) Open ?????????????????????
??? ?????????????????????
??? OK _ Cancel _ ?????????????????????
??? ???????? ???????? ?????????????????????
??+--------------------------------------------------------+????????????????????
The current modes of the work of screw are shown with the discovery in
the window. It is possible to switch them and to harvest key OK. It must be noted, that the majority of screws does not memorize the established mode
after the disconnection of nourishment.
9. Window of the registers of screw.
The window of registers - this is one of the most useful functions of
this program. Strictly, the program was written for it, and it already then outgrew by supplemental service possibilities. The window of registers is tool #y for the study of screw, since it possesses the in effect unlimited possibilities in the plan
of sending into the screw of instructions and exchange with it by the
units of data. As far as to me it is known, analogous
possibilities possesses only legendary HDD.EXE Vladislav Shakleyn (and her commercial version HRT), however, hdd.exe requires for its work even and Windows, which is far from always convenient.
The window of registers takes the following form:
+-[?]--------------------------- Screw Registers ------------------------------+
? ? ?
? Register Input Output ? Preserved Instructions: ?
? 1x0: 0000 0000 Data ? ?????? ???????? ?
? 1x1: 00 00 Feature ? WD Super On ? ?
? 1x2: 00 00 Sec. count ? WD ???????? ?????? ? ?
? 1x3: 00 00 Sec. # ? WD ?????? ?????? ? ?
? 1x4: 00 00 Cyl. low ? WD ??????? ? ?
? 1x5: e0 00 Cyl. high ? ?????? ??????? ? ?
? 1x6: a0 a0 Dev./head ? ???????? ????????? ? ?
? 1x7: 50 e? Command ? WD ?????? RAM ? ?
? ? ? ?
? Send _ Receive _ [X] Auto ? ? ?
? ????????? ??????????? ? ?
?----------------------------------------? ?
? Exchange Buffer: 0 byte [ ] <--> ? Load _ Execute _ ?
? ? ??????????? ??????????? ?
? Obtain _ Load _ Create _? Description: ____________________ ?
? ?????????? ??????????? ??????????? ?
? Send _ Preserve _ Survey _? Preserve _ Remove _ ?
? ?????????? ??????????? ??????????? ??????????? ??????????? ?
? ? ?
? ? ?
+------------------------------------------------------------------------------+
Logically window is broken into three parts - region of registers, the region
the buffer of exchange and the region of the preserved instructions.
9.1. Region of registers.
This region is intended for the work with the registers of screw -
sending to the screw of instructions and reading of results. It consists of two columns - region of output and region of input.
The region of output reflects current contents of the registers of
screw after pressure to button "to read". If we establish the flag of "auto-", that into this region will automatically load current contents of
registers after the execution of each instruction.
The region of input makes it possible to introduce the specific value
into each of the registers of screw. Pressure on the button "to send" writes these values into the
appropriate registers of screw - this is called sending into the screw
of instruction. The result of executing the instruction can be seen, after loading
the values of registers by button "to read", or it is automatic, if
is established the flag of "auto-". Contents of the registers of state (1x7) and errors (1x1) dynamically
are mapped into the line of the state of program.
Separately should be noted register 1x0. In contrast to the remaining registers of screw it has a size of 16
bits, and not 8, and it is intended for the exchange of the units of data. Nevertheless some screws, for example IBM, in
a number of supers-command is used it as ordinary register for the
transmission of the parameters of instructions and reset of results. In order not to disrupt the process of the exchange of data with the
screw, the following rule is accepted - if screw raised flag DRQ, signaling about the readiness for the exchange of the unit of data, that register 1x0 is not read with program on the button "to read" and
is not written by button "to send". In the remaining cases this register is readit is written, like remaining registers.
9.2. Region of the buffer of exchange.
The buffer of exchange is intended for obtaining from the screw of the
unit of data and sending of the unit of data into the screw. Buffer dynamically changes its size in the dependence on a quantity of
located in it data, and the current size of buffer is mapped into the appropriate field. Maximally possible size of buffer - y28K (256 sectors of data).
When screw raises DRQ, signaling about the readiness to transmit the chain of data, the pushing of knob "to obtain" assumes data from the screw and places
them in the buffer. Data are read to those pores, thus far podnyat flag DRQ. A quantity of read bytes will be shown at the end of reading the unit
of data in the field of size. Old contents of buffer in this case is lost. If we establish the flag of "<-->", that each pair it is byte in the buffer it interchanges the position
itself with each other (high-order bytes they will become low-order, A
low-order - by high-order). This is useful, for example, for reading of the unit of the identification of disk.
When screw raises DRQ for the reception of data, by button "to send" it is possible to send current contents of buffer
into the screw. Data are sent to those pores, thus far will not descend flag DRQ or data in the buffer thus far will
not end.
Note. The buffer of exchange program places in extended storage (XMS). This requires the presence in system of driver HIMEM.SYS, or another method of extraction XMS- storage to program. If with the start program does not obtain access to XMS- driver, that work with the buffer of exchange is blocked, and the corresponding group of buttons in the window is not reflected.
9.2.1. Retentionthe restoration of the buffer
Button "to preserve" makes it possible to write down current contents
of buffer and file on the disk. Buffer of zapisyvayetsyav the form of the neformatirovannogo binary
file by size, corresponding to the current size of buffer. Button
"to load" reads disk the file into the buffer indicated and is
established the size of buffer by the equal to the size of the
schitannogo file (maximum size - shchy2K).
Pressure on any of these buttons leads to opening of standard file
dialogue.
9.2.2. Filling of buffer with information.
Button "to create" fills buffer with the file of the bytes of the size
indicated.
The following window is opened with its pressure:
+-[?]-------- Fill Buffer ------------+
? ?
? Size of Buffer: 512 ?
? ?
? () Fill with code ?
? ( ) Fill with units ?
? ?
? Filler code : 0 ?
? ?
? OK _ Cancel _ ?
? ???????? ???????? ?
+-----------------------------------------+
Buffer can be filled or with identical bytes, indicated in the field the "code of filler", or by unit- patterns. The unit of pattern is the unit with the size of 512 bytes, filled
by code- filler. In the first 4 bytes of unit its ordinal number in the buffer is
inscribed, and with address 10h is located signature * HDDL *.
In both cases the size of the created buffer is indicated in the
bytes.
9.2.3. Surveythe editing of buffer.
Button "survey" shows current contents of buffer in the form of
hexadecimal dump. To shut the window of the dump is possible of key ESC.
Addresses in the dump can be shown in the absolute and relative form. In the case absolute of addresses the address of each line shows
relative to the beginning of buffer, and in the case of relative - relative to the beginning of the current
unit, i.e., in each unit the addressing of lines begins from zero. Is switched the mode of addressing by button F8.
With the aid of button F5 it is possible to pass to the survey of any
part of the buffer.
In this case in the mode of absolute addressing it is necessary to
introduce the new address of survey, and in the mode of relative addressing - new number of unit.
There is a possibility of retaining the contained buffer into the disk
file (this operation it is the extended analog of button "to preserve"
the principal window of registers). Retention is carried out by button F2, in this case the following window is opened:
+-[?]--------------------- Save Buffer --------------------------------+
? ?
? File: dump Browse _ ?
? ??????????? ?
? Save As: ?
? () Binary File Starting Address: 0 ?
? ( ) Formatted Dump: Region Size: 200 ?
? [X] Units ?
? [X] Address ?
? [X] ASCII-representation OK _ Cancel _ ?
? ???????? ???????? ?
? ?
+----------------------------------------------------------------------+
Here it is possible to indicate the name of file for the retention, initial address and the size of the preserved section (in HEX- form), and also the method of retention - in the form of neformatnogo binary
file, or in the form of text dump. In
the last case it is possible also to select composition pour on dump.
In this version of program the possibility of the editing of the
buffer of exchange is also added. Editor is called by key F4, and
the standard window HEX- editor is opened. Sole limitation - to edit is possible only visible part of the buffer. Skrolling upwarddownward
it is not thus far realized.
Button TAB transfers cursor from HEX- window in ASCII and vice versa. Button
F2 are written the made changes back into the buffer, and button F4 - abolishes the made changes and perezagruzhayet
contents of the window of editing from the buffer. Button ESC shuts the window of editing,
after which the mode of the survey of buffer is renewed.
9.3. Region of the preserved instructions.
In this the field it is possible to create the collection of the
predetermined instructions. In
each element of collection remains sozherzhimoye all registers (from
ykh0 to ykh"). The elements of collection have names, mapped into vertical list.
The following buttons are accessible:
- to preserve. On this instruction contents of registers 1x0-1x7,
locating in the fields of the input of the region of registers, it remains into the collection of the predetermined instructions by
the name, indicated in the field "description". I.e., for the recording of instruction, for example, reading the passport of disk, should be introduced in the field of the input of register 1x6 value
A0, in the field of the input of register 1x7 - value EC, then to introduce description the "passport of disk" in the field of
description and to harvest button "to add". in this case the instruction appears in the list of instructions.
- to remove. Instruction removes from the collection the chosen instruction.
- to load. Pressure on this button leads to copying of all contained registers, preserved in the chosen instruction, in the fields of the input of the region of registers.
- to execute. Contents of registers, preserved in the chosen instruction, it is sent into the screw without the copying into the fields of the
input of the region of registers. This is useful for executing different prefix instructions, the type
Super On.
All predetermined instructions remain on the disk in the form ini-
file.
On kmolchaniyu the program uses file default.ini, if there is no such file on the disk, that is created empty file. It is possible to indicate the name of utilized ini- file in the
command line, furthermore, at any moment it is possible to load another ini- file with the aid of
the instruction "to select the file of the configuration" of menu
"file".
10. Authors connection with them.
With the authors it is possible to be connected thus:
E-mail Fido
Alexander Stepanov:
[email protected] 2:5030/541.17
Lova Korjagin:
[email protected] 2:5030/541.45
If you have observations from the work of program, or sentence on its improvement, that write, do not be troubled. We do not bite:) this in your interests! For example, in our annual remoteness to development cp.exe spoiled damp it defektlist with the recording. We thus learned about this purely randomly, after reading whose- that letter on the forum in Postrigana.
Through the pair of hours the program was touched up and renovated on
ftp. At least who on about this wrote! Then program would be corrected still year ago.
Nevertheless, to train people to make screws we do not sign. Thus
that the answers to questions of the type "that such Super ON" and "as
to flood sluzhebku to makstor with the aid of HDDL" you will not wait
for.
He forget also about our ftp 195.209.232.10: interesting things there sometimes appear. Moreover frequently without the warning.
The owners of different technical sites can lay out this program in
themselves, without inquiring we have permission. Single request - to indicate in this case and reference to our ftp, since the renovations will be laid out precisely there, moreover, possibly, without the warning.
Happy ubivaniya of screws!