Operating System - HP-UX
1855270 Members
4686 Online
104109 Solutions
New Discussion

Newbie question: How do I mount CD-ROM

 
SOLVED
Go to solution
Daniel Navarro
Occasional Contributor

Newbie question: How do I mount CD-ROM


How do I mount a SCSI CD-ROM on HP-UX 11.0?

TIA,
Daniel N.
8 REPLIES 8
Klaus Crusius
Trusted Contributor

Re: Newbie question: How do I mount CD-ROM


First of all you have to find out the device name of your CD rom drive.
Do a "ioscan". That will tell you the hardware path of the CD device.
Then cd /dev/dsk, and do a "lssf *"
That will show you the relation between hardware paths and device file names.

Say the device file is /dev/dsk/c0t1d0.
Create a mount point: "mkdir /cdrom"
Enter a line into /etc/fstab which looks like

/dev/dsk/c0t1d0 /cdrom cdfs ro,cdcase 0 2

and perform "mount /cdrom".

The option ",cdcase" may be not required. It handles mixed case file names properly for some CDROM formats.

If that helps ... Klaus
There is a live before death!
Mark Vollmers
Esteemed Contributor

Re: Newbie question: How do I mount CD-ROM

Daniel-

you need to know the physical address of the cdrom first. you can get this from ioscan. Then, make sure that you have a blank directory. I use /cdrom. if the directory is not blank, anything in it will be insaccessable while the drive is mounted. The command is: mount -F cdfs -o ro,cdcase /dev/dsk/c#t#d# /cdrom. The c#t#d# is the physical address of the device. to remove it, just type umount /dev/dsk/c#t#d#. Remember that you cannot remove a cd that is in the drive until the drive is unmounted.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
someone_4
Honored Contributor

Re: Newbie question: How do I mount CD-ROM

to see what you need to mount
ioscan -fn -C disk
then
mount /dev/dsk/c3t2d0 /cdrom
/dev/dsk/c3t2d0 being where yours cdrom is
for the isoscan command.
and to umount
umount /cdrom

Richard

Vincenzo Restuccia
Honored Contributor

Re: Newbie question: How do I mount CD-ROM

#ioscan -nfkCdisk
see the special file of CD
#mount /dev/dsk/cxtyd0 /SD_CDROM
Mark Mitchell
Trusted Contributor

Re: Newbie question: How do I mount CD-ROM

#ioscan -fnC disk
#mkdir /cdrom
#mount /dev/dsk/c3t2d0 /cdrom
The /dev/disk info should be from the ioscan output on the first line.
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Newbie question: How do I mount CD-ROM

Hi Daniel

You need to know the following 2 things

1. Path of the Device.
2. Mount point.

Path

Do a ioscan -fnC disk | grep DVD ( I assume you would be having a DVD ROM ) to get the path.


Mount Point

This is the directory where you would like to mount it , this can be created by ,mkdir command in the root directory itself .

After you know these 2 things you can mount by the following commands

1. mount /dev/dsk/cxtydz < mount point >
2. mount -F cdfs -o cdcase /dev/dsk/cxtydz
3. PFS MOUNT

/usr/sbin/pfs_mountd &
/usr/sbin/pfsd &
/usr/sbin/pfs_mount /dev/dsk/cxtydz

Manoj Srivastava
Deshpande Prashant
Honored Contributor

Re: Newbie question: How do I mount CD-ROM

Hi
For normal mount use
#mount -o cdcase /dev/dsk/cxtyd0 /SD_CDROM

If you need pfs mount.
Create a file /etc/pfs_fstab with entry for CDROM
/dev/dsk/cxtyd0 /SD_CDROM pfs-rrip xlat=unix,soft 0 0

Then use following commands to mount it.

#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount /SD_CDROM

Thanks.
Prashant Deshpande.
Take it as it comes.
Wodisch
Honored Contributor

Re: Newbie question: How do I mount CD-ROM

Hello Daniel,

if the CD "refuses" to be mounted, or if the output of "ls"
to the mount-pount does look "weird" (are there names
like "ABCDEFGH;1"?), then you will have to use the PFS
commands instead of the standard HP-UX mount/umount
commands!
See the man-pages for "pfs_fstab(4)", "pfs_mount(1M)",
"pfs_umount(1M)", "pfsd(1M)", and "pfs_mountd(1M)".
HTH,
Wodisch