1753394 Members
7228 Online
108792 Solutions
New Discussion юеВ

mount a iso image file

 
Antonio Cardoso_1
Trusted Contributor

mount a iso image file

Hi all,
I would like to mount a iso image file directly without having to burn a CD with it.
Is there a way on HP-UX to perform this (like it is using lofiadm on Sun or -o loopback on Linux)

regards,
antonio.
10 REPLIES 10
melvyn burnard
Honored Contributor

Re: mount a iso image file

maybe take a look at the mount_lofs command, this may be what you are loking for
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Antonio Cardoso_1
Trusted Contributor

Re: mount a iso image file

hi,
I tried several mount types, including lofs and cdfs, the reply is usually :
ocnlab01,sys,root # mount -r -F cdfs /tmp/myfile.iso /cdrom
mount: /tmp/myfile.iso is an invalid operand

or

ocnlab01,sys,root # mount -r -F lofs /tmp/myfile.iso /cdrom
mount: /tmp/myfile.iso is an invalid operand

maybe is there a way to create (using insf or mksf) some pseudo special devices to handle the .iso file and let then the mount operate?
I seeked a bit for that without success...

thank's
Alzhy
Honored Contributor

Re: mount a iso image file

I posted this question some weeks back.. but it does not work (or I was not able to make it work).. If you have a Linux or Sun machine nearby you're in luck. On sun the procedure is:

root# cd /where_your_iso_is
root# lofiadm -a `pwd`/cdrom_image.iso
/dev/lofi/1
root# mount -F hsfs /dev/lofi/1 /mnt

You can then access the image under /mnt.
Hakuna Matata.
H.Merijn Brand (procura
Honored Contributor

Re: mount a iso image file

You could use cdrtools, now also available for hp-ux

devdump, isoinfo, isovfy, isodump - Utility programs for dumping and verifying iso9660 images.

devdump isoimage

isodump isoimage

isoinfo [ -d ] [ -h ] [ -R ] [ -J ] [ -j charset ] [ -f ]
[ -l ] [ -p ] [ -T sector ] [ -N sector ] [ -i isoimage ]
[ -x path ]

isovfy isoimage

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Paul Seyfried
New Member

Re: mount a iso image file

Hi,
I think pfs is what you are looking for (tested with HP-UX 11.11)

touch /etc/pfs_fstab
/usr/sbin/pfs_mountd &
pfsd 1 &
pfs_mount -t rrip /xx.iso /tmp_mnt

I tested this end of 2002, after about 2 hours pfs and pfsd crashed, so i used it only to copy the image-contents to a filesystem.
Maybe today its more stable.

Paul
Antonio Cardoso_1
Trusted Contributor

Re: mount a iso image file

Hi Paul,
it looks like what I was searching for !
I achieved mounting a iso image with:
pfs_mount -t iso9660 -o xlat=unix /tmp/myfile.iso /cdrom

however, I couldn't get correct translations for filenames, using any of xlat translations (including generation of iso file with Joliet directory, TRANS.TBL, ...).

This results in filenames being shown with an extra leading periods.
I could fix that using '-d' option of mkisofs.
=> /opt/mkisofs/bin/mkisofs -o /tmp/myfile.iso -L -J -d mysource_dir

Thank's a lot !
Antonio Cardoso_1
Trusted Contributor

Re: mount a iso image file

Another set of commands that worked fine:
- build the iso image using the -r option instead of previous options set:
/opt/mkisofs/bin/mkisofs -o /tmp/myfile.iso -r my_source_dir
- mount it using -rrip as proposed by Paul:
pfs_mount -t rrip myfile.iso /cdrom

bye.
Alzhy
Honored Contributor

Re: mount a iso image file

Tony.. you mean to say Joliet is supported on HP-UX? On Solaris it is not but I've raised an RFE for this.. Liniux does support Joliet..
Hakuna Matata.
Antonio Cardoso_1
Trusted Contributor

Re: mount a iso image file

No, my understanding is that HP-UX doesn't handle Joliet in pfs_mount -t iso9660 , because if it did I wouldn't have to add the "-d" option to mkisofs.

However, the rockridge format is now supported (as of december-2003 release oh HP11i I think), which seems to be an alternative.

Am I wrong ?