How to mount an ISO Image with AIX 6.1 TL4
来源:互联网 发布:php获取qq号码 编辑:程序博客网 时间:2024/06/14 04:40
Starting with AIX 6.1 TL 4, AIX offers a new command to directly mount an ISO file. The loopmount command will mount any ISO image directly into the filesystem without the need to copy it into a raw LV as before. The command requires a new fileset, devices.loopback.rte 6.1.4.0. When the fileset is installed, the loopmount command is able to perform the mount of any ISO file residing in your filesystem:
Example:
# loopmount -i POWERHA_Std_Edition_6_1.ISO -o "-o ro -V cdrfs" -m /mnt
QuestionThis technote discusses the use of the loopback device to mount file or disk images in AIXAnswerIntroduction
In AIX 6100-04-00-0943 (6.1 TL4) support for a loopback device was added to AIX and VIOS (PowerVM). This device can be used as a block device to provide access to file images.
The file image can be an ISO image, a disk image, a filesystem or a logical volume. These images can be mounted into the filesystem tree via the /usr/sbin/loopmount command.
A loopback device can be created before mounting a file image using /usr/sbin/mkdev or the loopmount command can automatically create it.
According to the AIX 6.1 manuals on Infocenter, there are some restrictions to the loopback device:
* The varyonvg command on a disk image is not supported.
* A CD ISO, and DVD UDF+ISO, and other CD/DVD images are only supported in read-only format.
* An image file can be associated with only one loopback device.
* Loopback devices are not supported in workload partitions.
Mounting a File
To mount a file on the loopback device, the loopmount command is used. In the example below the loopback device is created automatically by the command.
Remember unlike crfs the mount point directory must already exist.
# mkdir /cdmount
# loopmount -i /backup/cd_image_327874 -l loop0 -o "-V cdrfs -o ro" -m /cdmount
# df
/dev/loop0 1678304 0 100% 419576 100% /cdmount
# lsdev -C | grep loop
loop0 Available Loopback Device
# cd /dev
# ls -l loop*
brw-rw---- 1 root system 34, 0 Nov 27 06:43 loop0
During its existence the loopback device is listed in the CuAt, CuDv and CuDvDr ODM object classes.
Unmounting a File
To unmount a file mounted on the loopback device, use /usr/sbin/loopumount. If the regular /usr/sbin/umount command is used the dynamically created loopback device will not be unconfigured.
# loopumount -l loop0 -m /cdmount
Notice that since the loop0 device was created dynamically in the previous mount it will be deleted when not needed any more.
# df | grep loop
<nothing returned>
# lsdev -C | grep loop
<nothing returned>
Possible Problems and Solutions
---------------
# loopmount -i /images/IBM.iso -l loop0 -o "-V cdrfs -o ro" -m /cdmount
1320-003 loopmount: Specified loopback device is not found in ODM
Customized Database
Using the -l option assumes the loopback device already exists in /dev and the ODM classes.
If the device doesn't exist you can create it with mkdev:
# mkdev -c loopback -s node -t loopback
loop0 Available
Then use loopmount with -i and -l options to mount into the filesystem tree.
---------------
# loopmount -i /images/IBM.iso -o "-V cdrfs -o ro" -m /cdmount
1320-007 loopmount: Failed to mount the imagefile
Make sure the mount point directory exists
Check the mount options. Readonly must be supplied.
In AIX 6100-04-00-0943 (6.1 TL4) support for a loopback device was added to AIX and VIOS (PowerVM). This device can be used as a block device to provide access to file images.
The file image can be an ISO image, a disk image, a filesystem or a logical volume. These images can be mounted into the filesystem tree via the /usr/sbin/loopmount command.
A loopback device can be created before mounting a file image using /usr/sbin/mkdev or the loopmount command can automatically create it.
According to the AIX 6.1 manuals on Infocenter, there are some restrictions to the loopback device:
* The varyonvg command on a disk image is not supported.
* A CD ISO, and DVD UDF+ISO, and other CD/DVD images are only supported in read-only format.
* An image file can be associated with only one loopback device.
* Loopback devices are not supported in workload partitions.
Mounting a File
To mount a file on the loopback device, the loopmount command is used. In the example below the loopback device is created automatically by the command.
Remember unlike crfs the mount point directory must already exist.
# mkdir /cdmount
# loopmount -i /backup/cd_image_327874 -l loop0 -o "-V cdrfs -o ro" -m /cdmount
# df
/dev/loop0 1678304 0 100% 419576 100% /cdmount
# lsdev -C | grep loop
loop0 Available Loopback Device
# cd /dev
# ls -l loop*
brw-rw---- 1 root system 34, 0 Nov 27 06:43 loop0
During its existence the loopback device is listed in the CuAt, CuDv and CuDvDr ODM object classes.
Unmounting a File
To unmount a file mounted on the loopback device, use /usr/sbin/loopumount. If the regular /usr/sbin/umount command is used the dynamically created loopback device will not be unconfigured.
# loopumount -l loop0 -m /cdmount
Notice that since the loop0 device was created dynamically in the previous mount it will be deleted when not needed any more.
# df | grep loop
<nothing returned>
# lsdev -C | grep loop
<nothing returned>
Possible Problems and Solutions
---------------
# loopmount -i /images/IBM.iso -l loop0 -o "-V cdrfs -o ro" -m /cdmount
1320-003 loopmount: Specified loopback device is not found in ODM
Customized Database
Using the -l option assumes the loopback device already exists in /dev and the ODM classes.
If the device doesn't exist you can create it with mkdev:
# mkdev -c loopback -s node -t loopback
loop0 Available
Then use loopmount with -i and -l options to mount into the filesystem tree.
---------------
# loopmount -i /images/IBM.iso -o "-V cdrfs -o ro" -m /cdmount
1320-007 loopmount: Failed to mount the imagefile
Make sure the mount point directory exists
Check the mount options. Readonly must be supplied.
http://www.aixchina.net/home/space.php?uid=3428&do=blog&id=26133
- How to mount an ISO Image with AIX 6.1 TL4
- How to: Mount an ISO image under Linux(Linux 下 mount .iso 镜像文件)
- How to mount an image file.
- How to burn an ISO-image into a DVD
- Mount an ISO image under Linux
- How to rotate an image with CSS under different browser
- 如何挂载一个镜像文件(how to mount an image file)
- How to center an image?
- How to mount a xen image ?
- how to mount and unmount ISO file in Ubuntu
- How to load an url image
- How To Upload An Image into BSP
- How to Get an Android Device Image?
- mount iso image in linux
- How to mount ISO images on HP-UX, Solaris and Linux(挂载ISO镜像文件)
- missing iso 9660 image the installer has tried to mount image #1
- Install Ubuntu with ISO image file, without burning to CD
- How to store an image file to SQliteDB in android
- SVN安装使用
- APK安装过程及原理详解
- TCP报文重组和会话的唯一确定规则
- oracle函数学习四(常用转换函数,聚合函数)
- Eclipse SVN Plugin Error
- How to mount an ISO Image with AIX 6.1 TL4
- AIX网络服务的启动
- /sys/class/gpio 文件接口操作IO端口(s3c2440)
- write() vs. writev()
- 高级I/O(七)--readv和writev函数
- DOS和UNIX文本文件之间相互转换的方法
- Linux kernel 重要版本发布日期
- XML增删改查实例之增
- [springMVC]javax.servlet.jsp.JspTagException: Neither BindingResult nor plain target object for bean