Operating System - HP-UX
1834307 Members
2739 Online
110066 Solutions
New Discussion

cdrom is truncating file names

 
Sandy Paton
Occasional Advisor

cdrom is truncating file names

Hello folk,

I've been having problems reading a cd and was hoping someone might be able to point me in the right direction. The unix system seems to be seeing truncated file names (8 chars long + 3 char file extension). I know that a straight mount would account for this problem, but I'm using pfs.
I entered the following /etc/pfs_fstab entry
/dev/dsk/c0t2d0 /cdrom pfs-iso9660 xlat=unix 0 0
then started pfs_mountd and pfsd, then used pfs_mount to mount the cdrom. It seemed to go ok, and I can view the contents but like I said the filenames are truncated, so the install won't work.
Is this because I'm running it for pfs-iso9660...? Or maybe patching or a problem with the cdrom hardware itself? Any suggestions would be gratefully received.

Incidentally, I've tested the disks on a linux machine, where the settings in /etc/fstab are:

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

And was able to read the long names in full. (As a work around I may end up using the linux box to create a zipped archive of the cd and ftp it across but I'd like to solve the problem rather than circumvent it...)
2 REPLIES 2
Robert-Jan Goossens_1
Honored Contributor

Re: cdrom is truncating file names

Hi,

Depending on your HPUX version you van install patches.

from http://mirrors.develooper.com/hpux/#FAQ

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 (now superceded by PHKL_28060), PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount! For HP-UX 11.11 (11i) you need PHCO_25841, PHKL_26269, and PHKL_25760 (now superceded by PHKL_28025).

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

Hope this helps,
Robert-Jan
Sandy Paton
Occasional Advisor

Re: cdrom is truncating file names

Feeling a bit stupid now... I've been looking at this for some time and had previously tried mounting with pfs-rrip and it had failed. However, I've just realised that this was with a cd copy - I'm now using the original software and have re-tried mounting with the pfs-rrip for Rockridge format and it worked. Not sure why the copied cd only worked on pfs-iso9660, but I'm just happy it's working.

Many thanks for the reply, I'll look into the patching for the future.

Cheers - Sandy