Operating System - HP-UX
1826417 Members
3669 Online
109692 Solutions
New Discussion

copying file from CD to /patches directory

 
SOLVED
Go to solution
chad_c
Super Advisor

copying file from CD to /patches directory

Hi. We are running an HPUX11.11 box. We mounted a CD that contains the June O6 Gold Pack. However we are unable to copy the file to the /patches directory.

We mounted by doing this command:

Marty # mount -r -F cdfs /dev/dsk/c0t0d0 /CDROM
Marty # pwd
/CDROM
Marty # ll
total 1143110
-r-xr-xr-x 1 4294967295 4294967295 1402880 Jun 7 2006 BUN_0001.110;1
-r-xr-xr-x 1 4294967295 4294967295 513546240 Jun 7 2006 GOL_0002.110;1
-r-xr-xr-x 1 4294967295 4294967295 45967360 Jun 7 2006 HWE_0003.110;1
-r-xr-xr-x 1 4294967295 4294967295 470324 Jun 7 2006 PHC_0004.TXT;1
-r-xr-xr-x 1 4294967295 4294967295 2775793 Jun 7 2006 PHC_0005.TXT;1
-r-xr-xr-x 1 4294967295 4294967295 749027 Jun 7 2006 PHC_0006.TXT;1
-r-xr-xr-x 1 4294967295 4294967295 1413078 Jun 7 2006 PHK_0007.TXT;1
-r-xr-xr-x 1 4294967295 4294967295 18945501 Jun 7 2006 PHS_0008.TXT;1
Marty #

When we attempt to copy the GOlD pack from the cd we get this:

Marty # cp GOL* /patches
cp: bad copy to /patches/GOL_0002.110;1: read: I/O error

Can anyone shed some light on why the file name is GOL_0002.110;1 and how to copy from the CD to the /patches directory?

Regards,
Chad
6 REPLIES 6
Mridul Shrivastava
Honored Contributor

Re: copying file from CD to /patches directory

you need to use swcopy ( just execute swcopy to start interactive session)..

Please post the error if there are any after executing swcopy.
Time has a wonderful way of weeding out the trivial
chad_c
Super Advisor

Re: copying file from CD to /patches directory

Hi.....tried the above....got the following

"Marty:/SD_CDROM/": this target is located on a read only file system, and cannot be opened for writing.

can anyone shed some light...usually we are able to cp directly from the contents of the disk

regards,
chad
Peter Nikitka
Honored Contributor

Re: copying file from CD to /patches directory

Hi,

don't forget to umount the CD before following Mriduls advice!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Mridul Shrivastava
Honored Contributor

Re: copying file from CD to /patches directory

As per the message "Marty:/SD_CDROM/": this target is located on a read only file system, and cannot be opened for writing."

The /SD_CDROM can not be modified, only read operation could be performed. Yuo try create a new mount point on another filesystem where you could copy other files also then try copying it.
Time has a wonderful way of weeding out the trivial
John Waller
Esteemed Contributor
Solution

Re: copying file from CD to /patches directory

Hi,

Think the problem might be due to the ;1. Try mounting your CD as follows

mount -F cdfs -o cdcase /dev/dsk/c0t0d0 /cdrom

cd /cdrom then do your copy the -o cdcase will covert the files to lowercase and strip off the ;1

chad_c
Super Advisor

Re: copying file from CD to /patches directory

.