1854673 Members
15189 Online
104102 Solutions
New Discussion

Filename length

 
Xerxes Mistry
New Member

Filename length

Help..

I am trying to index several CD's in to one file that i can search later on and find the relevant cd that the infomation is on. Unfortunately, the file length is only 6 characters long followed by ~. E.g HELPDE~1.

Any ideas on how i can get the full filename and the directory path so that i can do my file indexing??

T.I.A

Xerxes
presumption is the mother of all cock ups
4 REPLIES 4
Santosh Nair_1
Honored Contributor

Re: Filename length

The filename is being truncated because of the way the CD is mounted. Unfortunately, for HPUX, you have use PFS (which ships with the OS) to mount the CD in order to see the proper name. Bascially, the steps are:

Make sure the machine is NFS server and client

Start psf_mountd, i.e. pfs_mountd &

Start pfsd, i.e. pfsd&

Edit /etc/pfs_fstab

and finally do a pfs_mount to mount your CD.

Do a man on pfs for more details. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
James R. Ferguson
Acclaimed Contributor

Re: Filename length

Hi:

Try these methods:

# mount -o cdcase /dev/dsk/cXtYdZ /cdrom

...or have a look at Technical Knowledge Base document #KBAN00000252 on using the 'pfs_mount'.

Regards!

...JRF...

Wodisch
Honored Contributor

Re: Filename length

Hello,

you might just use one of the many "how to mount Oracle CDs" threads (since we do not have a FAQ), the current one (today) seems to be:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x79b84e49c5cdd5118ff40090279cd0f9,00.html

HTH,
Wodisch
Sanjay_6
Honored Contributor

Re: Filename length

Hi Xerxes,

Try to use the cdcase option with mount and see if that helps. Avoid pfs mounting if you can. pfs mount is a touchy thing and sometimes creates a problem, which is solved only by a reboot.

to use cdcase,

mount -o cdcase /dev/dsk/cd_device /cdrom

to use pfs mount
edit /etc/pfs_fstab and put this line.
/dev/dsk/cd_device /cdrom pfs-rrip xlat-unix 1 0
run these commands
# nohup pfs_mountd &
# nohup pfsd &
# pfs_mount /cdrom
# bdf

Once done,
# pfs_umount /cdrom
and kill these processes
pfs_mountd
pfsd
pfs_mountd.rpc
pfsd.rpc

You can use this command too to mount the CD in pfs format without editing the /etc/pfs_fstab file

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

Hope this helps.

Regards