Operating System - HP-UX
1850144 Members
12937 Online
104050 Solutions
New Discussion

Mounting a cdrom on a HP 11.11 box

 
Kevin Farrell_5
Advisor

Mounting a cdrom on a HP 11.11 box

Anybody know how to accomplish such a feat?
HP-UX raven B.11.11 U 9000/800 519710578 unlimited-user license


Model
9000/800/A500-44

I tried using the psf_mount and whatnot it says the device is busy, I do have a cd in there, but I'm not positive how to mount the thing, I forgot.

thanks, Kevin
25 REPLIES 25
Deoncia Grayson_1
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

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

or

mount -r /dev/dsk/c?t?d? /cdrom

you have to make the directory cdrom under root.

Hope this helps.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Steven E. Protter
Exalted Contributor

Re: Mounting a cdrom on a HP 11.11 box

No.

pfs_mount is bad
obsolete,
PITA
locks systems up.

Try this script for rock ridge cd's

attached.

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
Pete Randall
Outstanding Contributor

Re: Mounting a cdrom on a HP 11.11 box

Kevin,

What's on the CD? If it's a HP produced Application or install CD, you shouldn't have to use psf_mount . In fact, with a couple of patches, you should never have to use pfs_mount again ( see the "My CD-ROM doesn't show what I expect" section here - http://mirrors.develooper.com/hpux/ ). See if you can find what's holding the CD active using fuser or lsof. If all else fails, you may end up having to reboot to free up the drive.


Pete

Pete
Sanjay_6
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

Hi Kevin,

Are you sure it has not been mounted already. Do a bdf to verify. At times the pfs_mount complains that the drive is busy, but it still mounts the cd.

You can mount these cds without using pfs_mount, you need to get the rock-ridge extension patches for mount / cdrom on your box. If you do that, you don't have to use pfs_mount.

pfs_mount is not always a good choice to mount the CDs.

Hope this helps.

regds
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

script didn't work, any other ideas?
#/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom
mount: /cdrom: No such file or directory
root(raven)/root:
#
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 39676 97266 29% /
/dev/vg00/lvol1 83733 45266 30093 60% /stand
/dev/vg00/lvol8 1024000 162919 812346 17% /var
/dev/vg00/lvol7 1228800 847095 357872 70% /usr
/dev/vg00/lvol6 1024000 14371 946547 1% /tmp
/dev/vg00/lvol5 1024000 670264 331655 67% /opt
/dev/vg00/lvol4 102400 5164 91211 5% /home
/dev/vg00/lvo19 20480000 523172 19645452 3% /d01
root(raven)/root:


not mounted. What's on the cd is oracle 9i database install, 1 of 4
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

Thanks for the replies guys, so far, nothings worked. I don't really have time to install the patches right now, I just gotta mount this drive to stage the cd's. Any help is appreciated. Kevin
Steven E. Protter
Exalted Contributor

Re: Mounting a cdrom on a HP 11.11 box

Okay we have to do patches. For sure not pfs_mount or the script I've submitted.

The first thing we need to determine is whether the cd-rom is working.

ioscan -fnC disk

You should see a cd or dvd-rom, probably made by Toshiba.

If its not there, you need to find out why not. It may be dead and require replacement.

If it is there, the device driver for the unit will be listed in the ioscan output.

Thats what you want to use in the mount command given above.

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
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

Hi Kevin,

1. Kill any active pfs daemons.

2. Re-start the pfs daemons:

pfs_mountd &
pfsd &

3. create a mountpoint

# mkdir /cdrom

3. Mount the CD:

# pfs_mount -o xlat=unix /dev/rdsk/cXtXdX /cdrom

Use ioscan -fnkCdisk to replace the X above.

Note: 'pfs' uses the raw (rdsk) device. Replace the 'X' entries (in the pfs_mount command) with the appropriate numbers, typically, C1t2d0

Best regards,
Robert-Jan

Ps
You need to use pfs_umount to unmout the cdroms.
Fred Ruffet
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

Using PFS can be safe, but with so many precautions. One is not to use mount when device is already pfs_mounted, or pfs_mount a device already mounted. Problem is that, if you have automount, your CD may be mounted automatically when inserted, and so, when you pfs_mount, you enter this critical case...

If you enter such a collision where mount or pfs always says CD is busy, you can have two solutions :
1. stop all the PFS stack, up to RPC. Stopping RPC may need to stop all depending services (and they are numerous). then restart.
2. reboot.

Thats why so many will tell you not to use PFS.

Using rock ridge extensions will require latest patches.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Bill Hassell
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

Some basic details:

#/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom
mount: /cdrom: No such file or directory

That means that the mountpoint directory doesn't exist so create it:

mkdir /cdrom

Then mount your CD. Now the devicefile must match what you have on your system. If you are not sure, use this command:

ioscan -knfC disk

and you'll the devicefiles for each disk. Look for the CDROM, usually spotted by the manufacturer name. Then use that devicefile (/dev/dsk/...) in your mount command. As mentioned, if the CD is not an HP-UX CD but comes from a PC, you may need to use the -o cdcase option. HOWEVER, -o cdcase simply translates the CD's base directory (which is all UPPERCASE letters) to lowercase. HP's basic CDROM code cannot handle long filenames. You have to install the 3 RockRidge patches to see full filenames if they are longer than 8.3 characters.


Bill Hassell, sysadmin
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t1d0

I killed the daemons, restarted them and tried the command

#pfs_mount -o xlat=unix /dev/rdsk/c0t1d0 /cdrom
pfs_mount: giving up on /cdrom
root(raven)/root:
Fred Ruffet
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

What's output for "mount" and "pfs_mount" (without any option) ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

I rebooted the box, here's the last command Fred wanted me to run
root(raven)/root:
#mount
/ on /dev/vg00/lvol3 log on Thu Nov 18 10:16:42 2004
/stand on /dev/vg00/lvol1 defaults on Thu Nov 18 10:16:43 2004
/var on /dev/vg00/lvol8 delaylog,nodatainlog on Thu Nov 18 10:16:48 2004
/usr on /dev/vg00/lvol7 delaylog,nodatainlog on Thu Nov 18 10:16:48 2004
/tmp on /dev/vg00/lvol6 delaylog,nodatainlog on Thu Nov 18 10:16:48 2004
/opt on /dev/vg00/lvol5 delaylog,nodatainlog on Thu Nov 18 10:16:49 2004
/home on /dev/vg00/lvol4 delaylog,nodatainlog on Thu Nov 18 10:16:49 2004
/d01 on /dev/vg00/lvo19 delaylog,nodatainlog,nolargefiles on Thu Nov 18 10:16:49 2004
root(raven)/root:
#pfs_mount
root(raven)/root:
#



Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

This is after booting the box, I do have a cdrom directory. I can't believe what a *****ng nightmare, just to read a cd. Unreal. HEEEEEEEEEELLLLLLLLLLLLLLLPPPPPPPPPPPPPP


#pfs_mount -o xlat=unix /dev/rdsk/c0t1d0 /cdrom
pfs_mount: giving up on /cdrom
root(raven)/root:
#
Fred Ruffet
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

What are your options for automount in /etc/rc.config.d/nfsconf ?

now that you had a reboot on your system and created /cdrom, what's up if you try to use the commands Deoncia gave you in her first reply ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

# pragma VERSIONID "@(#)nfsconf: 11R2-2"
# NFS configuration. See nfsd(1m), mount(1m), pcnfsd(1m)
#
# NFS_CLIENT: 1 if this node is an NFS client, 0 if not
# NFS_SERVER: 1 if this node is an NFS server, 0 if not
# Note: it is possible for one host to be a client, a server,
# both or neither! This system is an NFS client if you will
# be NFS mounting remote file systems; this system is a server
# if you will be exporting file systems to remote hosts.
# See Also: nfsd(1M), mount(1M).
# NUM_NFSD: Number of NFS deamons (nfsd) to start on an NFS server. Four
# has been chosen as optimal.
# NUM_NFSIOD: Number of NFS BIO daemons (biod) to start on an NFS client.
# Four has been chosen as optimal.
# PCNFS_SERVER: 1 if this node is a server for PC-NFS requests. This
# variable controls the startup of the pcnfsd(1M) server.
# See Also: pcnfsd(1M).
#
NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
NUM_NFSIOD=4
PCNFS_SERVER=0
# export feature does not work in this file since files are being
"nfsconf" [Read only] 83 lines, 2978 characters
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

#mount -r /dev/dsk/c0t1d0 /cdrom
/dev/dsk/c0t1d0: Device busy

#mount -o cdcase /dev/dsk/c0t1d0
/dev/dsk/c0t1d0: Device busy

Fred Ruffet
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

Kevin,

I would have like to see automount options, not only first page of vi :)

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

Here you go Fred, thanks so much for the help.
START_MOUNTD=1
#
#autofs configuration. See autofs(1m)
#
#For the 11.0 Release line both AUTOFS and the old Automount
#are delivered. In order to invoke the AUTOFS instead of
#you must set the AUTOFS flag to 1.
#
#/usr/sbin/automount is now a script that sources in this file
#Depending on the variable AUTOFS, either AUTOFS or the old
#automount process will execute. The nfs.client start script
#will also use this variable to start the appropriate process
#during the boot sequence.
#AUTOFS= 0 - use the old automount process.
# 1 - use the new AutoFS.
#AUTOMOUNT_OPTIONS= - options to the AutoFS automount command
#AUTOMOUNTD_OPTIONS= - options to the AutoFS automountd daemon
#
#The AUTOMOUNT flag still needs to be set for either the old
#automount or new AutoFS to be started by the nfs.client script.
#
AUTOFS=0
AUTOMOUNT_OPTIONS=""
AUTOMOUNTD_OPTIONS=""
Joe_380
New Member

Re: Mounting a cdrom on a HP 11.11 box

Kevin,

I hope this helps. I had the same problem and this site worked for me.

Joe

http://publib.boulder.ibm.com/infocenter/ws51help/topic/com.ibm.websphere.nd.doc/info/ae/ae/tins_hpuxmount.html
MZ_1
Advisor

Re: Mounting a cdrom on a HP 11.11 box

I have found that there are 2 rules for using PFS and making it work.

the first is that the dbas like to cd to the directory to do an ls. this locks the directory if the cd wasn't mounted. "device busy" usually means that someone is in the directory

> fuser -cu /cdrom

the second is that you never exit the window that you mounted the cd in. you must unmount the cd before you type "exit". remember the "you have running jobs' quote? if you close the window and don't have the right patchs, good luck getting the cd out without rebooting the system. hope this helps too.



Kevin Farrell_5
Advisor

Re: Mounting a cdrom on a HP 11.11 box

Thanks for all the help guys. It appears to me that if you are trying to mount the correct CD rom drive on the correct box, this works a lot better. D'OH

Kevin
Fred Ruffet
Honored Contributor

Re: Mounting a cdrom on a HP 11.11 box

:) I still do not see one of the lines that interest me. I see AUTOFS=0, but not AUTOMOUNT= line
could you post output for
grep AUTOMOUNT /etc/rc.config.d/nfsconf

other point : is your CD readable in other machine/OS (your PC for example) ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)