Operating System - HP-UX
1839977 Members
2316 Online
110158 Solutions
New Discussion

Problem mounting a CD-ROM

 
Dario_4
Frequent Advisor

Problem mounting a CD-ROM

Hello,
i have a problem when i try to mount a cd-rom.

mount /dev/dsk/c2t4d0 SD_CDROM/ works fine.

When i go to SD_CDROM and i type an ls command i see all file with ;1 at the end. For example:
pippo.gz;1 home.sh;1 ping.c;1

What's happend?

In /etc/fstab and /etc/mnttab there aren't some row about mounting of CD-ROM

Thanks
12 REPLIES 12
A. Clay Stephenson
Acclaimed Contributor

Re: Problem mounting a CD-ROM

Hi:

add the -o cdcase option to your mount. Man mount_cdfs for details.

Clay
If it ain't broke, I can fix that.
Roger Baptiste
Honored Contributor

Re: Problem mounting a CD-ROM

hi,

mount using the -o cdcase
option, since the CDrom contents is of a different format
mount -o cdcase /dev/dsk/xx /CDROM

-raj
Take it easy.
Sanjay_6
Honored Contributor

Re: Problem mounting a CD-ROM

Hi Fabrizio,

I have never seen something like this. Can you do a umount and then mount the cd again and see if the same thing happens.

mount /dev/dsk/cd_device /SD_CDROM

You can use a "-o cdcase" option with mount if required.

hope this helps.

Regds
Dario_4
Frequent Advisor

Re: Problem mounting a CD-ROM

Thanks a lot
Victor BERRIDGE
Honored Contributor

Re: Problem mounting a CD-ROM

Hi,
I think you have a rockridge format:
Mounting cdrom (pfs - Oracle 8.1.5 [ Rockridge Format ]):

a. insert cdrom into drive
b. start processes Pfs :
# /usr/sbin/pfs_mountd &
# /usr/sbin/pfsd &
Note: varify > #ps -ef |grep pfs
b. find cdrom device name ( #ioscan -funC disk ) [e.g. /dev/dsk/c1t2d0]
c. validate mount point to mount cdrom [e.g. /cdrom]
d. #pfs_mount /dev/dsk/c1t2d0 /cdrom

Unmounting cdrom(pfs - Oracle 8.1.5 [ Rockridge Format ] ):

a. #pfs_umount /cdrom
b. manually eject cdrom from drive. (press eject button)
c. kill processes [ pfsd and pfs_mountd ]


All the best

Victor
Dario_4
Frequent Advisor

Re: Problem mounting a CD-ROM

Ok guys, thanks to all.
I use the option -o cdcase.

It works fine.
Bye
Victor BERRIDGE
Honored Contributor

Re: Problem mounting a CD-ROM

Hi again,
I forgot :you will need to create a file:
/etc/pfs_fstab which contains:
more /etc/pfs_fstab
/dev/dsk/c3t2d0 /SD_CDROM pfs-rrip xlat=unix 0
#/dev/rdsk/c3t2d3 /SD_CDROM pfs-iso9660 soft,xlat=unix 0 0

...

All the best

Victor
Dario_4
Frequent Advisor

Re: Problem mounting a CD-ROM

Sorry guys,
i forgot one thinks:

When i mount cd-rom with -o cdcase options, i read the file without ;1 but in small letter instead of capital letter.

This is a big problem, becuse if i have a script shell that refer to some file in capital letter, the script doesn't works.

For example this is my situation:
mount cd without -o cdcase

ls

ERDB.01;1 ERDB.02;1 ERDB.03;1 ERDB.install;1

mount cd with -o cdcase

ls
erdb.01 erdb.02 erdb.03 erdb.install.

Well, apparently works fine.
I copy the cd on a /home dir.

erdb.install is a scipt that "unzip" the erdb file. It refer to capital letter files.

if( ! -e ERDB.01) then
echo ERROR:file ERDB.01 Missing

Phereaps, if i not use the mv command (mv erdb.01 ERDB.01) It doesn't works.
Some suggest to solve this problem?

Thanks

Deshpande Prashant
Honored Contributor

Re: Problem mounting a CD-ROM

Your applications looks like need the CD mounted using pfs daemons.
Use the instructions given by Victor earlier.

Thanks.
Prashant.
Take it as it comes.
Sanjay_6
Honored Contributor

Re: Problem mounting a CD-ROM

Hi Fabrizio,

Try pfs mount. Use this procedure,

nohup pfs_mountd &
nohup pfsd &
pfs_mount -o xlat=unix /dev/dsk/cd_device /cdrom

One Done,

pfs_umount /cdrom
kill pfs_mountd
kill pfsd
kill pfs_mountd.rpc
kill pfsd.rpc

Hope this helps.

Regds


Chris Fadrowski
Super Advisor

Re: Problem mounting a CD-ROM

Is this a CD you burned on a CD burner in Jiolet? Sometimes this happens due to filename types and lengthes. i use a wildcart like sh EDB* so it doesn't include the ;1.
Dario_4
Frequent Advisor

Re: Problem mounting a CD-ROM

Hello,
If i use the pfs_mount i see the same error. May be, this fact, can be depends from joliet...may be.

Thanks to all