1753964 Members
7506 Online
108811 Solutions
New Discussion юеВ

Re: Reading a cd-rom

 
SOLVED
Go to solution
Manuales
Super Advisor

Reading a cd-rom

Hi, how can i read a cd-rom from server hp-ux?
i think i have mount it, haven't it?

Thanks, Manuales.
6 REPLIES 6
Sivakumar TS
Honored Contributor
Solution

Re: Reading a cd-rom


Dear Manuales,

1.identify the device name of the CDrom from ioscan -fnC disk

2. mount the CDrom using

#mount /dev/dsk/c3t3d0 /mnt

3. Now the CDROM is mounted on /mnt directoty and you access it like any ather filesystem.

You can check if the CDROM is mounted using
#mount command.

With Regards,
Siva.
Nothing is Impossible !
Fat Scrape
Honored Contributor

Re: Reading a cd-rom

Hi Manuales

which is your cd device file?

You can find it using ioscan cmd

ioscan -fnkC disk


Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

Is the first in my machine "TEAC DV-28E-C" and device is c0t0d0

exec mount command

mount -r -F cdfs /dev/dsk/c0t0d0 /cdrom

cd /cdrom to view file/dir on cdrom

Regards,
Geoff Wild
Honored Contributor

Re: Reading a cd-rom

Note also, if it is an Oracle cd, or one that wants pfs - do the following:

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_28025).

Installation of patches requires a reboot.



To mount a Rockridge CD (instead of using pfs_mount):

mount -F cdfs -o ro,rr,noauto /dev/cdrom /cdrom

To unmount:

umount /cdrom

To share out the cd over NFS:

exportfs -i -o ro,anon=0 /cdrom

On remote:

mount -F nfs sha1:/cdrom /zmnt


Note: client server does NOT need to have Rock Ridge patches installed to access the cdrom remotely.



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: Reading a cd-rom

Hi Manuales ,

1. Confirm the CD-ROM device file from ioscan -fnC disk output.

2. mount /dev/dsk/devicefile /mnt

3. cd /mnt

4. ls -l


Does this works for you.

hth,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Devender Khatana
Honored Contributor

Re: Reading a cd-rom

Hi,

The mount options will also defer depending upon the type of format in which the CD-media is written.

man pfs_mount from deails.

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: Reading a cd-rom

Hello,

You should read this,

http://hpux.ws/merijn/faq.html

Q] My CD-ROM doesn't show what I expect


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"