1833777 Members
2244 Online
110063 Solutions
New Discussion

[ About CD ROM ]

 
madhavabk
Regular Advisor

[ About CD ROM ]

Hi all,
Thanks in advance.

I would like to know about these following things.

1. How to identify whether the CD is mounted with mount or pfs_mount ?

2. Is there any option to do automount.
if yes:
What all files need to be scanned
for this information.
3. Is there any command to eject the CD from the device.
4 REPLIES 4
Bill Hassell
Honored Contributor

Re: [ About CD ROM ]

1. PFS is actually NFS in disguise. Look in the file /etc/pfs_mtab or just type pfs_mount with no options and it will show the current pfs mounts.

2. I doubt it. PFS is a real hack to translate CDROMs without using any kernel code. It's use is deprecated (never recommended anymore). You need to apply the 3 (all 3) Rock Ridge patches and use the new mount option: -orr The patches are:

11.0
PHCO_26449
PHKL_26450
PHKL_28060

11.11
PHCO_25841
PHKL_26269
PHKL_32035

and forget using PFS. Automounting a CD can be a bit dicey since the server may or may not have the CD mounted, or it may be unmounted while other systems are using it. It makes more sense to simply copy the CD to a local filesystem and export that filesystem as a read-only directory.


3. There is no HP-UX command to eject a CD. You can use the attached code (compiles on the std. K&R compiler in HP-UX) to create a program that will umount and eject a CD. You'll notice that it isn't very simple due to CDROM drive firmware idiosyncrasies.



Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: [ About CD ROM ]

Whoops, here's the cdeject source code.


Bill Hassell, sysadmin
madhavabk
Regular Advisor

Re: [ About CD ROM ]

Thanks
This solution solved my problem.
madhavabk
Regular Advisor

Re: [ About CD ROM ]

Thanks