ERROR: Copy of CD image failed

Hi

I tried to boot as single-user mode on my sunfire t1000 to change my root password since the guy has left the company without give us the root password.

anyhow since this machine not have attached with cd/dvd/usb so the only think that to do it through Jumpstart

now i tried to preparing my other machine sunfire v100 running solaris 9 as Jumpstart Server

and i have download the image of of Solaris 10 Sparc .iso and following the bellow steps as mention it on other support forums/blogs

# lofiadm -a sol-10-u11-ga-sparc-dvd.iso

/dev/lofi/1
# mount -o ro -F hsfs /dev/lofi/1 /mnt

Now i have created the installation directory on the server:

# mkdir -p /export/install


# cd /mnt/Solaris_10/Tools

# ./setup_install_server /export/install

Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
ERROR: Copy of CD image failed 

so my issue stop here

ERROR: Copy of CD image failed

I have tried many different ways to solve this with no successful

I add this
set hsfs:nhsnode=4096 on /etc/system and reboot the machine since no error appear on /var/adm/messages for the same
I also re download solaris image either CD or DVD.
I have also check the disk space there is enough space on /export. Before i starting run the script

I can't determine whats

Any suggestions?

Try running this to enable script debug mode:

cp /mnt/Solaris_10/Tools/setup_install_server /tmp
perl -i -pe '$.==1&&!/-x/&&s/$/ -x/' /tmp/setup_install_server
mount -F lofs /tmp/setup_install_server /mnt/Solaris_10/Tools/setup_install_server

Then run the script again:

cd /mnt/Solaris_10/Tools
./setup_install_server /export/install

You should see lots of output. Show us last 20 lines of the output (right before the error message).

thank you for quick replay me
i have following your instruction and below the output
:slight_smile:

