Contained Within
Find More Documentation
Featured Support Resources
| Descargar este libro en PDF
cdtest
4
Compact Disc Test (cdtest)
- This test checks the CD-ROM unit by reading the CD. cdtest is not a scalable test. Each track is classified as follows:
-
- Mode 1 uses error detection/correction code (288 bytes)
- Mode 2 uses that space for auxiliary data, or as an audio track.
-
Note - Load a scratch compact disc into the drive before starting the test. See the explanation for CD_type in the chart in Section , "cdtest Test Modes."
-
Volume Management and Compact Discs The cdtest tests the CD-ROM drive(s) even if the Volume Manager is not running. If the Volume Manager is running and no media is installed in the CD-ROM drive(s), then SunVTS prompts you to install media in the drive before selecting the test.
- The test fails if you try to run it without a CD in the drive.
cdtest Options

Figure 4-1 cdtest
-
-
CD Type indicates the type of compact disc to test from the CD Type menu. The choices are: pdo, multi-session, or other (the default CD type is other).In the connectivity mode this option has a canned value of other.
-
Note - Your choice must correspond with the disc used for testing.
-
-
% Data/Track tests a percentage of data on each track; type a value between 0 and 100 in this field to indicate the percentage. In the online and connectivity modes this option has a canned value of 2%.
-
-
Read Mode indicates the mode; choose between Random or Sequential reading. In random mode, data blocks are read from random track positions; in sequential mode, data blocks are read in sequence. For both modes, the total number of blocks read is determined by the %_of_data option. In the online and connectivity modes this option has a canned value of random.
-
Audio Test enables or disables the audio test. You must connect headphones or a speaker to the audio jack on the CD player to hear audio output. In the connectivity mode this option has a canned value of disable.
-
Volume adjusts the volume; type a value between 0 and 255 in this field. In the online and connectivity modes this option has a canned value of 125.
cdtest Test Modes
- This test supports all the three modes of testing available under SunVTS, namely connectivity, online and offline.
-
Connectivity Mode In this mode the test verifies that a CD-ROM drive is connected to and configured in the system.
-
Online Mode This mode attempts to verify the functionality of the drive by accessing and reading the media in the drive. If the media contains audio and the audio test is enabled, it tries to play it.
- Only a small percentage of the media is read, as this is sufficient to verify the functionality of the drive and keeps the test runtime from being unnecessarily extended.
- If the device is found to be busy at the time of testing the test exits after printing a message indicating that the device is unavailable for testing. The pass and error counts are unaffected.
-
Offline Mode This mode is similar to the online mode except that the test registers a failure if the device is found to be busy. This is because SunVTS tests make the assumption that all the resources will be available for testing in the offline mode and therefore the unavailability of the device is interpreted as an indication of a fault condition.
cdtest Command Line Syntax
-
-
/opt/SUNWvts/bin/cdtest standard_arguments -o dev=raw_device_name,
mode=mode,read=random|sequential,data=%_of_data,vol=volume,
audio=enable|disable,type=CD_type
-
| Argument | Explanation |
| dev=raw_device_name | Specifies the name of the raw device to be tested. |
| read=random|sequential | Indicates random or sequential read access. |
| data=%_of_data | Sets the percentage of data to be tested; you can specify 0 through 100 percent. |
| vol=volume | Controls the audio volume; you can specify 0 through 255; the default is 255. |
| audio=enable|disable | Enables or disables the audio test; you must connect headphones or a speaker to the audio jack on the CD player to hear audio output. |
| type=CD_type | Specifies the type of CD used for the test; the choices are: pdo, multi-session, sunos and others; the default is other. |
cdtest Error Messages
-
-
6000 Fail to seek at block <value>
-
Probable_Cause(s):
-
a. <system_error_message> b. Bad media
-
Recommended_Action(s):
-
a. Retry with a different CD-ROM
-
-
6001 Fail to read <number> bytes at block <number>
-
Probable_Cause(s):
-
a. <system_error_message> b. Bad media
-
c. Incorrect CD-ROM type passed to cdtest
-
-
6002 Data mode <value> not supported
-
Probable_Cause(s):
-
a. datamode has a value other than CD_DATAMODE1 or CD_DATAMODE2 (see cdio(7))
-
-
6003 Error occurred while playing audio track <number>
6004 Audio stop before complete at track <number>
6005 Unexpected audio status <value> received at track
<number>
6006 Fail in reading offset of the multi-session, offset
= <value>
-
Probable_Cause(s):
-
a. An incorrect value for cdtype has been passed to the cdtest
-
b. Bad media
-
-
6007 This is not a CD ROM Multi-Session disc!
-
Probable_Cause(s):
-
a. An incorrect value for cdtype has been passed to the cdtest
-
-
8000 Fail to open device <device_name>
-
Probable_Cause(s):
-
a. <system_error_message>
-
-
8001 Fail ioctl <name>
-
Probable_Cause(s):
-
a. <system_error_message>
-
-
8002 Fail ioctl <name>
-
Probable_Cause(s):
-
a. <system_error_message> b. No partitions on the disc
-
-
8003 Fail to allocate <number> bytes of memory
8004 Error occurred while reading TOC header
-
Probable_Cause(s):
-
a. Track numbers out of range; First track: <value>, Last track: <value>
-
Recommended_Action(s):
-
a. Retry with different CD-ROM
-
-
8005 Data miscompare while reading <number> bytes
starting from block <number>
-
Probable_Cause(s):
-
a. An incorrect value for cdtype has been passed to cdtest b. Bad media
-
-
8006 ioctl CDROMSTART failure (number of retries:
<value>)
|
|