1834635 Members
3487 Online
110069 Solutions
New Discussion

pfs_mount

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

pfs_mount

HI Again....
op sys: 11.0
machine:D220

Trying to pfs_mount the /cdrom. I have issued:
pfs_mountd &
pfsd &
pfs_mount /cdrom

Result = pfs_mount: giving up on /cdrom

bdf shows nothing mounted for /cdrom. What have I done wrong (this time)? please !! thankyou. (i just want the /cdrom to load up on the system. When I issued the normal mount command and checked the contents, it appeared as follows: .PRODUCT;1
uppercase, semicolon, and an extent no.)


thanks for helping out.
Maria.
7 REPLIES 7
Michael Tully
Honored Contributor
Solution

Re: pfs_mount

Hi Maria,

You need to make sure that the background processes are in fact running for pfs mount options, often called 'Rock Ridge' format.
example below:

If you want to mount a disk so it shows just lowercase, do this:

e.g.

# mount -F cdfs -o cdcase /dev/dsk/c0t6d0 /cdrom

Here is the procedure for mounting a
Rockridge CD

Add this entry to /etc/pfs_fstab

/dev/dsk/c5t2d0 /SD_CDROM pfs-rrip xlat=unix 10

Mount the cd in the drive

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
# /usr/sbin/pfs_mount /SD_CDROM

Make sure the directory is created and you
have not got your shell in that directory at
the time of mounting.

Cheers
~Michael~

Anyone for a Mutiny ?
Jeff Schussele
Honored Contributor

Re: pfs_mount

Hi Maria,

Depending on the CD type you might try:

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

If that doesn't do it then I suspect you need mount options i.e. when you use pfs_mount. You may want to look at using the /etc/pfs_fstab file to take the place of having to use mount options on the pfs_mount command line,
do a man pfs_fstab
Syntax would look something like

/dev/dsk/cxtydz /cdrom pfs-iso9660 ro,suid 0 0

Using the tab file will allow you to just issue the pfs_mount command w/o even specifying the mount point.

HTH,
Jeff

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

Re: pfs_mount

Sorry..if you don't specify the mount point in the pfs_mount command, then it has to be

pfs_mount -a

to mount *all* entries in pfs_fstab

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Peter Gillis
Super Advisor

Re: pfs_mount

Thankyou... the simplest of all worked! As it does. mount cmd with the lowercase option. Once again, thanks. This forum has been such a great source of info and everyone seems so 'Happily Helpful'! See ya
Maria.
Steven Sim Kok Leong
Honored Contributor

Re: pfs_mount

Hi,

My pfsmcd script, many years back. pfsmcd starts the pfs daemons if they have not been started, detects if a CD is already mounted and pfs-mounts the CD (Oracle CD) if it has not been mounted or pfs-unmounts the CD if it has already been mounted.

In addition to root.sh, I had this script added to restricted sam so that the DBA won't come and bother me to mount and unmount Oracle CDs everytime.

Hope this helps. Regards.

Steven Sim Kok Leong

pfsmcd script:

#!/usr/bin/ksh

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 /cdrom > /dev/null 2>/dev/null
then
echo Unmounting /cdrom
pfs_umount /cdrom > /dev/null 2>/dev/null
else
echo Mounting /cdrom
pfs_mount /cdrom > /dev/null 2>/dev/null
fi
Jeff Schussele
Honored Contributor

Re: pfs_mount

Hi Steevn,

How you doing?
Heard you were under the weather.
Feeling better?
Care to chat..I'm there now.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
H.Merijn Brand (procura
Honored Contributor

Re: pfs_mount

Maria, your worries might be over!

forget all about PFS and install PHKL_26448, PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount!

The new search engine will get you to these patches in no time :) just enter 26448 or 26449 or 26450
Enjoy, Have FUN! H.Merijn