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

本文介绍了在HP-UX、Solaris和Linux操作系统中挂载ISO映像的方法,包括HP-UX的版本11.11和11.31的详细步骤,Solaris的ISO映像访问方法,以及Linux中使用loopback挂载ISO的技巧。

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 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值