1826414 Members
4316 Online
109692 Solutions
New Discussion

Re: truncate file names

 

truncate file names

I downloaded a software depot from HP website to a Windows 2000 system and burnt a cd with the depots on it. When I mount the CD the file name are truncated and I get an error "Not a valid software depot" when I use the GUI Sam "Software install to local host" utility. I have an HP 9000/715 workstation, how can I build a software depot on this system and copy the software from the cd into the depot. I am not fluid with using the terminal commands so please treat me as a baby(or dummie) and tell what to do step by step. I dont have an ego so dont worry about my feeling LOL. I have working with this box for about a year now off and on.
9 REPLIES 9
Denver Osborn
Honored Contributor

Re: truncate file names

Just a few questions that may help out.

How was the CD burned and how are you mounting it?

What depot software is it and if it was gzipped or a shell archive, did you extract it before burning?

If you unmount the cd and mount it using the "-o cdcase" option is it better?

Try this....

# umount /cdrom
# mount -o cdcase /dev/dsk/cXtXdX /cdrom
# swlist -s /cdrom/one_of_the_depot_files


-denver
Robert-Jan Goossens
Honored Contributor

Re: truncate file names

H.Merijn Brand (procura
Honored Contributor

Re: truncate file names

From my FAQ at https://www.beepz.com/personal/merijn/#FAQ or http://www.cmve.net/~merijn/#FAQ

--8<---
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 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
-->8---

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: truncate file names

Denver I tried that before in my post "Installing Netscape" I burnt the whole archive with the super long file name and the .depot extention. Is it because the file name have been shortened that the files are no longer valid depots? Can I zip the files as a tar and then unpack them into a directory, which I am not sure how to do. Robert Jan I followed your link and it looks like that person has the same problem except he had an 11.xx box to work from and I dont. Ok I dont have a web browser to pull up web pages but I can ping "www.yahoo.com"> usr/sbin/ping www.yahoo.com. How can I connect to an HP ftp depot site and download these files and patches. And remember I am not Unix smart (still learning commands). I dont know if I have an FTP client on here I installed the 10,20 OS from an ACE cd B3782-10178 July 1997 after buying B11.11 B3920-14053 with the application CDs and finding out it will not work with my system. Ok I feel real dumb now LOL and spent 6 month trying to install it LOL.

Re: truncate file names

Procura thanks but I have an 10.20 box,wishing it was an 11.i system EEEEEEEEEEERRRRRRRRRR!!!!
Robert-Jan Goossens
Honored Contributor

Re: truncate file names

Still having fun (:-))

One option
Have you got an other unix machine in this network ?? Try nfs mount it on your server.

Last option and I never done this myself !!!!!

Have you got a pc connected to your server ?
If Yes put the whole cdrom in a directory on windows, winzip it (classic) choose name to be C:\tmp\1020.gz

create on your server a filesystem big enough to hold the cdrom+zipfile let say tmp.

download and install on your hpux gzip
http://hpux.connect.org.uk/ftp/hpux/Gnu/gzip-1.3.3/gzip-1.3.3-sd-10.20.depot.gz

from your pc
enter a command box
ftp ipadres_of_server
login: root
passwd:
bin
lcd tmp
cd tmp
put 1020.gz
quit

login to your hpux server
cd /tmp
# /usr/local/bin/gunzip 1020.gz

and sea if you are a lucky man !!

Robert-Jan.
H.Merijn Brand (procura
Honored Contributor

Re: truncate file names

Or install Cygwin on your windows machine (http://sources.redhat.com/cygwin/ click setup in the upper right corner) and have all unix commands available on your M$ box, including gzip, tar, cpio, ssh, scp, ...
And ... a complete X client *and* server for free

install samba on your hp-ux machine and with the richt shares, you can just

pc_box /tmp > cp very_long_name_with-strange-version.numbers.1.13_a.sd.depot.gz //your_hpux_box/share/tmp/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn

Re: truncate file names

I think I am just going put these boxes on E-Bay they are more trouble than it's worth and thank you for all your help

Cecil
curt larson_1
Honored Contributor

Re: truncate file names

Cecil,

maybe this will help out.

be sure to save the files as text,
not html files.
(with no browser, I doubt if this is an issue)

before you burn the cd,
change the file names to a format of
8characters.3characters, i.e.
abcdefgh.123

(write down the long names
if your wanting to use them later)

mount the cd on your unix system using
the cdcase option

now you should be able to do a find on the
cd mount directory and see the file names
just fine.

being these are files saved on a winduhs
system, they don't have unix newlines.
So, you'll have to do dos2ux on the files.

dos2ux cdrom/file > /tmp/newfile
#use the saved long name from above if you wish

do the install using the /tmp/newfile.