Re: CD mount issue in HP-UX (1078 Views)
Reply
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 1 of 29 (1,072 Views)

CD mount issue in HP-UX

Hi,

We have downloaded the software & write DVD on Windows XP machine. But while mounting the CD on HP_UX server it shows junk/corrupted file names & ^m charaters appearing in files.
CD mount perfectly OK on linux machine.

Can some one tell steps to mount such CDs , also is there any spscific format/CD writing software we have to use while writing the CD.

Thanks in advance.

Varian
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 2 of 29 (1,072 Views)

Re: CD mount issue in HP-UX

Hi Varian,

Could you post your HPUX version?

Regards,
Robert-Jan
Respected Contributor
Jupinder Bedi
Posts: 333
Registered: ‎01-14-2010
Message 3 of 29 (1,072 Views)

Re: CD mount issue in HP-UX

M is a character will be inserted when moving dos file to unix system. To remove this you need to run the following command

# dos2ux filename
All things excellent are as difficult as they are rare
Honored Contributor
Horia Chirculescu
Posts: 829
Registered: ‎07-11-2009
Message 4 of 29 (1,072 Views)

Re: CD mount issue in HP-UX

Hello, Walter

When you create the DVD, select on your writing software ISO9660+ Joliet extensions the DVD file system. And the character set must be also ISO9660.

Most writing software offers also the posibility to allow more than 255 characters in path, which can be usefull.

Best regards,
Horia.
Best regards from Romania,
Horia.
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 5 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

Hi ,

Thanks for your replies, Currently I do not have a exact version of the HP-UX OS.

I copied the CD thru Roxio software which does not give me option of file system you have mentioned. Please find attached screen shot for the available file system options.

It seems our team has already tried option of dostounix command but that does not help.

Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 6 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

Hi Varian,

If can login the HPUX server could you give me the output of the uname -a command? Some HPUX versions need to be patched.

Try

# mount -r -F cdfs /dev/dsk/c1t2d0 /cdrom

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1264075048811+28353475&...

Regards,
Robert-Jan
Honored Contributor
Bill Hassell
Posts: 14,205
Registered: ‎05-29-2000
Message 7 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

If the filenames are all UPPERCASE in 8.3 format with a ; (ie, ABCDEFGH.XYZ;1), this is perfectly normal. You are seeing the standard ISO 9660 filename format. Note: Joliet (if you can find it in the myriad of hidden options in Roxio) will render the CD unreadable on HP-UX.

The correct mount option is -orr which stands for RockRidge format. Now the filenames will be the original case (lowerUPPER) and the ;1 will be stripped. NOTE: If the -orr option is not shown in the man page for mount_cdfs, then the HP-UX version is too old (long, long out of support) or it has not been patched.

As mentioned, the ^M characters are part of the file. That's because you have copied PC files to the CD and the end of line flag on a PC is CR+LF while in Unix it is just LF. The carriage return is CTRL-M on the keyboard so ^M shows up in vi and other display tools.

You'll have to use dos2ux to translate the files.
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 8 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

Hi Bill,

Thanks for the update,
We tried -orr option, but still it mounts in 8.3 format.
We are planing to mount the cd on either windows or linux system & then ftp it to hp-ux. (let me know is there any better way)

Also wanted to know is there any easy method to remove control charaters from files. The dos2ux command removes both required & not required control charaters.
Also the installable size is around 14GB, so wanted to to know is there any automated script which I can apply to remove control characters.

Thanks a lot for all help.
Varian
Acclaimed Contributor
Torsten.
Posts: 23,303
Registered: ‎10-02-2001
Message 9 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

With HP-UX 11.31 you can mount ISO files directly.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Honored Contributor
Bill Hassell
Posts: 14,205
Registered: ‎05-29-2000
Message 10 of 29 (1,079 Views)

Re: CD mount issue in HP-UX

Since you are mounting it on a Linux system, you can use ftp to filter the ^M characters for you. ftp is a multi-OS program that knows the local file formats. When you transfer ASCII files, use the ASCII command in ftp to read the CD in native format. Then ftp will transfer the file in a format-neutral method so it will be stored on the HP-UX system in the correct manner.

There are several drag-n-drop ftp programs for Linux including the FireFTP plugin for Firefox. These programs will handle multiple levels of directories.

> installable size is around 14 GB

Is this just a collection of ASCII files or is it an application with executables and other binary files? HP-UX is not a PC so Windows/PC programs are useless on the HP-UX system.
Honored Contributor
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 11 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

