1833767 Members
2344 Online
110063 Solutions
New Discussion

Re: pfs_mount

 
SOLVED
Go to solution
Ash_4
Advisor

pfs_mount

Hi,
How to mount remote server CD-rom on local server using PFS_MOUNT.

Thanks.
(Points will awarded for each response)
7 REPLIES 7
Leif Halvarsson_2
Honored Contributor
Solution

Re: pfs_mount

This is from "man pfs_mount"

To mount a CD-ROM disk:

pfs_mount /dev/rdsk/c0t6d0 /cd-rom

To mount a remote file system:

pfs_mount serv:/cd-rom /cd-rom

To fake an entry for iso9660 on /cd-rom:

pfs_mount -f -t iso9660 /dev/rdsk/c0t6d0 /cd-rom

To hard mount a remote file system:

pfs_mount -o hard serv:/cd-rom /cd-rom
YLTan
Frequent Advisor

Re: pfs_mount

If you want to mount an ISO 9660 CDROM on HP-UX or a ISO 9660 CDROM with RockRidge
Interchange Format you have to start pfs_mountd and pfsd.

# /usr/sbin/pfs_mountd &
[3] 1969
# /usr/sbin/pfsd &
[4] 1970

Edit or create the file /etc/pfs_fstab
/dev/dsk/c0t4d0 /ISO_CDROM pfs-iso9660 xlat=unix 0 0
/dev/dsk/c0t4d0 /ISO_RR_CDROM pfs-rrip xlat=unix 0 0

Create the dirs, if they don't exist

# ls -dl /ISO*
drwxr-xr-x 2 root root 4 Apr 2 20:44 ISO_CDROM
drwxr-xr-x 2 root root 4 Apr 2 20:44 ISO_RR_CDROM

Now it is easy to mount ISO CDROMs

# pfs_mount /ISO_CDROM

# ls -l /ISO_CDROM
drwxr-xr-x 2 root root 4488 May 6 1988 cdsample

# pfs_umount /ISO_CDROM
Or with long filenames# pfs_mount /ISO_RR_CDROM

# ls -l /ISO_RR_CDROM
-r--r--r-- 1 root root 4488 Nov 5 19:00 Copyright
dr-xr-xr-x 2 root root 1469 Oct 13 19:01 pictures_from_susi

One thing we have found out about pfs_mount is, DO NOT exit the session you start the
daemons with, until you are COMPLETLY finished! Once you finish installing the software,
return to the original session, window and perform the "pfs_umount". Then if you wish,
you can kill the daemons you started. (next reboot will take care of this too)
List them by performing a "ps", then kill them from the highest process ID on down.
tyl
Justo Exposito
Esteemed Contributor

Re: pfs_mount

Hi Ash,

VERY IMPORTANT THING!!

When unmount the cd, use the pfs_umount command and not umount, this is because if you use umount instead pfs_umount you will have a lot of problems to extract the cd from your box.

Regards,

Justo.
Help is a Beatiful word
Carlos Fernandez Riera
Honored Contributor

Re: pfs_mount

pfs_mount is a source of problems ...!!
Please see :

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf489107d277ad611abdb0090277a778c,00.html
unsupported
Wodisch_1
Honored Contributor

Re: pfs_mount

Hi Ash,

since the advent of the new Rock Ridge patches to "mount(1m)" there is simply no need to use PFS any further!
Install the patches PHKL_26448, PHCO_26449, and PHKL_26450 and then use good old "mount(1m)" (say, your CD-ROM device is /dev/dsk/c0t0d0):

mkdir /cdrom
mount -o rr /dev/dsk/c0t0d0 /cdrom
# ... work ...
umount /cdrom

HTH,
Wodisch
MANOJ SRIVASTAVA
Honored Contributor

Re: pfs_mount

Hi Ash




A. Perform these steps on the local system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. Add the filesystem to /etc/pfs_fstab

4. Add the filesystem to /etc/pfs_exports

5. pfs_exportfs -a

6. pfs_mount /cdrom

B. Perform these steps on the remote system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. pfs_mount -o xlat=unix remotesystemA:/cdrom /localmnt_pnt




you can look at this document
http://support1.itrc.hp.com/service/cki/docDisplay.do?docId=200000032087697


Manoj Srivastava
Geetha Alagappan
Regular Advisor