Knowledge Base

How to Add a SCSI hard drive for SCO Unix OpenServer 5.0.x

Establish whether the hard drive has information you want to keep.

If the hard drive does have data you want to preserve, DO NOT follow the instruction in this article. See the article “How to add a SCSI disk that has data.”

After physically installing the new hard drive and checking for correct termination and proper cable connections, you are ready to install the new hard drive into the operating system.

  1. Boot the system and enter single-user mode by typing the root password at the “control-d” prompt.
  2. Enter:

    #mkdev hd

    In the information that will be displayed, you should see the following:

    1) Add a hard disk to IDE controller
    2) Add a hard disk to SCSI controller

    Enter ‘1’, ‘2’ or enter ‘q’ to quit.

    Enter a ‘2’ to add a hard disk to the SCSI controller.

    The next prompt will be the following:

    Enter the prefix of the SCSI host adapter that supports this device or press for the default: ‘xxxx’ Enter h for a list of host adapters or enter q to quit:

    where ‘xxxx’ is the driver name of the SCSI controller to which the existing hard drive is connected.

    Press to select the default adapter (if this is the adapter that the new hard drive is connected to), or enter the proper adapter driver name if the new drive is connected to an adapter other than the default. (This assumes any other adapter has already been configured on the system.)

    The next prompt will be the following:

    Which ‘xxxx’ SCSI host adapter supports this device?

    Select 0-4, or enter q to quit:

    where ‘xxxx’ once again is the driver name of the SCSI controller to which the hard drive being added is connected.

    If you only have one SCSI controller, enter ‘0’.

    The next prompt will be the following:

    What SCSI Bus is this device attached to?

    Press to use the default:0

    Select 0-n, or h for help, or q to quit:

    Press for the default “0” if you have only one SCSI controller and it has the new hard drive on the First Bus.

    The next prompt will be the following:

    What is the Target ID for this device?

    Select 0-15, or h for help, or q to quit:

    The SCSI ID is determined by jumper settings on the new hard drive. You will need to refer to the documentation included with the hard drive to determine the proper ID, or use the SCSI Controller’s utility to determine the ID. See the Controllers documentation to find out if this utility is available for your controller and how to use it.

    Enter the proper SCSI ID

    The next prompt will be the following:

    What is the LUN of this Device?

    Press to use the default: 0

    Select 0-7, or h for help, or q to quit:

    In most cases, the LUN will be 0.

    The listing of the Host Adapter Type, Device, Adapter Number, ID, LUN and BUS along with the following prompt wil display:

    Update SCSI configuration? (y/n)
    Enter ‘y’ and press

    The SCSI configuration file will now be updated. You will be prompted to relink the kernel; enter a ‘y’ to do so. At the next prompt, to have the kernel boot by default, enter a ‘y’ , and then enter a ‘y’ to rebuild the kernel environment.
  3. When the system has returned to a prompt, type the following shut down the system:

    #/etc/init 0
  4. Press any key to restart the system when the “Safe to Power Off” message appears.
  5. Once the system has started, again go into single-user mode and Enter:

    #mkdev hd
    (This needs to be run a second time.)

    Enter the same information you entered above.
  6. You will see a message that the Disk is already configured and that you can choose to overwrite all or part of the present contents of your hard disk.

    Do you wish to continue? (y/n)

    Enter ‘y’ and press
  7. You will now be brought into fdisk.
    Check that the ‘%disk’ settings are proper for the new hard drive, since any changes in fdisk or divvy can wipe information off the drive.

    At this point you can set up the new hard drive partitions.
  8. Once you have set up the new hard drive partitions, choose ‘q’ to quit.
  9. You will now see a list of choices that will allow you to scan the new UNIX partition for bad sectors pots on the hard drive. The conservative choice here is to select ‘1’ to scan the entire UNIX partition. However, in most cases this will not be necessary. Once you have scanned the drive, or if you choose not to, select ‘q’ to quit.
  10. The next choice is to select the number of bad blocks for which to allocate space; press to accept the default.
  11. Now you will be brought into the divvy table and can set up the filesystems on the new hard drive. Once you have set up the filesystems, select ‘q’ to quit, then ‘i’ to install.

2108 reads
How did you like this article?0000