> [...] Currently I do not have a exact
> version of the HP-UX OS.

uname -a

> Please find attached screen shot for the
> available file system options.

And if I were sitting at a Windows system,
then I might be able to read that. But I'm
not.

> We tried -orr option, but still it mounts
> in 8.3 format.

You need to enable the RockRidge names when
you create the CD/DVD. _Then_ "-o rr" may
do something useful when you mount it.

> We are planing to mount the cd on either
> windows or linux system & then ftp it to
> hp-ux. (let me know is there any better
> way)

Why is there a CD/DVD in here at all? Why
not use FTP directly from the Windows system
to the HP-UX system? What is the actual
problem which you are trying to solve? Are
you trying to make/read a CD/DVD, or are you
trying to move files, or what?

> The dos2ux command removes both required &
> not required control charaters.

What, exactly, are these "required & not
required control" characters?

The Info-ZIP Zip and UnZip programs offer
some options to adjust line endings in text
files. (Zip: "-l", "-ll", UnZip: "-a",
"-aa"). If you are trying to transport a
whole directory tree at one time, then it
might make sense to use a Zip archive to do
it. (Whether or not it makes sense to use a
CD/DVD is a separate question.) Note that
using a Zip archive should solve any file
name problems (except, perhaps, of the
archive itself).
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 12 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

Shalom,

Recommend you use filezilla in sftp mode for transferring files from windows to Unix or Linux. sftp can figure out whether a file is binary or ascii and prevent file mangling.

>>
With HP-UX 11.31 you can mount ISO files directly.
<<

I'd like to see a procedure on this myself that doesn't involve copying the iso image to 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
Acclaimed Contributor
Torsten.
Posts: 23,303
Registered: ‎10-02-2001
Message 13 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

SEP, here you are:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ISOIMAGE-ENH


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Acclaimed Contributor
Torsten.
Posts: 23,303
Registered: ‎10-02-2001
Message 14 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

Forgot to say, with a new generation server (e.g. blade or rx3600, rx6600 or rx2660) you can even use vMEDIA to provide the ISO via iLO.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 15 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

Thanks for all your replies,

The OS version is 11.23 , I have write the DVD & send to my remote office, these are all installable files including binary & Ascii.

Just wanted to reconfirm on the ISO file format. Do you mean i have to write a DVD with file like Disk1.iso & mount DVD on HP_UX, copy the file on local disk & then we will able to mount this file as CDFS format like CD mount?
Is that understanding is correct?
what will be the command?

Thanks ,

Varian
Honored Contributor
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 16 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

> Do you mean i have to [...]

I don't know about the others, but I
certainly didn't mean that. Whether you
write your CD/DVD image to a CD/DVD one way
or another, if it doesn't include the long
names, then you won't see them on the HP-UX
system, no matter which "mount" options you
specify.

The original ISO 9660 standard for a CD-ROM
file system was intended to support multiple
file/operating systems, including DOS and
VMS, which lead to things like short,
upper-case file names with version numbers
(like ";1"). Later, various extensions were
added, allowing storage of more exotic file
names. Windows uses its own "Joliet" scheme,
while many others (including HP-UX) use the
"RockRidge" scheme. If you would like to
see better file names on a non-Windows
system, then you should create the CD/DVD
using the RockRidge name extension. Good
CD/DVD creation software will have an option
to enable RockRidge name storage.

> [...] the software [...]

I don't know if your "the software" can do it
or not.

> [...] Roxio software [...]

That's not a much better description than
"the software". Does the "Roxio software"
come with documentation? Does it mention
RockRidge?

> [...] is there any spscific format/CD
> writing software we have to use while
> writing the CD.

Nothing specific, just something which knows
how to add the RockRidge name data.


And, of course, fixing the file names will do
nothing about the line endings in the text files.

Have you considered the Zip archive scheme?
Unless you wish to be able to access
individual files directly fron the CD/DVD,
that might be the easiest way to solve the
file name and file content problems.


> [...] junk/corrupted file names [...]

That wasn't a very helpful description,
either, by the way.
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 17 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

Hi Steve,

Can you please let me know what is the zip archive method you are refering to? Do you mean zip files in windows machines copy/ftp to HP-UX & then unzip?

Thanks

Varian
Honored Contributor
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 18 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

> [...] Do you mean zip files in windows
> machines copy/ftp to HP-UX & then unzip?

