Operating System - HP-UX
1753934 Members
10181 Online
108810 Solutions
New Discussion юеВ

Re: Mounting Prob in HP UX

 
SOLVED
Go to solution
Daryl Nyburg
Occasional Contributor
Solution

Re: Mounting Prob in HP UX

The CD must be mounted using PFS (Portable File System). Some of the
file systems PFS supports include: iso9660, high sierra, and RockRidge.
The instructions for mounting the CD using PFS are shown in the booklet
included in the CD case.

In short, the directions are:
(1) Add a line to the /etc/pfs_fstab file:
/dev/dsk/c1t2d0 /SD_CDROM pfs-rrip xlat=unix 0 0

The first entry will need to be replace with the actual device file for the
CD-ROM. The second entry is the mount point. This directory may need to
be created.

(2) Log in as the root user.

(3) Run:
nohup /usr/sbin/pfs_mountd &

(4) Run:
nohup /usr/sbin/pfsd &

You can run 'ps -ef | grep pfs' from the command line. You should see four
listings: pfs_mountd, pfsd, pfs_mountd.rpc, and pfsd.rpc. If you do
not see the .rpc processes, wait a few seconds and look again.

(5) Insert the CD-ROM into the tray, and mount the CD-ROM by running:
/usr/sbin/pfs_mount /SD_CDROM

If you get an error (such as 'device not ready'), it may mean the four
processes mentioned above are not ready yet. Wait a few seconds and
try mounting the CD again.

(6) Log off and change to the /SD_CDROM (or where ever you mounted
it). You should now see the correct file listing. Install as normal.

(7) To unmount the CD, log in as root and run:
/usr/sbin/pfs_umount /SD_CDROM

Make sure that the CD is not busy, and that no shells currently have
/SD_CDROM (or any of its subdirectories) as its 'pwd'.
Mark Fenton
Esteemed Contributor

Re: Mounting Prob in HP UX

Ran into the same issue when I was viewing a cd from a manufacturer I don't often deal with. In addition to having the filenames in all caps, the directory listing was funky and reading the files produced interesting results. The trick was to mount with these options:

mount -F cdfs -o cdcase /dev/dsk/cxtydz /cdrom

that put everything into the proper case/format.

hth
Mark
MANOJ SRIVASTAVA
Honored Contributor

Re: Mounting Prob in HP UX

Senthil ji

pfs_mount -x lower_case -x no_version /dev/dsk/c0t2d0 /cdrom

is the solution ie this you do after pfs_mountd & and pfsd &

do a man pfs_mount to get all teh options.


Manoj Srivastava
Tim D Fulford
Honored Contributor

Re: Mounting Prob in HP UX

Yogeeraj_1
Honored Contributor

Re: Mounting Prob in HP UX

Hello,

i'll share a script with you that is a life-saver for me!

I use it for both mounting and unmounting. Easy Easy..

Hope this helps!
Best Regards
Yogeeraj
============================================================
#!/usr/bin/ksh
# Script Name: pfsmcd.sh
# YD-10/03/2002
#
if ps -ae|grep -v grep|grep pfs_mountd > /dev/null 2>/dev/null
then
echo pfs_mountd already started
else
echo Starting pfs_mountd
nohup /usr/sbin/pfs_mountd &
sleep 5
fi
if ps -ae|grep -v grep|grep pfsd > /dev/null 2>/dev/null
then
echo pfsd already started
else
echo Starting pfsd
nohup /usr/sbin/pfsd &
sleep 5
fi
if /sbin/mount|grep /SD_CDROM > /dev/null 2>/dev/null
then
echo Unmounting /SD_CDROM
pfs_umount /SD_CDROM > /dev/null 2>/dev/null
else
echo Mounting /SD_CDROM
pfs_mount /SD_CDROM > /dev/null 2>/dev/null
fi
#End of Script
============================================================
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)