How to mount ISO images on HP-UX, Solaris and Linux

May 20th, 2009 in HP-UX, Linux, Solaris, Unix. 3 comments
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading ... Loading ...

On HP-UX

For version 11.11:

  • Start the pfs mount daemon and the pfs daemon:

    shell> nohup pfs_mountd &
    shell> nohup pfsd &

  • Then create the directory to mount to and run the pfs_mount command:

    shell> mkdir /cdrom
    shell> pfs_mount -o xlat=UNIX /path/to/isofile /cdrom

Version 11.31

  • Create a new logical volume say ‘iso’ of size slightly greater than the size of your iso image in MB. You can do this from the admin tool-sam, or by using the following command.

    shell>lvcreate -L size_of_your_iso -n iso /dev/vg00

  • Write your iso to the new volume. Needless to say, you must have the required free space.

    shell>dd if=path/to/iso of=/dev/vg00/riso bs=64

  • Now mount it on the directory of your choice, say /cdrom:

    shell>mount /dev/vg00/iso /cdrom

On Solaris

  • Make the iso image accessible through the block device. (See the lofiadm man page for more details)

    shell> lofiadm -a /path/to/iso/your_isao.iso

  • Then mount it wherever you want to, say on /cdrom

    shell> mount -F hsfs -o ro /dev/lofi/1 /cdrom

On Linux

  • Use the following command to mount on the directory of your choice, say /mnt/myisodir

    mount -o loop myiso.iso /mnt/myisodir

Tags: , , ,

3 Responses to “How to mount ISO images on HP-UX, Solaris and Linux”

  1. Basavaraj at
    says:

    On FreeBSD
    ———-

    The mount command which is for Linux will not work on FreeBSD, here is the command to mount the ISO file on FreeBSD.

    mdconfig -a -t vnode -f -u 0

    mount -t cd9660 /dev/md0

  2. Basavaraj at
    says:

    On FreeBSD:
    ——————-

    The mount command which is for Linux will not work on FreeBSD, here is the command to mount the ISO file on FreeBSD.

    mdconfig -a -t vnode -f ISO_filename_path -u 0

    mount -t cd9660 /dev/md0 mount_destination_path

  3. Thomas at
    says:

    For HP-UX 11.31 (since 09.2009)
    ——————————-
    - load ISOIMAGE-ENH from software.hp.com
    - install it on your server
    - load the module:

    shell> kcmodule fspd=loaded

    The rest is simple:
    shell> mkdir /cdrom
    shell> mount /path/to/isofile /cdrom

Leave a Reply

Sponsors