Operating System - HP-UX
1833033 Members
2463 Online
110049 Solutions
New Discussion

Re: properly mount a cdrom

 
Saul O. Reyes
Occasional Advisor

properly mount a cdrom

I downloaded software from oracle and burned onto a cd. I did the usual /etc/mount /dev/c0t1d0 /SD_CDROM. When I cd to /SD_CDROM the *.gz file looks somewhat scrambled. Is there a specific format I should specify. Since it is a *.gz, I assumed no particular format flag was needed.
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: properly mount a cdrom

Hi,

Couple of ways to get around this problem
first one,

#mount -F cdfs -o cdcase /dev/dsk/c0t1d0 /SD_CDROM

second,
http://www.cmve.net/~merijn/

My CD-ROM doesn't show what I expect
It can be an Oracle CD-ROM, or a CD created on Windows, or whereever they used Rock Ridge extensions. Long names are truncated or show upper case only. Oracle tells you to use pfs_mount.

Do not use pfs_mount!. Install the Rock-Ridge extension patches instead and never worry about these problems. For HP-UX 11.00 you will need forget all about PFS and install PHKL_26448, PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount! For HP-UX 11i you need PHCO_25841, PHKL_26269 , and PHKL_25760.

No need thereafter to use -o cdfs to mount anymore, provided you enter the CD drive in /etc/fstab like this:

/dev/cd0 /cdrom cdfs ro,rr,noauto 0 0

Thirth if you don't like to install the patches,
# nohup pfs_mountd &
# nohup pfsd &
# pfs_mount /dev/dsk/c0t1d0 /SD_CDROM

Regards,

Robert-Jan.
Robert-Jan Goossens
Honored Contributor

Re: properly mount a cdrom

Forgot to add one thing.

If you choose the last option use

# pfs_umount /SD_CDROM

to umount the cdrom NOT umount.

Robert-Jan.
eran maor
Honored Contributor

Re: properly mount a cdrom

Hi

if you are burning a cd with the software that you download remember to burn it without !!
the option of juliet option ( that is for windows and not unix )

after you are burning the cd you need to mount it with this option :

mount -o cdcase /dev/device_file /mount point .

also to recall , when you want to install oracle or to mount a oracle cd used this prod.
to mount with pfs mount :

1. Kill any active pfs daemons.

2. Re-start the pfs daemons:

pfs_mountd &
pfsd &

3. Mount the CD:

pfs_mount -o xlat=unix /dev/rdsk/cXtXdX /cdrom

Note: 'pfs' uses the raw (rdsk) device. Replace the 'X' entries
(in the pfs_mount command) with the appropriate numbers,
typically, C1t2d0.

Note: The man page for pfs_mount(1M) for HP-UX Release 10.20:
May 1998, contains syntax for both the "older" style option:

-x xlat=unix (kept for backward compatibility)

and a "newer" style option:

-o xlat=xlat_flags

Use pfs_umount to umount the CD.
love computers
Bill Hassell
Honored Contributor

Re: properly mount a cdrom

The RockRidge patches do indeed replace the (unstable, NFS-based code) PFS code but due to a bug in one of the 3 patches, certain RockRidge CD's (notably Cisco router management CD's) will cause a system panic (crash) when mounted. The bad patch has been recalled but not yet replaced. Be sure to read the the patch readme file. All 3 patches must be installed for the -or option to work. AS long as you are just loading the Oracle CD's, the 3 patches to make native RockRidge support work should be OK.


Bill Hassell, sysadmin
Jose Mosquera
Honored Contributor

Re: properly mount a cdrom

Hi,

We solved that problem in Oracle 8.1.7 by the following way:

To mount CD:
nohup /usr/sbin/pfs_mountd &
hohup /usr/sbin/pfsd &
nohup /usr/sbin/pfs_mount -x unix /dev/dsk/[c?t?d?] /cdrom &

(*) Try man pfs_mount to get details about.

To umount CD:
nohup /usr/sbin/pfs_umount /dev/dsk/[c?t?d?] &
Pls note that is "pfs_umount" and not "pfs_mount" to **umount** your media..!


(*) nohup executes command with hangups and quits ignored, both standard output and standard error are sent to nohup.out.

Happy New Year!