ERROR: Copy of CD image failed


 
Thread Tools Search this Thread
Operating Systems Solaris ERROR: Copy of CD image failed
# 1  
Old 12-08-2013
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

Code:
# 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:

Code:
# 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?

Last edited by bartus11; 12-08-2013 at 09:59 AM.. Reason: Please use code tags
# 2  
Old 12-08-2013
Try running this to enable script debug mode:
Code:
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:
Code:
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).
# 3  
Old 12-08-2013
thank you for quick replay me
i have following your instruction and below the output
Smilie

Code:
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 #

# 4  
Old 12-08-2013
Run this:
Code:
cd /mnt
find . -depth -print | grep -v Tools/Boot | cpio -pdmu /export/install

# 5  
Old 12-08-2013
Code:
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


Last edited by Scott; 12-08-2013 at 03:41 PM.. Reason: Code tags, please...
# 6  
Old 12-08-2013
Run:
Code:
which cpio

# 7  
Old 12-08-2013
Code:
root@ai-stdby # which cpio
/usr/bin/cpio


Last edited by Scott; 12-09-2013 at 12:00 AM.. Reason: Code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to make an exact image copy of a SCSI hard drive in Solaris 8 OS?

To Solaris 8 Experts, Please let me know what's the best method / procedure as well as the Solaris 8 commands for accomplishing the following tasks on a production Sun Enterprise 250 Server running Sun Solaris 8 Operating System: 1. Make an exact image/copy of the SCSI Hard Drive in the... (3 Replies)
Discussion started by: ssabet
3 Replies

2. AIX

Cpio: copy failed - No space left on device when I use rpm

Hello, I want to install GCC gcc-4.8.1-2.src.rpm for AIX 6.1 when I lance my command rpm -i gcc-4.8.1-2.src.rpm I have this error unpacking of archive failed on file gcc-4.8.1.tar.bz2: cpio: copy failed - No space left on device I checked the free space and I am surpise becouse I have... (7 Replies)
Discussion started by: tatab355
7 Replies

3. Solaris

Copy image on Server-1 and Restores image on Server-2

Hi, I have done Copy image and Restores back on Windows. I have two solaris servers, one contains Solaris OS and Applications on Server-1. Want i required is want to copy image of Server-1 and restores the copied image on Server-2. First of all, is it possibile in Solaris. If it is then... (4 Replies)
Discussion started by: sarshads
4 Replies

4. Linux

Mount reiserfs .dsk image failed: can't read superblock

I have a failed 160 GB Western Digital Netcenter NAS disk and its image after failing in .DSK format. When I connect the disk to my ubuntu machine and typed: # losetup -o 512006144 /dev/loop1 /dev/sdc # mkdir /tmp/sdc # mount -r -t reiserfs /dev/loop1 /tmp/sdc I get my folders and... (0 Replies)
Discussion started by: jalil1408
0 Replies

5. Solaris

Rpcinfo: can't contact portmapper: RPC: Authentication error; why = Failed (unspecified error)

I have two servers with a fresh install of Solaris 11, and having problems when doing rpcinfo between them. There is no firewall involved, so everything should theoretically be getting through. Does anyone have any ideas? I did a lot of Google searches, and haven't found a working solution yet. ... (2 Replies)
Discussion started by: christr
2 Replies

6. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

7. UNIX for Advanced & Expert Users

FTP failed to copy mulitple files from multiple directory

I am using below scripts to copy all the files from multiple folders. By executing individually command i am able to copy all the files but using scripts only getting first file. System is ignoring the second CD and mget command. HOST=server.com USER=loginid PASSWD="abc" echo "open $HOST... (6 Replies)
Discussion started by: meetvipin
6 Replies

8. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

9. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies

10. UNIX for Advanced & Expert Users

Image copy (Clone)

Hi all, I need to perform a physical copy of a DIGITAL(HP) Server machine: is it possibe to do this in order to have an exact copy ( a clone to intend of)to another machine: including also the configuration files and the network configuration of the previous machine?. Someone said me I can use... (2 Replies)
Discussion started by: cicalons
2 Replies
Login or Register to Ask a Question