root@ai-stdby # ./setup_install_server /export/install
+ umask 022 
dial_pid=0
+ trap cleanup_and_exit 1 1 2 3 15 
PATH=/usr/bin:/usr/etc:/usr/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,UltraAX-i2/sbin:/opt/sun/bin:/opt/SUNWstade/bin:/opt/SUNWexplo/bin:/opt/CTEact/bin:/opt/SUNWsrspx/bin+:/data/oracle/Ora92/bin:/usr/local/bin:/usr/local/apache2/bin:/usr/local/mysql/bin
ID=/usr/bin/id
SED=/usr/bin/sed
CHMOD=/usr/bin/chmod
WANBOOT_SUPPORTED_PLATFORMS=sun4u
+ [ -f /etc/vfstab ] 
Opts_df=-k
Opts_du=-ks
+ uname -p 
Arch=sparc
myname=./setup_install_server
boot_server=0
wanboot=0
+ [ /export/installx != x -a 1 -gt 1 ] 
+ [ 1 -ne 1 ] 
+ validate_uid 
+ /usr/bin/id 
+ /usr/bin/sed s/uid=\([0-9]*\)(.*/\1/ 
uid=0
+ [ 0 != 0 ] 
+ check_target /export/install 
+ echo /export/install 
+ grep ^/.* 
status=0
+ [ 0 != 0 ] 
+ [ ! -d /export/install ] 
+ df -l /export/install 
+ [ 0 -ne 0 ] 
+ df -k /export/install 
+ read junk 
+ read j1 j2 j3 size j5 
+ echo 4787988 
diskavail=4787988
target=/export/install
+ shift 
+ [ -n  ] 
+ pwd 
+ dirname ./setup_install_server 
TOOLS_DIR=/mnt/Solaris_10/Tools/.
+ cd /mnt/Solaris_10/Tools/. 
+ pwd 
TOOLS_DIR=/mnt/Solaris_10/Tools
+ basename ./setup_install_server 
myname=setup_install_server
+ cd /mnt/Solaris_10/Tools/../.. 
+ pwd 
PROD_DIR=/mnt
+ [ ! -f /mnt/.cdtoc ] 
+ [ -n  ] 
BOOT_DIR=/mnt/Solaris_10/Tools/Boot
BOOT_ARCHIVE=
BOOT_ARCHIVE_DIR=/mnt/boot
BOOT_ARCHIVE_I=/mnt/boot/x86.miniroot
BOOT_ARCHIVE_S=/mnt/boot/sparc.miniroot
+ [ ! -f /mnt/boot/sparc.miniroot -a ! -f /mnt/boot/x86.miniroot ] 
+ [ -f /mnt/boot/sparc.miniroot -a -f /mnt/boot/x86.miniroot ] 
+ [ -f /mnt/boot/sparc.miniroot ] 
BOOT_ARCHIVE=/mnt/boot/sparc.miniroot
+ [ -z /mnt/Solaris_10/Tools/Boot ] 
+ [ ! -d /mnt/Solaris_10/Tools/Boot ] 
+ [ ! -f /mnt/boot/sparc.miniroot -a ! -f /mnt/Solaris_10/Tools/Boot/multiboot ] 
+ [ 0 -eq 1 ] 
+ echo Verifying target directory... 
Verifying target directory...
+ find /export/install -print 
+ wc -l 
cnt=       1
+ [ 1 -gt 1 ] 
+ /bin/ls -d /mnt/Solaris_10 
dir_name=/mnt/Solaris_10
+ expr /mnt/Solaris_10 : .*/\(.*\) 
VERSION=Solaris_10
+ [ 0 -eq 1 ] 
+ echo Calculating the required disk space for the Solaris_10 product 
Calculating the required disk space for the Solaris_10 product
+ dial_on 
+ [ -x /mnt/Solaris_10/Tools/dial ] 
dial_pid=3984
+ /mnt/Solaris_10/Tools/dial 
+ du -ks /mnt 
+ read size name 
+ echo 2243916 
prod_space_required=2243916
+ dial_off 
+ [ -x /mnt/Solaris_10/Tools/dial -a 3984 -ne 0 ] 
+ /mnt/Solaris_10/Tools/dial 3984 
dial_pid=0
+ echo Calculating space required for the installation boot image 
Calculating space required for the installation boot image
+ [ /mnt/Solaris_10/Tools/Boot = /mnt/Solaris_10/Tools/Boot ] 
+ [ ! -h /mnt/Solaris_10/Tools/Boot ] 
total_space_required=2243916
+ [ 2243916 -gt 4787988 ] 
+ echo Copying the CD image to disk... 
Copying the CD image to disk...
+ cd /mnt 
+ dial_on 
+ [ -x /mnt/Solaris_10/Tools/dial ] 
+ /mnt/Solaris_10/Tools/dial 
dial_pid=4043
+ [ -f /etc/vfstab ] 
+ find . -depth -print 
+ grep -v Tools/Boot 
+ cpio -pdmu /export/install 
copy_ret=1
+ dial_off 
+ [ -x /mnt/Solaris_10/Tools/dial -a 4043 -ne 0 ] 
+ /mnt/Solaris_10/Tools/dial 4043 
dial_pid=0
+ [ 1 -ne 0 ] 
+ print_err ERROR: Copy of CD image failed 
+ echo ERROR: Copy of CD image failed 
ERROR: Copy of CD image failed
+ cleanup_and_exit 1 
+ dial_off 
+ [ -x /mnt/Solaris_10/Tools/dial -a 0 -ne 0 ] 
dial_pid=0
+ exit 1 
root@ai-stdby # 


Run this:

cd /mnt
find . -depth -print | grep -v Tools/Boot | cpio -pdmu /export/install
root@ai-stdby # find . -depth -print | grep -v Tools/Boot | cpio -pdmu /export/install


cpio: cannot open tmpfile /tmpdir/cpiovtaGLp, errno 2, No such file or directory
1 errors

Run:

which cpio
root@ai-stdby # which cpio
/usr/bin/cpio

What does this show:

grep TMPDIR /mnt/Solaris_10/Tools/setup_install_server
env | grep -i tmp
1 Like

thank you for your effort
issue has been solved

TMPDIR=/tmp 
./setup_install_server