System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy a directory from unix to /EFI

Sreer
Valued Contributor

How to copy a directory from unix to /EFI

Hello Gurus,
I need to copy a directory from unix to /EFI
I tried efi_cp and efi_cp -r

Its for test purpose only.Or any idea to hav /stand backup in /EFI/test etc?
eg:

# efi_cp -d /dev/rdsk/c3t2d0s1 /stand/* /EFI/skr
efi_cp: cannot copy directory. Use -r for directory copying

# efi_cp -r -d /dev/rdsk/c3t2d0s1 /stand/* /EFI/skr
efi_cp: invalid path

rgds Sreekumar
5 REPLIES
sen_ux
Valued Contributor

Re: How to copy a directory from unix to /EFI

sysntax is correct.You are trying to copy a large directory.Try copying a single file using the same syntax.
OldSchool
Honored Contributor

Re: How to copy a directory from unix to /EFI

sen_ux> "syntax is correct.You are trying to copy a large directory.Try copying a single file using the same syntax. "

====================================================================================

from the man pages:


http://docs.hp.com/en/B9106-90008/efi_cp.1M.html

the syntax is:

efi_cp [-d devicefile] -r file_or_dir1 [file_or_dir2...] dest-directory


the "-r" is supposed to be followed by a directory or file name, not the "-d". Try

efi_cp -d /dev/rdsk/c3t2d0s1 -r /stand /EFI/skr
sen_ux
Valued Contributor

Re: How to copy a directory from unix to /EFI

It is not mandatory.It works either way.
I think the skr directory doesn't exist.
While copying a directory , the destination directory should exist.(from my testing).


Lijeesh N G_1
Respected Contributor

Re: How to copy a directory from unix to /EFI

Hi,

Check the directory /EFI/skr is exists or not and **free space available** by,
#efi_ls -d /dev/rdsk/c3t2d0s1 /EFI/

If /EFI/skr is not exists create it with,
#efi_mkdir -d /dev/rdsk/c3t2d0s1 /EFI/skr

Try to copy again with,

#efi_cp -r -d /dev/rdsk/c3t2d0s1 /stand/* /EFI/skr/

Reagrds,
LIJEESH N G
Sreer
Valued Contributor

Re: How to copy a directory from unix to /EFI

Hello,



thnks for your replies.
The directory skr is already created under /EFI.

I need to check with the command

efi_cp -d /dev/rdsk/c3t2d0s1 -r /stand /EFI/skr


I will let you know the progress as now I dont hav access to my server.

Thnks for your support!

Rgds Sree