API Reference: Libraries


API Reference: Routines

mkbootFd( )

NAME

mkbootFd( ) - create a boot floppy disk from a specified file

SYNOPSIS

STATUS mkbootFd
    (
    int  drive,   /* drive number:  (0 - 3)        */
    int  fdType,  /* type of floppy disk: (0 - 1)         */
    char *in      /* name of file to read: "bootrom.bin" */
    )

DESCRIPTION

This command creates a boot floppy disk from a specified file

EXAMPLES

The following example makes a bootable floppy disk from the file named bootrom.bin to the floppy drive 0: "a:", which contains a type 0 diskette.

    -> mkbootFd 0, 0, "bootrom.bin"

RETURNS

OK, or ERROR if there is an error copying from in to the disk.

ERRNO

Not Available

SEE ALSO

mkboot


API Reference: Routines

mkbootAta( )

NAME

mkbootAta( ) - create a boot ATA disk from a specified file

SYNOPSIS

STATUS mkbootAta
    (
    int  ctrl,   /* controller number:      (0 - 1)          */
    int  drive,  /* drive number:  (0 - 1)          */
    char *in     /* name of file to read: "bootrom.bin" */
    )

DESCRIPTION

This command creates a ATA boot disk from a specified file Note that the disk should have a FAT16 or a FAT12 volume. FAT32 volumes are not supported.

EXAMPLES

The following example makes a bootable hard disk from the file named bootrom.bin to the ATA ctrl 0, drive 0: "c:" drive.

    -> mkbootAta 0, 0, "bootrom.bin"

RETURNS

OK, or ERROR if there is an error copying from in to the disk.

ERRNO

Not Available

SEE ALSO

mkboot