Technical Document # - 8262710
____________________________________________________________
Family: Operating Systems
Product: OS/2 (All Releases)
Release: 3.0, 4.0
Syslevel:

Last Updated: 01/19/1998
____________________________________________________________

TITLE

OS/2 FDISK and Installation

DESCRIPTION

FDISK Partition Setup Errors

RESOLUTION

OS/2 Install FDISK Notes

If you are having a problem with OS/2 installation related to hard drive
configuration and partition size do the following:


1. Set the prompt to display return codes from executables. From
   an OS/2 command prompt, type SET PROMPT=[$R $P]; then press Enter.

2. From the command prompt, query FDISK information as follows:

 
FDISK /QUERY

3. If any ***BIOS xxx statements are displayed from the FDISK
  query, you may have problems. This indicates that the
  system hardware BIOS can only see a limited amount of the hard
  drive space available. The number after the ***BIOS indicates how
  many megabytes of drive space the BIOS can see. Any partition
  that is not inside of this range will not be seen by the BIOS.
  There is nothing that OS/2 can do about this; it is a hardware
  BIOS problem.


4. The command prompt return code ($R) from the FDISK /QUERY command
  should be 0; if not, make note of what it is.


5. Perform an install FDISK query with the following statement:

 
FDISK /SI:SIZE /SIZE:35

 
Note: OS/2 Warp 4 uses /SIZE:100 instead of /SIZE:35.

   The command prompt return code ($R) should be 24; if not, make a
   note of what it is.


How to Use FDISK Command Line Parameters

* Some FDISK parameters are only used for restrictors; this means that they
  have no function if you are trying to create a partition. These parameters are:

 
/FSTYPE

  - Used to select a partition with a specific file system type like FAT.


 
/VOLID  [This option is not valid use /NAME instead]

  - Used to select a partition with a particular volume ID number.  This
    is like the
/NAME parameter, but is used when no name has been assigned
    to a particular partition. This is a new function for OS/2 Warp 4.


 
/NAME

  - Used to select a partition with a specific name.


 
/BOOTABLE

  - Used to select a partition that is bootable.



* Other parameters are:

 
/QUERY

   - Used to get current partition setup information for a system.


 
/CREATE

   - Used to create a new partition. This can add the partition to the
     Boot Manager menu if you specify a
:name with it, for example, /CREATE:OS2V4.
     This creates a partition and adds the new partition to the
   
  Boot Manager menu as OS2V4.

 
/DELETE

   - Used to delete a specific partition defined with restrictors or all
     partitions on a specific drive if used as
/DELETE:ALL.

 
/DISK

   - Used to select a specific hard disk for an operation.


 
/SETNAME

   - Used to add a partition to the
Boot Manager menu or remove a partition
     from the
Boot Manager menu.

 
/SETACCESS

   - Used to define the C: partition if a hard drive has more than one
     primary partition.


 
/STARTABLE

   - Used to set a partition as startable. This operation is only valid
     on primary partitions.


 
/START

   - Used with
/CREATE parameter to define whether the new partition should be
     at the start (top) of the drive or end (bottom) of the drive. OS/2 Warp
     4 allows for a
MB variable to define the starting location.

  /SIZE
 
   - Used to define the size of a new partition with the
/CREATE parameter,
     or used as a restrictor to select a specific partition.


 
/VTYPE

   - Used to define a partition as primary or logical with the
/CREATE
     parameter or used as a restrictor to select a specific partition.


 
/BOOTMGR

   - Used with the
/CREATE parameter to create a Boot Manager partition.

 
/SYSTEM

   - Used to create special system partitions, such as IML/FE type, with the
 
    /CREATE parameter or as a restrictor to define a specific partition.

 
/NEWMBR

   - Used to rewrite the Master Boot Record information.


 
/FILE

   - Used to pass FDISK a response file with a set of FDISK operations
     to perform.


 
/HELP

   - Used to display information about FDISK parameters.



FDISK Command Line Examples

FDISK /CREATE /BOOTMGR /START:T

 - Create a
Boot Manager partition the using first available free space
   at the start of the drive.


