- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to mount CDROM!
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
Forums
Discussions
Discussions
Discussions
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
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
03-12-2004 12:25 PM
03-12-2004 12:25 PM
#mount /dev/dsk/c1t2d0 /cdrom
can i mount the cdrom just executing
"#mount /cdrom"
someone tell me to add an entry to /etc/fstab!
i don't want to mount CDROM automatically
when the system boot
which option should be specified in the entry?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 12:30 PM
03-12-2004 12:30 PM
Re: how to mount CDROM!
If you add /cdrom into /etc/fstab, then it will try to mount /cdrom while the system is booting.
If remembering|getting the device file c1t2d0 is a problem, then add it to the fstab but comment it out. So, when you want to mount /cdrom, you can 'grep cdrom /etc/fstab' and then use the full mount command.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 02:32 PM
03-12-2004 02:32 PM
SolutionYou can add an entry to the /etc/fstab file, BUT also have the CD NOT mount automatically. The key is an fstab option called "noauto".
This is from the esteemed Bill Hassell's answer in the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=218489
... you can simplify mounting in the future by adding a correct entry in /etc/fstab like this:
/dev/dsk/c0t2d0 /cdrom cdfs noauto 0 0
The noauto option is not documented but has worked in HP-UX since the early-90's. It disables the auto-mount for the CD at bootup. You can mount and un-mount the CD by just specifying the /cdrom mountpoint. fstab takes care of the rest.
I have GOT to remember to actually implement this on all of my HP-UX machines. It will definitely make life easier when mounting/unmounting CDs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2004 06:22 PM
03-12-2004 06:22 PM
Re: how to mount CDROM!
The very Important thig is for putting the mount path in /etc/fstab u always need to have a cd in the CD-Rom Drive (i suppose).
I will tell u a simple script :
say your device file for CD is /dev/dsk/c1t2d0
#mkdir /cdrom
#cd /usr/bin
#vi cdmount ( Then enter the following)
mount /dev/dsk/c1t2d0 /cdrom
(save this file and come out of vi)
#chmod 777 cdmount
mow u only have to say cdmount to mount your cdrom drive
For Umounting
#cd /usr/bin
#vi cdumount
umount /cdrom
#chmod 777 cdumount
Now you have to only say cdumount to unmount the cdrom drive.
Assuming that yoou know vi editor.
Regards,
Imran SHaikh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2004 06:40 AM
03-13-2004 06:40 AM
Re: how to mount CDROM!
One note about /cdrom and noauto in fstab. The make_tape_recovery program from Ignite/UX does not pay attention to the filesystem type (cdfs) or the noauto option, so if the CD is not mounted, you'll get an error exit code. Now the backup was actually performed but without a clean exit code, it is hard to code this for a cron job. My Ignite/UX cron job removes all cdfs entries temporarily and puts them back when the job is done.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2004 04:32 PM
03-13-2004 04:32 PM
Re: how to mount CDROM!
-Sri
PS: No points please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2004 07:39 AM
03-14-2004 07:39 AM
Re: how to mount CDROM!
Clearly there is work to do on the useablity side of mounting CDROMs.
sorrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 08:35 AM
03-15-2004 08:35 AM
Re: how to mount CDROM!
Thnks,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 08:43 AM
03-15-2004 08:43 AM
Re: how to mount CDROM!
mount /dev/cdrom /cdrom unfortunately I cant remember the exact syntax but you use the mknod command to do it.
Regards
Martin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 08:47 AM
03-15-2004 08:47 AM
Re: how to mount CDROM!
With the appropriate patches, you can just specify 'mount -o rr,ro /dev/dsk/c?t?d0 /cdrom' to mount a Rock Ridge format CD.