Seagate Terminal M Command
Seagate Terminal M Command
Availability:
Level T , 'm'
Quick Help:
Format Partition, m[Partition],[FormatOpts],[DefectListOpts],[MaxWrRetryCnt],
[MaxRdRetryCnt],[MaxEccTLevel],[MaxCertifyTrkRewrites],[ValidKey],[DataPattern]
Description:
This command formats the specified partition.
Input Parameters:
0 - Partition Number.
0 = User Partition
1 = System Partition
99 = Set format corrupt state
Type: Unsigned 8-bit value
Range: 0 or 1
Default: 0
1 - Format Options.
This parameter is a bit significant value that selects the following options:
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the the Format Partition command will only format
SeaCOS Extended File (XF) space.
NOTE: This feature can be enabled or disabled at compile-time. Use
the quick help to determine whether your code supports this feature.
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, media certification and defect deallocation will
be disabled.
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the User Partition sectors will not be written
with a constant data pattern.
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the primary defective sectors will be corrupted.
Range: 0 or 0xFFFFFFFF
This parameter is a bit significant value that selects the following options:
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the Format Client Defect List will be written with
contents of the Active Error Log and the option to process the Client
Defect List will be enabled. If there is no Active Error Log or there
are no R/W-related entries in the Active Error Log, then this bit will
be ignored.
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the the Primary Defect Lists will be used when
creating the defect list to be used by the format operation.
This bit is only valid when the User Partition is selected. If this
bit is equal to 1, the the Grown Defect Lists will be used when
creating the defect list to be used by the format operation.
Type: Unsigned 32-bit value
Range: 0 or 0xFFFFFFFF
If this parameter is entered, the maximum write retry count will be set to the
specified value. This parameter is only valid when the User Partition is being
formatted (Parameter 0 is equal to 0). If this parameter is not entered, the
maximum write retry count will not be changed.
Range: 0 or 0xFFFF
Default: None.
If this paremeter is entered, the maximum read retry count will be set to the
specified value. This parameter is only valid when the User Partition is being
formatted (Parameter 0 is equal to 0). If this parameter is not entered, the
maximum read retry count will not be changed.
Range: 0 or 0xFFFF
Default: None.
If this paremeter is entered, the maximum ECC T-Level will be set to the specified
value. This parameter is only valid when the User Partition is being formatted
(Parameter 0 is equal to 0). If this parameter is not entered, the ECC T-Level
will not be changed.
Range: 0 or 0xFFFF
Default: None.
Default: None. If this parameter is not entered, the default value recommended
by the R/W Firmware will be used.
For a User Partition format, this parameter must be equal to 22 Hex. If this
parameter is not equal to 22 Hex, the command will not be executed.
For a System Partition format, this parameter must be equal to DD Hex. If this
parameter is not equal to DD Hex, the command will not be executed.
Default: None
This parameter specifies the data pattern to be used when formatting the specified
partition. If this parameter is not entered, the specified partition will be
formatted with a 0x00000000 data pattern.
Range: 0 or 0xFFFFFFFF
Default: 0x00000000.
If this parameter is entered, the secondary maximum write retry count will be set
to the specified value. This parameter is only valid if all secondary ER mode
parameters (parameter 9, 10 and 11) are entered. If any of the 3 parameters is
not entered, the secondary ER mode feature is disabled. Note that this usage is
only available if RW_FORMAT_APPLY_SECONDARY_ER_MODE is enabled.
Range: 0 or 0xFFFF
Default: None.
If this paremeter is entered, the secondary maximum read retry count will be set
to the specified value. This parameter is only valid if all secondary ER mode
parameters (parameter 9, 10 and 11) are entered. If any of the 3 parameters is
not entered, the secondary ER mode feature is disabled. Note that this usage is
only available if RW_FORMAT_APPLY_SECONDARY_ER_MODE is enabled.
Range: 0 or 0xFFFF
Default: None.
11 - Secondary Maximum ECC T-Level.
If this paremeter is entered, the secondary maximum ECC T-Level will be set to the
specified value. This parameter is only valid if all secondary ER mode
parameters (parameter 9, 10 and 11) are entered. If any of the 3 parameters is
not entered, the secondary ER mode feature is disabled. Note that this usage is
only available if RW_FORMAT_APPLY_SECONDARY_ER_MODE is enabled.
Range: 0 or 0xFFFF
Default: None.
Output Data:
"DiagError aaaaaaaa"
where
If the error occurred while processing the defect lists, the following additional
information will be displayed.
where
cccccccc is the sense status that was returned by the R/W subsystem
dddddddd is the error code that was returned by the R/W subsystem
eeeeeeee is the byte offset of the defect list entry at which the error occurred
ffffffff is the index of the defect list entry at which the error occurred
gggggggg is the error code that was returned by the system information manager
(SIM)
If the error occurred during the format operation, the following additional
information
will be displayed.
where
c is the amount of time that has elapsed since the format operation was started
dddddddd is the sense status that was returned by the R/W subsystem
eeeeeeee is the error code that was returned by the R/W subsystem
ffffffff is the error code that was returned by the system information manager
(SIM)
If no error occurred and the format operation is still in progress, the following
information will be displayed.
"Max Wr Retries = cc, Max Rd Retries = dd, Max ECC T-Level = ee, Max Certify
Rewrite Retries = ffff"
"User Partition Format gg% complete, Zone hh, Pass ii, LBA jjjjjjjj, ErrCode
kkkkkkkk, Elapsed Time l"
where
kkkkkkkk is the error code that was reported by the R/W subsystem
l is the amount of time that has elapsed since the format operation was started
If no error occurred and the format operation is still in progress, and the
secondary ER mode feature is
enabled, the following information will be displayed.
"Secondary ER mode Enabled: 2nd Max Wr Retries = cc, 2nd Max Rd Retries = dd, 2nd
Max ECC T-Level = ee"
where
"Event: Media Write Start, aaa Format, Zone bb, Start Blk cccccccc, Num Sectors
dddddddd"
or
"Event: Write Xfer, Start Blk cccccccc, Len eeeeeeee, Next Blk ffffffff, Erc
gggggggg, Stat hh"
or
"Event: Media Certify Start, New Format, Zone bb, Start Blk cccccccc, Num Sectors
dddddddd"
or
"Event: Certify Xfer, Start Blk cccccccc, Len eeeeeeee, Next Blk ffffffff, Erc
gggggggg, Stat hh"
or
"Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr
nn, Wdg oo, ZnGrp pp, Zn qq, DOS: rr/ss/tt"
"Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr
nn, Wdg oo, Zn qq, DOS: rr/ss/tt"
"Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr
nn, Wdg oo, ZnGrp pp, Zn qq"
"Event: Unrec Err, LBA iiiiiiii, PBA jjjjjjjj, Erc gggggggg, Trk llll, Hd mm, Sctr
nn, Wdg oo, Zn qq"
or
"Event: Cert Trk Rewrite, Retry Blk kkkkkkkk, Len eeeeeeee, Next Blk ffffffff, Erc
gggggggg, Stat hh"
or
where
bb is the zone
gggggggg is the error code that was reported by the R/W subsystem
ss is the DOS relative cylinder in scan unit associated with the error
"HE"
where
gggggggg is the error code that was reported by the R/W subsystem
If no error occurred and the format operation has successfully completed, the
following
information will be displayed.
where
m is the amount of time that has elapsed since the format operation was started
If at least one zone re-format was skipped then the following will also be
displayed upon successful completion of the format:
Examples:
Example #1:
Perform a "quick format" (process defect lists, clear format corrupt, do not write
or certify the drive)
F3 T>m0,6,,,,,,22
Example #2:
Perform a "quick format" (don't process defect lists i.e. unslip and unalt, do not
write or certify the drive)
F3 T>m0,6,0,,,,,22
Example #3:
Perform a format with the default data pattern 0x00000000 and certify with event
reporting enabled:
F3 T>m0,8,,,,,,22
Example #4:
Perform a format and certify with event reporting enabled, set max write retries
to 16, set max read retry count to 8, max ECC T-Level to 0, and track rewrite
during certify retry threshold to 20:
F3 T>m0,8,,10,8,0,14,22
Example #5:
Perform a format with user input data pattern 0xFFFFFFFF and certify with event
reporting enabled:
F3 T>m0,8,,,,,,22,ffffffff
Example #6:
Perform a format with secondary ER mode feature. Two sets of ER mode parameters are
entered. First set is used in the first pass of format/certify, set max write retry
to 15, max read retry to 5 and max ECC T-Level to 6. Second set is used in the rest
passes, set max write retry to 17, max read retry to 7 and max ECC T-Level to 14.
Note that this usage is only available if RW_FORMAT_APPLY_SECONDARY_ER_MODE is
enabled.
F3 T>m0,1,2,15,5,6,,22,,17,7,14
Example #7:
Determine the current format state and set format corrupt:
F3 T>m99
Revision History: