Operating System - HP-UX
1753844 Members
7662 Online
108806 Solutions
New Discussion юеВ

Re: efi_cp error: Invalid EFI partition:

 
SOLVED
Go to solution
dictum9
Super Advisor

efi_cp error: Invalid EFI partition:

In my mirror script in ITA (11.23), the following blows up, any idea why?

I am attaching the complete mirror script. It worked before many times so what's going on now.

# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri Invalid EFI partition: /dev/rdsk/c2t1d0s1
efi_cp: open device failed(errno = 2)

7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: efi_cp error: Invalid EFI partition:

Shalom,

Is this disk device present on the target system:

/dev/rdsk/c2t1d0s1

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: efi_cp error: Invalid EFI partition:

This line will ask you somethink like "sure to proceed?" - you need to answer "yes", "y" only will fail.

idisk -wf $PARTITION_FILE /dev/rdsk/$MIR_DISK



This line is behind the "echo"

efi_fsinit -d /dev/rdsk/${MIR_DISK}s1


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dictum9
Super Advisor

Re: efi_cp error: Invalid EFI partition:

> Is this disk device present on the target system:

It's not.... I just realized, the system I have is 11.31, so something must have changed between 11.23 and 11.31, this script no longer works.

Is there a current mirror script for 11.31 Itanium?

dictum9
Super Advisor

Re: efi_cp error: Invalid EFI partition:


Never mind, it _is_ 11.23

Why is that device file missing?
dictum9
Super Advisor

Re: efi_cp error: Invalid EFI partition:

This is the problem. There is a missing device file for the primary disk.


#: ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 2 0/1/1/1.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s1 /dev/rdsk/c3t0d0s3

dictum9
Super Advisor

Re: efi_cp error: Invalid EFI partition:

I found out what the problem is, there was confusion between primary and mirror disk. Just because the disk is the first one in the ioscan list, doesn't mean it's primary.

I swapped them and the script runs nicely.

dictum9
Super Advisor

Re: efi_cp error: Invalid EFI partition:

.