Operating System - HP-UX
1752860 Members
3535 Online
108790 Solutions
New Discussion юеВ

Automount cdrom on HP-UX 11i

 
SOLVED
Go to solution
HDgio
Regular Advisor

Automount cdrom on HP-UX 11i

Hi
Can I Automatically mount a cdrom when inserted it.
Thanks to all
3 REPLIES 3
Peter Godron
Honored Contributor
Solution

Re: Automount cdrom on HP-UX 11i

Hi,
a not very helpful thread, but a good start:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106562

and one that explains why there is no automount as on Solaris:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=208516

You either have to write a daemon / background job or do it manually.
Peter Nikitka
Honored Contributor

Re: Automount cdrom on HP-UX 11i

Hi,

you really can do it with the automounter.
1) Add this to /etc/auto_master
/local /etc/auto.local

2) Content of /etc/auto.local:
cdrom -fstype=cdfs,rr,ro :/dev/cdrom
dvd -fstype=cdfs,cdcase,ro :/dev/cdrom

Change /dev/cdrom according to your needs (/dev/dsk/c0t2d0) or add a (hard) link of device to /dev/cdrom (like I did).

3)
So if you access /local/cdrom or /local/dvd the medium gets mounted with these options, this can be done by every user.

I additionally changed the inactivity time of the whole automouter process to three minutes (default: 10) in adding
-t 180
at startup of automount process.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
HDgio
Regular Advisor

Re: Automount cdrom on HP-UX 11i

Thanks to all