|HP-UX Reference > E
Itanium(R)-based Systems Only
HP-UX 11i Version 3: February 2007
efi_cp — copy to or from EFI file
efi_cp [-d devicefile] [-u] file1 file2
efi_cp [-d devicefile] file1 [file2]... dest-directory
efi_cp [-d devicefile] -r file_or_dir1 [file_or_dir2]... dest-directory
efi_cp copies files between HP-UX and EFI file systems.
The EFI file system is based on the FAT file system and used by the Itanium-based system BIOS to locate an HP-UX bootloader. See efi(4).
Without the -u option, efi_cp copies from an HP-UX file system to the EFI volume specified by devicefile; in this case, the destination should be relative to the root of the EFI volume specified by devicefile. Use the -u option to copy from an EFI file system to an HP-UX file system; with the -u option, only a single regular file may be copied at a time.
With two arguments:
With more than two arguments, the final argument must be an existing directory. If any of the other arguments is a directory, you must use the -r option, which specifies that the source directory and the subtree rooted there are to be copied to the destination directory.
Options can be used singly or combined in any order before the file names. The space between option and argument is optional.
efi_cp returns exit code 0 if the copy is successful. Otherwise it prints a diagnostic message and returns nonzero.
All the following examples copy to or from the EFI file system on device /dev/rdsk/c1t4d0s1.
Copy bootprogram into directory /abc/def in the EFI file system on the specified device:
efi_cp -d /dev/rdsk/c1t4d0s1 bootprogram /abc/def/
Copy all files in current directory into directory /abc/def/ in the EFI file system on the specified device
efi_cp -d /dev/rdsk/c1t4d0s1 * /abc/def/
Copy bootprogram into directory /abc/def/ in the EFI file system on the specified device and rename it boot1:
efi_cp -d /dev/rdsk/c1t4d0s1 bootprogram /abc/dev/boot1
Copy bootloader into the EFI boot directory of the EFI file system on the specified device:
efi_cp -d /dev/rdsk/c1t4d0s1 bootloader /EFI/HPUX
Copy bootloader into /EFI/HPUX/ of the EFI file system on the device specified in the EFI_PARTITION environment variable and rename it to hpux.efi:
efi_cp bootloader /EFI/HPUX/hpux.efi
Copy /EFI/HPUX/AUTO from the EFI file system on the specified device into the current HP-UX directory:
efi_cp -d /dev/rdsk/c1t4d0s1 -u /EFI/HPUX/AUTO .
Using a persistent device special file (dsf) copy /EFI/HPUX/AUTO from the EFI file system on the specified device into the current HP-UX directory (see intro(7)):
efi_cp -d /dev/rdisk/disk7_p1 -u /EFI/HPUX/AUTO .