How can I Mount and Unmount Solution-Pac CDROM on HP-UX ?
2 possibilities :
1 - Standard procedure
-
Create the /cdrom directory
-
Search the special file (/dev/dsk/c(n)t(n)d(n)) that you can use to mount your CDRom :
ioscan -fn -d sdisk (will show you all your disks, choose the line with the CD-ROM)
-
Add the line :
/dev/dsk/c(n)t(n)d(n) /cdrom cdfs cdcase,ro 0 0
to your /etc/fstab file
The effects of this changes are :
If a disk is present in your CDRom drive at boot time, it will be mounted automatically,You will be able to mount/dismount manually using following commands :
-
mount /cdrom
-
umount /cdrom
2 - New HP procedure : pfs_mount
If you encountered some problems (read errors for some files) with the previous method, you may use the pfs_mount command, to mount a disk, and pfs_umount to dismount it :
-
First verify that your HP-UX system as been updated with PHCO_15453 patch or superseeding one.
-
To verify your HP-UX system as been updated for example with 15453, key in :
swlist -l fileset | grep 15453
-
To obtain this patch call your HP Support or apply the last HP CD called "Recommended patches"
-
Then verify that the pfs_mountd and pfsd daemons are started. Otherwise, you'll need to do it manually (as super-user):
# pfs_mountd &
# pfsd &
-
Now mount the disk :
pfs_mount -t iso9660 -x unix /dev/dsk/c(n)t(n)d(n) /cdrom
(option : -x unix will mount the cd-rom in lower case and no version)
-
Umount :
pfs_umount /cdrom
In this case don't use /etc/fstab (remove the line if exists) and mount/umount commands.
You must use /etc/pfs_fstab instead of /etc/fstab.
add the following line :
/dev/dsk/c(n)t(n)d(n) /cdrom pls-iso9660 xlat=unix 0 0