Yes. Or put the Zip archive onto a CD/DVD
and carry the disc to the HP-UX system. When
you have the files in a Zip archive, the
original file names should be stored there,
so how you get the Zip archive to the
destination system should matter little.

I'm not a serious Windows user, so I don't
know much about most of the Zip software
which is available there. The Info-ZIP Zip
program has those "-l" and "-ll" options. I
don't know who else has what else. On the
HP-UX side, Info-ZIP UnZip is probably the
best (if not the only) choice.

> Also the installable size is around 14GB,
> [...]

You'll need [Un]Zip software with large-file
support, like Info-ZIP Zip 3.0 and Unzip 6.0.

http://www.info-zip.org/

You could probably find HP-UX depots for
these things in the usual places, but it
should be easy enough to build them from the
source kits, too. (Windows executable kits
should also be available, if you don't
already have adequate Zip software there.)

The biggest potential problem with the Zip
method is that it makes it more difficult to
get to individual files on a CD/DVD. If
that's important, then I'd keep looking for a
way to enable the RockRidge name storage in
your CD/DVD-creation software.

On the other hand, you won't be getting 14GB
onto one DVD without some compression. Using
Zip might help with the disc count.
Honored Contributor
Horia Chirculescu
Posts: 829
Registered: ‎07-11-2009
Message 19 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

Hello,

From the attached doc I see that you have the option "Track at Once". Some old DVD units have problems reading DVD media which have open sessions.

Maybe you should try to write the DVD using "Disk at once", and selecting - if availlable- the option "close disk afther burning"

Best regards,
Horia.
Best regards from Romania,
Horia.
Frequent Advisor
Gordon Sjodin
Posts: 54
Registered: ‎07-03-1996
Message 20 of 29 (1,078 Views)

Re: CD mount issue in HP-UX

If you have enough disk space download the iso dirrectly onto the hpux machine and just mount the iso.
Trusted Contributor
Michael Sillers
Posts: 103
Registered: ‎11-19-2004
Message 21 of 29 (1,077 Views)

Re: CD mount issue in HP-UX

I seem to recall something about CDs created under windows requiring a special parameter - cdcase - in the mount command.

mount -o cdcase -F cdfs

Does this help any?
Honored Contributor
Steven Schweda
Posts: 9,090
Registered: ‎02-23-2005
Message 22 of 29 (1,077 Views)

Re: CD mount issue in HP-UX

> If you have enough disk space download the
> iso dirrectly onto the hpux machine and
> just mount the iso.

How, exactly, would that solve either problem
here (bad file names, bad line endings in
text files)?


> mount -o cdcase -F cdfs

"man mount_cdfs" should give the whole list.

Around here, for example:

[...]
-o specific_options
Specify options specific to the CDFS file system
type. specific_options is a list of comma separated
suboptions and/or keyword/attribute pairs intended
for the CDFS specific module of the command.

The following specific_options are valid on CDFS file
systems.

cdcase Suppress the display of version numbers.
Show and match file names as lower case.

rr Use Rock Ridge extension to the ISO-9660
file system (default).
[...]

Without a useful description of
"junk/corrupted file names", it's hard to say
if down-casing and version stripping would
solve the file name complaint. If the
RockRidge data were there, then I'd expect
"rr" to be more helpful than "cdcase". I'm
unaware of any "mount" option which would do
anything about the unpopular line endings in
the text files.
Frequent Advisor
Gordon Sjodin
Posts: 54
Registered: ‎07-03-1996
Message 23 of 29 (1,077 Views)

Re: CD mount issue in HP-UX

>How, exactly, would that solve either problem here (bad file names, bad line endings in text files)?


Well for starters it eliminates the multiple bad burns until you find the correct method.

Who knows what the windows machine is doing to the data? - this eliminates a wild card by downloading directly to the hp-ux host.


Respected Contributor
Taifur
Posts: 504
Registered: ‎12-11-2007
Message 24 of 29 (1,077 Views)

Re: CD mount issue in HP-UX

Hi,
Try with #fuser -ck /cdrom and again mount it and check this isuuse.

Rgds//
Taifur
Frequent Advisor
walter crasto_1
Posts: 63
Registered: ‎01-01-2004
Message 25 of 29 (1,077 Views)

Re: CD mount issue in HP-UX

Hi ,

I copied DVD in 3 differnt format using Roxio
1> ISO+Joliet+UDF (106 Character)
2> ISO+Joliet (106 Character)
3> ISO Level 2 (212 Character)

& also one more copy of DVD using Nero software but no luck same problem.

Can any one help.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.