- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mounting cd automatically
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2003 10:38 PM
тАО05-25-2003 10:38 PM
mounting cd automatically
Is there any way to mount cdrom automatically in HP-ux?
or Is there any way to allow a non root user to mount cdrom ?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2003 10:51 PM
тАО05-25-2003 10:51 PM
Re: mounting cd automatically
Just make sure that the entry for the device and the directory are part of /etc/fstab
e.g.
/dev/dsk/c2t1d0 /cdrom cdfs ro 0 2
If you wish another user other than root to mount it, your best bet is to load 'sudo' and allow them access to the mount command.
You can get sudo from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2003 11:00 PM
тАО05-25-2003 11:00 PM
Re: mounting cd automatically
YOu need to manually mount them when you insert the CDROMs
You can also follow a alternative way of mounting them as suggested above but in that case too the CDROM should be inside the CD-drive.
You can install 'sudo' to provide access to mount CDROMS by normal users.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2003 11:04 PM
тАО05-25-2003 11:04 PM
Re: mounting cd automatically
add the entry in /etc/fstab like this
Ex:
/dev/dsk/c3t2d0 /cdrom cdfs ro,rr 0 0
Better not to allow any other user to mount CDROM. But still u can do it with SUDO.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2003 04:57 AM
тАО05-27-2003 04:57 AM
Re: mounting cd automatically
Use the automounter.
1. Change in the file /etc/rc.config.d/nfsconf the paramters
AUTOFS=1
AUTOMOUNT=1
AUTO_MASTER="/etc/auto_master"
AUTO_OPTION="-f $AUTO_MASTER"
START_MOUNTD=1
(I've attached the file)
2. Create/edit your file /etc/auto_master and add line:
/mount /etc/auto.cdrom
3. Create a file /etc/auto.cdrom and add line
cdrom -fstype=cdfs,ro :
i.e your cdrom device file is c2t3d0
then your line looks like this
cdrom -fstype=cdfs,ro :/dev/dsk/c2t3d0
4. Create a directory /mount
mkdir /mount
5. Start the nfs client
/sbin/init.d/nfs.client start
6. Change in the directory
cd /mount/cdrom
And now the automounter will mount the cdrom to this dir and you can see its content. It is accesible from the user, too. No need to mount manually with super-user privileges if a user needs the cdrom.
Regards
Roland
Feel free to assign points.
To all others - read the man page from automount(1m)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2003 05:17 AM
тАО05-27-2003 05:17 AM
Re: mounting cd automatically
pay attention that you don't have patch
phkl_26239 installed as it has issues with
automount and non-NFS mounts.phkl_28999 fixes.
And of course give points to those well deserving :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2003 05:58 AM
тАО05-27-2003 05:58 AM
Re: mounting cd automatically
You can do it WITHOUT any extra programm.
But what I forgot to mention the automountd hold the mount (default) for 5 minutes, if the mount is not used. Foremost then it unmounts the cdrom.
So, if you have a user, who often changes the cdrom you must set your duration to a lower value. You can to this if you set the parameter to:
AUTO_OPTIONS="-f $AUTO_MASTER -t 10"
Then the automountd will unmount the cdrom after 10 seconds it was not used.
Regards
Roland
Feel free to assign points