Operating System - HP-UX
1753943 Members
9072 Online
108811 Solutions
New Discussion юеВ

copy files from cd to server

 
Cathy Arora
Frequent Advisor

copy files from cd to server

Hi All;
I am fairly new to Unix environment. I am trying to copy files from cd to hp unix 11.00
server using swcopy. first of all is it OK?
I am not getting any prompt per say.

Thanks
raj
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: copy files from cd to server

What kind of files are you trying to copy? Is the CD mounted?

If you are just trying to copy regular files you can do:

# cp /cdrom/files_to_copy /destination_dir

Cathy Arora
Frequent Advisor

Re: copy files from cd to server

These are image files (microstation drawings)
which are on this CD and I have to copy thsese files ot unix server.
SO I would like to know all the steps to accomplish it.
also what is SD_CDROM ?
I see cdrom and SD_CDROM in root.
Thanks
raj
Vitek Pepas
Valued Contributor

Re: copy files from cd to server

First: run 'ioscan -funC disk' to find your CD-ROM device. Look for the CD-ROM in description column and not the device path (something like '/dev/dsk/c1t2d0').

Second: mount cdrom filesystem
'mount -r -F cdfs /dev/dsk/cxtydz /cdrom'

Then: list the contents of /cdrom directory and if everything is OK copy the files.
Vitek Pepas
Valued Contributor

Re: copy files from cd to server

If the file names will look strange, you can add '-o cdcase' option in the mount command.
Vitek Pepas
Valued Contributor

Re: copy files from cd to server

In my first reply I meant "and note the device path".
Sritharan
Valued Contributor

Re: copy files from cd to server

Hi,

1. ioscan to check the path of the cd-rom
ioscan -funC disk

2. mount the cd-rom
mount /dev/dsk/cxtxd0 /cdrom

3.go into the cdrom directory
cd /cdrom

4.copy the file that you want;to path that you want
cp -p /cdrom/ //


Good Luck
Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie