1836465 Members
2385 Online
110101 Solutions
New Discussion

CDROM automount

 
reis
Advisor

CDROM automount

Is it possible, to mount each CDROM, if I insert one (like IRIX does) and if I eject a CDROM to do an unmount automatically. Some Users have to read a lot of data from CDROM??s an it would be great, if they don??t need to mount it by hand. Automount doesn??t work.

Kind regards
Walter
profil
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: CDROM automount

No, its not possible to mount cd's automatically under HP-UX.

The only thing you could do is write a job which ran say every minute or 30 seconds and tried to mount the CD - if one was present it would mount it, if not it would simply return an error which you could ignore.
Im from Palmerston North, New Zealand, but somehow ended up in London...
V. Nyga
Honored Contributor

Re: CDROM automount

Hi Walter,

you can create an alias like cdmount and cdumount, but I don't believe that HP-UX will do it full automatically.
I've not yet seen a routine for that.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
Armin Feller
Honored Contributor

Re: CDROM automount

Hi,

you should be able to automount the cdrom via nfs automounter, but the nfs automounter does not know the cdfs.

Please try following:

umount all nfs fs
# umountall -F nfs -k

stop nfs client
# /sbin/init.d/nfs.client stop

set AUTOMOUNT and AUTOFS to 1 in /etc/rc.config.d/nfsconf

add cdrom to /etc/auto_direct file
/cdrom -fstype=cdfs,ro,cdcase :/dev/dsk/c0t0d0

start nfs client
# /sbin/init.d/nfs.client start

and test if it works.

Regards ...
Armin
Ravi_8
Honored Contributor

Re: CDROM automount

Hi walter

Unlike in Solaris, HP-UX doesn't support this, one has to manually mount/unmount the CDROM
never give up