DI reports technical information about a disk. It displays the recommended values for the media as well as the actual values.
Usage: DI {Switches} <Drive Spec(s)>
Note : If no drive specifications are entered, the current drive is the only one displayed.
DI reports on the technical information about a disk. OS/2 reports two different types of data about a disk - the recommended values and the actual values. The recommended values are those OS/2 thinks that particular type of media SHOULD have; and the actual values are those the media ACTUALLY reports. Normally these should be the same.
The values which DI reports on are:
DI will scan all logical disk drives defined by the system, starting at drive A:. The drives are scanned in order, starting at A:, then B: and so on.
DI will scan all logical disk drives defined by the system, starting at drive C:. The drives are scanned in order, starting at C:, then D: and so on.
By default, DI works in logical disk mode. Logical disks are defined by FDISK when you partition your hard disks. A logical disk must be part (or all) of a physical disk. Multiple logical disks can be defined on a single physical (or real) hard disk. The -p switch changes the operation of DI to enable it to report on information about the physical disks attached to your system. If this switch is given, then only the physical disk information is returned. No logical disk information is returned.
In this mode DI will report on the number of cylinders (tracks), heads, and sectors per track. The definitions of cylinders etc, are the same as described as above, but they apply to the physical disk, not a logical disk.
DIDI will report on the information about the currently selected logical disk.
DI -hDI will report the information about all of your logical disks, starting at drive C:. If you have a large number of logical drives defined, you may get many screens of information returned to you. To overcome this enter:
DI -h | MOREThis will display the data one page at a time.
DI -pDI will display the technical information about all of the physical disks attached to your system. An example of this switch is:
Number of physical disks : 1Physical Disk : 1 Cylinders : 1307 Heads : 64 Sectors Per Track : 32
DI C: E:DI will report the information about logical disks C: and E: only.
DI C: -pDI will report only the physical disk information. No logical disk information about C: is returned.
A quick note about networks and logical drives is necessary at this point. When you use a network drive, it appears as a logical drive to your system. OS/2 does not support calls of the low technical nature necessary to return this level of information across networks. If you try DI on a network drive you will get an error message similar to the following:
SYS0065: Network access is denied.OS/2 is not inherently based on the FAT file system. It supports other disk formats using installable file systems. On a network, any remote drive to which you are connected may be of a totally different format - one which is not known to OS/2. It may be able to share files, but the internal file structure of the remote file server will not be generally known. For example, the format of UNIX and NETWARE drives could be anything. OS/2 does not need to know the internal formats of network drives. This is why calls of this nature are not supported by OS/2 across networks.