cancel
Showing results for 
Search instead for 
Did you mean: 

Mounting Prob in HP UX

SOLVED
Go to solution
senthil_3
Frequent Advisor

Mounting Prob in HP UX

Hi,

I am mounting a CD in HPUX, when accessing or listing the files , it gives all the FILES in CAPs Format, but the same CD is getting Well accessed through Solaris and AIX, With Case sensistivity.

Please help me over this
tnx
14 REPLIES
harry d brown jr
Honored Contributor

Re: Mounting Prob in HP UX

What kind of CD is it and what was the command you used to mount the CD? What OS are you running and what is your latest patch level?

live free or die
harry
Live Free or Die
Jean-Luc Oudart
Honored Contributor

Re: Mounting Prob in HP UX

Have you seacrhed the forum for this type of request ?

check the following :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x39cb0bce6f33d6118fff0090279cd0f9,00.html

Jean-Luc
fiat lux
harry d brown jr
Honored Contributor

Re: Mounting Prob in HP UX

Bill has an explanation here:

http://hpux.cs.utah.edu/hppd/FAQ/9-20.html

live free or die
harry
Live Free or Die
Keely Jackson
Trusted Contributor

Re: Mounting Prob in HP UX

Hi

Try mounting with the -o cdcase option

eg mount -o cdcase /dev/dsk/c1t2d3 /cdrom

Cheers
Keely
Live long and prosper
senthil_3
Frequent Advisor

Re: Mounting Prob in HP UX

Hi,

Now I am able see the cases in normal format..but the file names are truncated, which is not happening in Solaris and AIX with same CD.

Please help
KapilRaj
Honored Contributor

Re: Mounting Prob in HP UX

hi,
pl. post the ls -l o/p, would be fine to diag

kaps
Nothing is impossible
Jeff Schussele
Honored Contributor

Re: Mounting Prob in HP UX

Hi Senthil,

I thought I responded to this earlier, but now I don't see it.....anyway
You need to designate the FS type in the command as follows:

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

See if that gets it for you.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: Mounting Prob in HP UX

I knew I did...see your other post

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x03f056bd90a9d611abdb0090277a778c,00.html

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sanjay_6
Honored Contributor

Re: Mounting Prob in HP UX

Hi Senthil,

Have you tried the cdcase option,

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

Hope this helps.

Regds
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)