FDISK /CREATE:OS2V40 /START:T /DISK:1 /VTYPE:1 /SIZE:300

 - Create a primary partition at the top of first drive and add this
   partition to the
Boot Manager as OS2V40.

FDISK /CREATE /DISK:1 /VTYPE:2

 - Create a logical partition on disk 1 using all free disk space.


FDISK /DELETE:ALL /DISK:2

 - Delete all partitions on second disk. Note that this will not delete
   any system (IML/FE) type partitions.


FDISK /DELETE /VTYPE:2 /FSTYPE:FAT /DISK:1
FDISK /DELETE /VTYPE:2 /FSTYPE:06 /DISK:1


 - Delete the logical FAT partition on first disk.


FDISK /DELETE /SIZE:400 /DISK:2

 - Delete the partition on disk 2 that is 400 MB size.


FDISK /DELETE /DISK:1 /BOOTABLE:1 /VTYPE:2

 - Delete a bootable logical partition.


FDISK /DELETE /VOLID:0100101800

 - Delete partition on disk 1 (01) with volume name 00101800.


FDISK /DELETE /NAME:WARP

 - Delete partition with the
Boot Manager name WARP.

FDISK Response File Example

/CREATE,/BOOTMGR,/DISK:1
/CREATE:OS2V4,/SIZE:300,/VTYPE:1,/DISK:1
/CREATE:MAINT,/SIZE:20,/VTYPE:2,/DISK:1,/START:B
/CREATE,/VTYPE:2,/DISK:1
/CREATE,/VTYPE:1,/DISK:2


Note: There is a restriction on the size of an FDISK command; if the command
      is too long, the last parameter or so will not be used.

How to Use SETBOOT

SETBOOT is used to reboot the system for CID (Configuration, Installation, and Distribution) procedures and control some of the Boot Manager functions. The following parameters are available:

/B

- Requires the
Boot Manager to be present; reboots the system,
  and displays the Boot Manager menu.

/IBD:d

- Reboots the system, configures
Boot Manager to not display
  a menu and start up on drive d.


/IBA:name

- Reboots the system, configures
Boot Manager to not display
   a menu and startup on drive with name. For a partition name
   containing space characters, enclose the name in quotation marks.

To setup the Boot Manager to always boot a specific partition and not
display a menu use the following two commands:


/n:name

- n is a number from 1 to 3;
name is the name of a partition as it
  is listed in the
Boot Manager menu.

/X:n

- Sets the auto boot partition to
n, which can be a number from 0 to 3.
  0 resets the
Boot Manager menu to display.

/Q

- Query information from
Boot Manager partition

/T

- Set the timeout delay for the display of the
Boot Manager menu. A
  value of 0 causes the menu not to display.
/T:NO sets
  the
Boot Manager menu to timeout value.

IDE Hard Drive BIOS Setup

It is the responsibility of the PC system hardware BIOS to provide access to the hard drive so that software programs can use the hard drive. This is done using an industry standard BIOS call into the system interrupt 13 (INT13). This industry standard only allows 10 bits to define a cylinder to select for an operation. This limits the BIOS INT13 to using 1024 cylinders or less.  In the past, the BIOS INT13 code mapped INT13 cylinder requests directly to physical cylinders on the IDE hard drive. Because new IDE type hard drives commonly have more than 1024 cylinders, the industry was confronted with a problem. To get around this problem the industry has developed a
new standard for INT13 BIOS with the use of a LBA (Logical Block Addressing) mode for IDE type hard drives. The new LBA mode BIOS INT13 code takes the drive head count and increases it logically, while decreasing the cylinder count. Normal conversions double the head count and cut the cylinder count in half. They also quadruple the head count and cut the cylinder count to
one fourth. Some new versions of BIOS allow for eight times the head count and cut the cylinder count to one eighth.


When you configure a new hard drive for a system, it is recommended that you make sure that the INT13 BIOS can map all hard drive cylinders into the 1024 range.




Document Info

Related Docs:  


__________________________________________________________________________________________________________________________________
IBM disclaims all warranties, whether express or implied, including without limitation, warranties of fitness and merchantability with respect to the information in this document. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright (c) 1994, 1996 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.
__________________________________________________________________________________________________________________________________