HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

how to browse the contents of a cdrom

 
SOLVED
Go to solution
CJENSEN_1
Regular Advisor

how to browse the contents of a cdrom

are you supposed to use pfs_mount to do this? if so - how do you determine the raw device number (eg c0d0t0) thanks for your help
6 REPLIES 6
Jeff Schussele
Honored Contributor
Solution

Re: how to browse the contents of a cdrom

Hi Bryan,

Again, you run ioscan to get the device

ioscan -fnC disk

You'll get something like

Class I H/W Path Driver S/W State H/W Type Descrip
tion
================================================================================
=====
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP
DVD-ROM 305
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 1 0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4
GST336706LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 2 0/0/2/1.6.0 sdisk CLAIMED DEVICE HP 36.4
GST336706LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0

Note the first entry lists DVD-ROM & it's device is c0t1d0.

Now depending on just what kind of CD you want to mount - you may be able to use

mount -F cdfs -r -o cdcase /dev/c0t1d0 /mnt

This would mount the CD to /mnt & preserve the case of the filenames.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: how to browse the contents of a cdrom

Steps:

1) Run 'ioscan -fnC disk' to find out the CDROM device file.
2) Once found (/dev/dsk/cxtydz), create a mout_point and mount the CD:

# mkdir /cdrom
# mount /dev/dsk/cxtydz /cdrom

3) To browse the CD:
# cd /cdrom

NOTE:

It is not necessary that you need to use pfs_mount for using all CDs. You may need to use special mount options (-o cdcase), when using NON-HP CDs.
Life is a promise, fulfill it!
CJENSEN_1
Regular Advisor

Re: how to browse the contents of a cdrom

and then do you have to unmount it when you are done? is that command the reverse of the mount? thanks.
Jeff Schussele
Honored Contributor

Re: how to browse the contents of a cdrom

Bryan,

Just use umount on the mount point.

umount /cdrom

Make sure nothing is running from /cdrom & make sure no one is in the dir else you'll get a "busy" error & it won't unmount.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: how to browse the contents of a cdrom

Again, Once you are done using the CD, you need to unmount that. Make sure that no program is using CDROM and you are not in the *CDROM* directory:

# cd /
# umount /cdrom (man umount for details)
Life is a promise, fulfill it!