Home > Commands A-M > Configuration Da-Dr

DRIVPARM


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Defines parameters for devices such as disk and tape drives when you start the operating system. You can use this command only in your CONFIG.SYS file.

The DRIVPARM command modifies the parameters of an existing physical drive. It does not create a new logical drive. The settings specified in the DRIVPARM command override the driver definitions for any previous block device.

UNDOCUMENTED in v3.20 through v3.40. Fully documented in v4.0.


Syntax

DEVICE=[drive:][\path\]DRIVPARM [/C] /D:n [/F:factor] [/H:heads] [/I] [/N] [/S:sectors] [/T:tracks]


Parameters
[drive:][\path\] (v3.20)
Specifies the location of the DRIVPARM file.

Switches
/C (v3.20)
Specifies that the physical disk drive can detect whether the drive door is closed (change-line support).
/D:n (v3.20)
Specifies the number of the physical floppy disk drive. Valid values for number are in the range 0 through 255. The first physical floppy disk drive (drive A) is drive 0; a second physical floppy disk drive is drive 1; a third physical floppy disk drive, which must be external, is drive 2; 128 is the first hard disk drive, 129 the second hard disk drive. For a computer with one floppy disk drive, drives A and B are both numbered 0; for a computer with multiple floppy disk drives, drive B is numbered 1.
/F:factor (v3.20)
Specifies the type of disk drive. Valid values for factor are:
Generally, if you use the /F switch, you can omit the /H, /S, and /T switches. Check the default values for these switches to make sure they are correct for the type of disk drive you are using. To determine the appropriate values for the disk drive, see the disk-drive manufacturer's documentation.
If you specify the /H, /S, and /T switches, you can omit the /F switch.
/H:heads (v3.20)
Specifies the number of heads in the disk drive. Valid values for heads are in the range 1 through 99. The default value is 2. To determine the correct value for your disk drive, see the disk-drive manufacturer's documentation.
/I (v3.20)
Specifies an electronically compatible 3.5-inch floppy disk drive. (Electronically compatible drives are installed on your computer and use your existing floppy-disk-drive controller.) Use the /I switch if your computer's ROM BIOS does not support 3.5-inch floppy disk drives. (Some IBM PC/AT-compatible systems do not have a ROM BIOS that supports 3.5-inch floppy disk drives.)
/N (v3.20)
Specifies a non-removable block device.
/S:sectors (v3.20)
Specifies the number of sectors per track. Valid values for sectors are in the range 1 through 99. The default value depends on the value of /F:factor:
To determine the correct value for your disk drive, see the disk-drive manufacturer's documentation.
/T:tracks (v3.20)
Specifies the number of tracks per side on the block device. Valid values for tracks are in the range 1 through 999. The default value is 40 when /F:0, otherwise the default value is 80. To determine the correct value for your disk drive, see the disk-drive manufacturer's documentation.

Related

DRIVER.SYS


Notes
Disk-drive change-line support

The term "change-line support" means that a physical disk drive can detect when the drive door is opened and closed. Change-line support allows faster operating system operation with floppy disks. The /C switch indicates to the operating system that the physical disk drive can support change-line error detection. To determine whether your disk drive has change-line support, see the disk-drive manufacturer's documentation.


Modifying or redefining a supported physical disk drive

For information about modifying the parameters of a physical disk drive that is supported by your hardware, see the DRIVPARM command. You can also use DRIVER.SYS to redefine a physical floppy disk drive.


Limitations on DRIVER.SYS

You cannot use DRIVER.SYS with hard disk drives. For information about substituting a logical drive letter for a hard disk drive, see the SUBST command.


Creating a duplicate logical drive

Suppose you want to use one physical floppy disk drive to copy files from one floppy disk to another. Because you cannot copy from and to the same logical drive by using the COPY or XCOPY command, you must assign a second drive letter to that physical drive.

If your system has just one physical floppy disk drive, you do not need to install DRIVER.SYS for this purpose. The operating system already assigns both logical drive A and logical drive B to that drive. Just copy files from drive A to drive B and switch disks when the operating system prompts you.

If your system has more than one floppy disk drive, then you need to use DRIVER.SYS to assign a second drive letter to the physical floppy disk drive.


Creating a new logical drive with different parameters

If you use DRIVER.SYS to assign a logical drive that has parameters different from those of the previously assigned logical drive, then the parameters of the previous logical drive will be invalid. Therefore, you should no longer use the drive letter corresponding to the previous logical drive.


Examples

Suppose your system has an internal tape drive with one head on drive D that is configured at startup to write 20 tracks of 40 sectors per track. To reconfigure this tape drive to write 10 tracks of 99 sectors each, add this command to your CONFIG.SYS file:

    DEVICE=DRIVPARM /D:3 /F:6 /H:1 /S:99 /T:10

Errorlevels

none.


Availability
External
DOS
v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
none
Windows NT
none