Operating System - HP-UX
1823988 Members
3948 Online
109667 Solutions
New Discussion юеВ

can't copy file from cd rom

 
SOLVED
Go to solution
ng_7
Regular Advisor

can't copy file from cd rom

hi, expert,

need your expertise, i am facing problem on copying file from cdrom, i mount a cd rom using following command

mount -o ro,rr /dev/dsk/c3t2d0 /cdrom

When I list the file, I notice that the file name on CDROM have a ';1' at the end of the file name, the original file is P5035661.ZIP
db1:/als# ll
total 98724
-r-xr-xr-x 1 -1 -1 50544227 Mar 22 11:53 P5035661.ZIP;1

can anyone tell me how to solve this ?

thanks

regards
ng
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: can't copy file from cd rom

Shalom ng,

You did not mount the cd correctly.

Thats why filenames display as they do and will not copy.

Knowing what kind of format the cd was sent with is key to resolving this problem.

This might be an oracle patch, so I'll give you mount instructions for that in hopes to assist you quickly.

/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom

Change c3t2d0 to the actual path of the cd/dvd drive.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ng_7
Regular Advisor

Re: can't copy file from cd rom

hi, thanks for your quick response, It looks like the same,

db1:/# mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom
mount: mounted /dev/dsk/c3t2d0 on /cdrom
db1:/# cd cdrom
db1:/cdrom# ll
-r-xr-xr-x 1 -1 -1 50544227 Mar 22 11:53 P5035661.ZIP;1
db1:/cdrom#

i appologize for some mistake on my previous update,

"db1:/als# ll
total 98724
-r-xr-xr-x 1 -1 -1 50544227 Mar 22 11:53 P5035661.ZIP;1"

is actually db1:/cdrom

thanks
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: can't copy file from cd rom

Hi NG,

What kind of HPUX version are you running?

http://mirrors.develooper.com/hpux/faq.html

----
#My CD-ROM doesn't show what I expect

It can be an Oracle CD-ROM, or a CD created on Windows, or whereever they used Rock Ridge extensions. Long names are truncated or show upper case only. Oracle tells you to use pfs_mount.

Do not use pfs_mount!. Install the Rock-Ridge extension patches instead and never worry about these problems. For HP-UX 11.00 you will need forget all about PFS and install PHKL_26448 (now superceded by PHKL_28060), PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount! For HP-UX 11.11 (11i) you need PHCO_25841, PHKL_26269, and PHKL_25760 (now superceded by PHKL_32035).

No need thereafter to use -o cdfs to mount anymore, provided you enter the CD drive in /etc/fstab like this:

/dev/cd0 /cdrom cdfs ro,rr,noauto 0 0
---

Regards,
Robert-Jan
AVV
Super Advisor

Re: can't copy file from cd rom

Hi,

This might have happened when you wrote the CD using some windows tools like Nero. You just need to copy the same to your HP Server and rename the same
The command is somewhat like below.

mv ./* P5035661.ZIP

Make a new directory and do the activity else another files also may renamed.

Thanks
ng_7
Regular Advisor

Re: can't copy file from cd rom

hi, Thanks for all your help. I manage to solve my problem my changing the transfer mode to binary using Toad. It completed successfully ftp the file from windows to my unix server.
ng_7
Regular Advisor

Re: can't copy file from cd rom

the reason why i use cd to copy the file is because i having problem to ftp the file to my server, but I still keen to know why I can't copy file from CD rom, I will try to update the patch once i have settle all my urgent matters.

thanks

regards
ng
Steven Schweda
Honored Contributor

Re: can't copy file from cd rom

> [...] I notice that the file name on CDROM
> have a ';1' at the end of the file name,
> [...]

This is normal for an ISO 9660 file system,
which was designed to accomodate various
operating systems, including VMS, where a
version number (like ";1") is a normal part
of a file specification. On some operating
systems, the CD software may hide the version
numbers and/or show the names in lower case.
On some, it doesn't.

> can't copy file from cd rom

> [...] I still keen to know why I can't copy
> file from CD rom [...]

> can anyone tell me how to solve this ?

Solve what? What's the problem? A
semi-colon is a special character to a UNIX
shell. Is that what's bothering you?

What did you try? Showing actual commands
with actual output can be more helpful than
vague descriptions like "can't do" or
"doesn't work". Did you try anything like:

cp -p '/cdrom/P5035661.ZIP;1' name_I_like

???

Or, why copy the thing at all? Doesn't this
work?

unzip '/cdrom/P5035661.ZIP;1'
YAQUB_1
Respected Contributor

Re: can't copy file from cd rom

Hi NG,

Can U shear me, Ur using any third party FTP software? If Ur not using any third party FTP software then use FTP (SSH Secure Shell Client). Just install Ur PC/Laptop they U easily copy any files Ur UX systems.

The file (FTP client software) size almost 5MB, that├в s why I can not send it. My e-mail ID: info_yaqub@yahoo.com. If U needs this FTP software sends me a mail & I will try to send U ASAP.

Thanks -- Yaqub
HP Support!!!
Naveen M
Advisor

Re: can't copy file from cd rom

Please use the following command when you mount the cdrom.

mount -o ro,rr,cdcase /dev/dsk/c3t2d0 /cdrom

This will take care of files being reflected in 8.3;1 format.

I faced the same issue and resolved it in this way.
Sajjad Sahir
Honored Contributor

Re: can't copy file from cd rom

disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 30
5
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0

mkdir cdrom1

mount /dev/dsk/c1t2d0 /cdrom1

cd cdrom1
then u can install

swinstall -s /cdrom1

ok
this is the easy way
first do
ioscan then u can easily identify which disk u have to mount then make dir
then mount that disk to directory
then go to mount directory
then install
ng_7
Regular Advisor

Re: can't copy file from cd rom

Wow, what a wonderful forum,

I managed to mount the cdrom by using the below command.

mount -o ro,rr,cdcase /dev/dsk/c3t2d0 /cdrom

keep up good work guys.

thanks

regards
ng
Chanatip Laongsiriwong
Occasional Advisor

Re: can't copy file from cd rom

Try this, it works!!!

# mount -o ro,rr,cdcase /dev/dsk/c3t2d0 /cdrom
ll /cdrom you will get "file.zip"

# /usr/local/bin/unzip [file.zip]
# tar -xvf [file.tar]