MtfCheck Main Topic | Next

MtfCheck Syntax


One Stepmtfcheck [-tTapeName] [-rReportFileName] [-fN -sN] [-e[l] [-l"Label"]] [-?]

Where:

-tTapeName
specifies the name of the tape to operate on.
The name of the media should be "tape0", "tape1", and so forth. MtfCheck will convert that to \\.\tape0, or \\.\tape1. If no tape name is given, MtfCheck will use \\.\tape0 as the default media name.
-rReportFileName
specifies the name of the report file into which MtfCheck dumps its output.
The default output file is Report.txt in the current directory. You can specify any file name in any directory to collect MtfCheck's output. If an invalid report file name is given, MtfCheck dumps output to the screen.
-fN
specifies the file number N to restore from the specified set on a tape. The file number can be obtained from the report file.
If the file or set number is not known, file restoration is a two-phase operation. In the first phase, the user runs mtfcheck -rReportFileName to get a report file, in which MtfCheck enumerates all the sets and files on the given medium. Then in the second phase, the user specifies the set number and file number to restore any particular file in the specified set.
-sN
specifies a set number N on the medium from which a file should be restored.
The set number is available from the report file. This option is used with the -fN option.
-e[l]
erases a given tape without zeroing all data (the faster method). This does not overwrite all the data on the tape, but merely puts a header followed by a tapemark followed by an END_OF_DATA mark.
With l (long erase), erases the tape by zeroing all data. This overwrites all data on the medium and puts a header followed by a tapemark followed by an END_OF_DATA mark. This option may be useful for security reasons.
-l"Label"
specifies a media label to put in the header while erasing the tape. This option may be used with the -l"Label" option.
-?
displays this syntax screen at the command prompt.