Operating System - HP-UX
1833162 Members
4050 Online
110051 Solutions
New Discussion

Very simple question....copying files.

 
Chris Bidwell
Advisor

Very simple question....copying files.

Okay, this may seem redundant, but I've run into a stump and cannot figure a way around this. I am trying to copy a device driver TAR file from my CD to the HDD. The file name says: HP0AA_ML.TAR on the CD if it were being viewed via a windows environment. When I look at it on my HPUX box, it displays as HP0AA_ML.TAR;1. I was trying to cp that file to another directory under root with the same filename without the ;1 and it will not let me do this. What am I missing? Is this a DOS conversion issue?

Regards,
Chris Bidwell
For every action there is an equal or opposite reaction!
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: Very simple question....copying files.

You need to mount your CD on the HPUX box as follows:

mount -o cdcase /dev/dsk/c?t?d? /cdrom

MANOJ SRIVASTAVA
Honored Contributor

Re: Very simple question....copying files.

Hi Christopher

Please try one of the following:

1. mount -o cdcase /dev/dsk/c?t?d? /cdrom

or try the pfs option

2. pfs_mount -x lower_case -x no_version /dev/cxtydz /cdrom.

after running

/usr/sbin/pfs_mountd &
/usr/sbin/mountd &


Manoj Srivastava
MANOJ SRIVASTAVA
Honored Contributor

Re: Very simple question....copying files.

Also the reason the copy is not working is because the mount is not proper to the format stored on the CD.

Manoj Srivastava
Christopher McCray_1
Honored Contributor

Re: Very simple question....copying files.

You can also do the following:

cp *.TAR* alt_dir/file_name.tar

It works for me.
It wasn't me!!!!
Marcin Wicinski
Trusted Contributor

Re: Very simple question....copying files.

Hi,

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

works fine,

Good luck
Marcin Wicinski
Satish Y
Trusted Contributor

Re: Very simple question....copying files.

Hi,
U can try with enclosing file to be copied with double quotes.
Cheers...
Satish.
Difference between good and the best is only a little effort
Steve Post
Trusted Contributor

Re: Very simple question....copying files.

I think that semi colon is being treated like a carriage return. You would need to put a backslash "\" in front of it. Your windows-like filename is not being handled very nicely after the cd is mounted. I can deduce from the responses that those -o options will let the mounted cdrom be seen correctly.
Joe Colucci_1
Frequent Advisor

Re: Very simple question....copying files.

Christopher,

The problem you are encountering is that the CD is in Rock Ridge format. Oracle CD's are also in this format.

To mount the cd, use pfs_mount instead of mount. Then the files will look normal when you do an ls.

Syntax:
pfs_mount /dev/dsk/cxtxdx /

Nots on pfs_mount:

- DO NOT use umount to unmount a CD you used pfs_mount to mount. Use pfs_umount. If you use umount, you will probably need to reboot the machine to free the device or directory.

- pfsd, pfsd.rpc, pfs_mountd, and pfs_mountd.rpc must all be running for pfs_mount to work. See the man page on pfs_mount for more info.

This is DEFINATELY your problem.

--Joe