How to mount ISO images on HP-UX, Solaris and Linux(挂载ISO镜像文件)

来源:互联网 发布:服务器端软件有哪些 编辑:程序博客网 时间:2024/05/22 00:40

www.devrecipes.com/2009/05/20/how-to-mount-iso-images-on-hp-ux-solaris-and-linux/

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 slightlygreater than the size of your iso image in MB. You can do this from theadmin 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

原创粉丝点击