Operating System - Tru64 Unix
1827810 Members
1877 Online
109969 Solutions
New Discussion

Differntiate between ISO9660 and UFS CDROMs

 
k_75
Occasional Advisor

Differntiate between ISO9660 and UFS CDROMs

Hi,

How can I differentiate between ISO 9660 and UFS CD-ROM?
I need to mount CD on TRU64 server but there seems to be differing command syntaxes for either case.

Can anyone provide command and way to distinguish between the two formats?

Regards,
kell
4 REPLIES 4
Vladimir Fabecic
Honored Contributor

Re: Differntiate between ISO9660 and UFS CDROMs

UFS CD-ROM:
# mount -r /dev/disk/cdrom0c /mnt
ISO9660 CD-ROM:
# mount -r -t cdfs -o noversion /dev/disk/cdrom0c /mnt
In vino veritas, in VMS cluster
Steven Schweda
Honored Contributor

Re: Differntiate between ISO9660 and UFS CDROMs

The easiest way is probably to try to mount
it one way, and if that fails, then try to
mount it the other way.

Otherwise, you could probably read the first
block (or few), and try to analyze the data.
I haven't looked closely, but there's
probably some distinctive charateristic which
is reliable (and fairly easy to spot).
Stiwi Wondrusch
Trusted Contributor

Re: Differntiate between ISO9660 and UFS CDROMs

From the mount man page:
If you do not specify options for file name formats on the command line, the mount command automatically tests for the presence of formats and mounts it by default

I mount everything like this:
mount /dev/disk/cdrom0c /mnt

Let Tru64 (5.1b) do the work for you.

rgds Stiwi
k_75
Occasional Advisor

Re: Differntiate between ISO9660 and UFS CDROMs

Thanks for the help folks!
I can mount the CD now. But I will still like to find out any generic way to ascertain format of CDROM.