Operating System - HP-UX
1847084 Members
5244 Online
110262 Solutions
New Discussion

Optical Drive automounting

 
SOLVED
Go to solution
Jon Hansen_1
Advisor

Optical Drive automounting

I have a Magneto-Optical Drive C1113f installed on an HP-UX11.0 workstation. The drive is recognised by ioscan.

$ ioscan -kfnH 10/0/15/0.4.0
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 10/0/15/0.4.0 sdisk CLAIMED DEVICE HP C1113F
/dev/dsk/c2t4d0 /dev/rdsk/c2t4d0


The question is how do I mount it to a set directory. Should I use a CDFS setup for it in the fstab file? If I am going to use CDFS should I change the permissions on the device file to allow the users to read and write to the drive?
4 REPLIES 4
Helen French
Honored Contributor

Re: Optical Drive automounting

Hi Hansen:

If I recollect correctly, you don't need to specify this as a CDFS file system. You can use either HFS or JFS format on these optical disks. The mount operation is just like a normal disk, but without using LVM ! Once mounted, you can set the permission for different users at the mount point level and NOT at the device file level.

You can configure the disk with SAM - Disk and file system -Disk devices - Add not using LVM

HTH,
Shiju
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: Optical Drive automounting

Hi Hansen:

OK ..I found it for you. Read this document and it's instructions for configuring in different OS:

http://www.hp.com/cposupport/information_storage/support_doc/lpg70302.html

HTH,
Shiju

Life is a promise, fulfill it!
Jon Hansen_1
Advisor

Re: Optical Drive automounting

I am trying to put this setup into a script. Therefore I need to do this via the command line. Please tell me if this sounds correct.

mkdir /dev/vg05
vgcreate /dev/vg05 /dev/dsk/c2t4d0
Then add into /etc/fstab:
/dev/vg05 /optical hfs defaults 0 0


Any suggestions howto setup the disk so it will automount. Any suggestions on how to make it so a customer can format the disk?
Helen French
Honored Contributor
Solution

Re: Optical Drive automounting

Hi Hansen:

Again, You cannot use these disks as normal LVM disks. So you don't need to add VGs in /dev directory. I have done this a long back, so I don't remember correctly the syntax of commands. However this will be a possible try:

1) Load the optical disks in the drive
2) Run 'mediainit' if required
3) Run 'newfs' on the disk device to format the drive and create a file system:

# newfs -F hfs /dev/rdsk/c1t2d0
4) Mount the drive with:

# mount /dev/dsk/c1t2d0 /test_dir
5) Add this entry in /etc/fstab for automatic mounting. Remember here, you should have a valid FS in the media on the optical drive, everytime you boot the system.

HTH,
Shiju
Life is a promise, fulfill it!