[brandz-discuss] brandz zone install: first impressions

James McPherson james.c.mcpherson at gmail.com
Mon Oct 2 22:34:04 PDT 2006


On 10/3/06, Nils Nieuwejaar <nils.nieuwejaar at sun.com> wrote:
...
> Bill: is there any way to identify an ISO without mounting it?


Not anything really easy as far as I'm aware. There are some
ISOs which seems to start with sort-of text (picked up by strings)
and others where you have to page through a bit first before you
see what you recognise as ISO-like data.

Perhaps running something like this might help:

ISOFILE=/path/to/possible.iso
LOFIDEV=`lofiadm -F hsfs -o ro $ISOFILE`
if [ $? ]; then
   echo "file $ISOFILE is not an ISO file";
fi


a bit ungainly in that you have to try a lofi operation, and if
the ISO image has faults (some centos and fedora images
spring to mind) then you'll probably get a panic.


cheers,
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
              http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson



More information about the brandz-discuss mailing list