HPlogo HP-UX Reference > E

efi_mkdir(1M)

Itanium(R)-Based Processor Family Only
HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

NAME

efi_mkdir — make an EFI directory

SYNOPSIS

efi_mkdir [-d devicefile] [-p] dirname

DESCRIPTION

efi_mkdir makes an EFI directory.

The EFI file system is based on the FAT file system and used by the Itanium(R)-based system BIOS to locate an HP-UX bootloader. See efi(4).

efi_mkdir creates directory dirname in the EFI volume specified by devicefile. If dirname already exists, efi_mkdir exits with a diagnostic message, and the directory is not changed. If more than one subdirectory needs to be created to make dirname, efi_mkdir exits with a diagnostic message and the directory is not changed, unless the -p option is specified. dirname should be relative to the root of the EFI volume specified by devicefile, not to an HP-UX file system.

Options

Options can be used singly or combined in any order before the file names. The space between option and argument is optional.

-d devicefile

devicefile is the device special file of the EFI file system where the directory is to be made. Without the -d option, efi_mkdir uses the device file specified in the environment variable EFI_PARTITION if it is defined. The -d option overrides the EFI_PARTITION environment variable.

-p

Create intermediate directories as necessary.

RETURN VALUE

efi_mkdir returns exit code 0 if the directory is made successfully. Otherwise it prints a diagnostic message and returns nonzero.

0

Successful completion.

>0

Error condition occurred.

EXAMPLES

Create directory hp-ux in device file /dev/rdsk/c1t4d0s1, which contains an EFI file system:

efi_mkdir -d /dev/rdsk/c1t4d0s1 hp-ux

Create a directory /abc/def/ in device file /dev/rdsk/c1t4d0s1, which contains an EFI file system, when /abc does not exist yet:

efi_mkdir -d /dev/rdsk/c1t4d0s1 -p /abc/def/

AUTHOR

efi_mkdir was developed by HP.