ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Mount ISO on liunx/aix/solaris

Mount ISO on liunx/aix/solaris

原创 Linux操作系统 作者:ningzi82 时间:2010-11-15 13:35:33 0 删除 编辑

Redhat Liunx:

mount -o loop -t iso9660 /tmp/iso.iso /media/cdrom

Aix:

Mounting ISO images on AIX
There is a known problem with mounting ISO images on the AIX platform. To workaround the problem, complete the following instructions:

Obtain the size of the image.
For example:

# ls -al
total 731594
drwxr-xr-x 2 root system 512 Aug 18 11:33 .
drwxr-xr-x 6 root system 512 Aug 18 11:32 ..
-rw-r--r-- 1 root system 374575104 Apr 29 02:59
fim_console_rios_aix_5.iso

Identify the nearest multiple of 128 MB that will provide enough space for the image. In the above example, the image is approximately 374 MB, so use 384 MB as an image size.
Make a logical volume of this size. Ensure that there is enough space on the physical volume. For example, hdisk0.

# mklv -y cdlv -s n -L /dev/cdlv rootvg 384M hdisk0
If the command fails, increase the volume size by a multiple of 128.

Use thedd command to create a pseudo-device. Ensure that the partition has enough space for the pseudo-device. In the following example command, the pseudo-device is /dev/cdlv.
# dd if=/opt/software/iso/fim_console_rios_aix_5.iso of=/dev/cdlv
Note that this command may take a long time and will create two dd processes.

Mount the device like a CD-ROM in AIX. Ensure that the mount point exists.
# mount -v cdrfs -o ro /dev/cdlv /mnt/iso
Change directory into /mnt/iso.

注:如果DD比较慢,把BS设置大一点。

[@more@]
AIX mount ISO文件:
mklv -y cd1 -s n -L /dev/cd1 rootvg 650M hdisk0
dd if=/tmp/Oracle10g2.iso of=/dev/cd1 bs=1024k
mkdir /mnt/cd1
mount -v cdrfs -o ro /dev/cd1 /mnt/cd1
Solaris mount ISO文件:
lofiadm (查看已在使用的设备)
lofiadm -a /tmp/Oracle10g2.iso /dev/lofi/2
lofiadm /dev/lofi/2 (查看新创建的块设备)
mount -F hsfs -o ro /dev/lofi/2 /mnt/cd1

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/789833/viewspace-1041503/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-12-16

  • 博文量
    130
  • 访问量
    358880