Operating System - HP-UX
1830931 Members
2216 Online
110017 Solutions
New Discussion

Problem in mounting CDs with long filename

 
Siju Jose_1
Frequent Advisor

Problem in mounting CDs with long filename

Hi

I am trying to mount a cd which shows the proper filename when mounted on a linux machine.But when tried on a HP-UX 11.11 box the filenames are limited to 8 character with a 3 character extension.

I have Installed the 3 Rock Ridge patches(PHCO_25841,PHKL_26269 and PHKL_32035 ) and tried to mount it with different options.

When tried with -o cdcase it gave small case letters but again in 8.3 format.When tried with -o rr it gave all BLOCK letters with a ";1" at the end.I have tried the pfs_mount option also.

Can you help me to expand the filenames to their longest form ?
19 REPLIES 19
Steven E. Protter
Exalted Contributor

Re: Problem in mounting CDs with long filename

Shalom Siju,

Had this question earlier today:

/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom

that works for me.

replace c3t2d0 with the actual device name of cd-rom from:

ioscan -fnC disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi Steven

That didnt help.When tried with those options it is giving the file with ";1" at the end.

root:> ls /cdrom/*
FPRANGES.ZIP;1 FPRANG~2.ZIP;1 FPRANG~4.ZIP;1 FPRANG~6.ZIP;1 WFRANGES.ZIP;1
FPRANG~1.ZIP;1 FPRANG~3.ZIP;1 FPRANG~5.ZIP;1 README.TXT;1 WFRANG~1.ZIP;1

Regards
SIju Jose
V. Nyga
Honored Contributor

Re: Problem in mounting CDs with long filename

Hi,

why you don't use both options?
This works for me:
/sbin/mount -F cdfs -o rr,ro,cdcase /dev/dsk/c0t0d0 /cdrom

... with your right 'c0t0d0' ...

Of course, the CD may not be burned with Joliet format.
I don't know if Linux can read this, HP-UX cannot.

HTH
Volkmar

*** Say 'Thanks' with Kudos ***
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

What does following return??

fstyp -v /dev/rdsk/cxtxdx
There is no substitute to HARDWORK
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi

When tried with Volkmar`s option also,I am getting the filenames in lowercase but again in 8.3 format.May the reason is that it was was not burnt with Joliet format

fstyp shows the following

[root]:/:> fstyp -v /dev/rdsk/c1t2d0
cdfs
f_bsize: 2048
f_frsize: 2048
f_blocks: 61955
f_bfree: 0
f_bavail: 0
f_files: 18446744073709551615
f_ffree: 0
f_favail: 0
f_fsid: 3154190336
f_basetype: cdfs
f_namemax: 37
f_magic: 0
f_featurebits: 0
f_flag: 0
f_fsindex: 2
f_size: 61955


Regards
Siju Jose
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

mount -F cdfs -o rr,cdcase /dev/dsk/cxtxdx /cdrom

Does it mount correctly??
There is no substitute to HARDWORK
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

No,it mounts with truncated filenames(8.3 format)

Regards
Siju
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

How did you create the CD??
There is no substitute to HARDWORK
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

This CD was given to us by an external supplier.So not sure in which format they were written.

Regards
Siju Jose
V. Nyga
Honored Contributor

Re: Problem in mounting CDs with long filename

Hi again,

how is the CD created?
Is it Joliet format or is it not?
It should be ISO 9660.
And in your burning software there should be an option for longer file names.

V.
*** Say 'Thanks' with Kudos ***
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

If CD is iso9660, then you will have problem mounting it. Try as follows. Mount with pfs_mount.

# /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

and then pfs_mount /ISO_CDROM or /ISO_RR_CDROM
There is no substitute to HARDWORK
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi

I have already tried that but there was no difference.

Regards
Siju Jose
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

Can you see long file names on windows??
There is no substitute to HARDWORK
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi

Yes ,I can see the full names on windows and I can see the same on linux too.

Regards
Siju Jose
RAC_1
Honored Contributor

Re: Problem in mounting CDs with long filename

What is the file system that linux uses to mount it??
There is no substitute to HARDWORK
V. Nyga
Honored Contributor

Re: Problem in mounting CDs with long filename

Hi,

can't you mount it with Linux, export the cd-directory for hp-ux and mount the Linux dir in hp-ux?

Volkmar
*** Say 'Thanks' with Kudos ***
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi

If mounted from a linux machine it gives the full file name

Siju Jose
V. Nyga
Honored Contributor

Re: Problem in mounting CDs with long filename

Yes, ok

Why don't you mount the linux directory to hp-ux to copy the files?

I think you have no other chance, I've read older threads, if RockRidge or pfs_mount doesn't work, then you'll have a 'wrong' format for hp-ux.

Another possibility is to make a new cd (with the 'right' format) or a tar or something like that, so you can read it in hp-ux.

V.
*** Say 'Thanks' with Kudos ***
Siju Jose_1
Frequent Advisor

Re: Problem in mounting CDs with long filename

Hi

Thanks for all who responded.I understand we may have to go the vendor to correct the settings at this end.Thanks a lot for all your valued advices.Much appreciated.

Regards
Siju Jose