Howto mount an ISO image in AIX UNIX

Q. I know how to mount an ISO image in Sun Solaris UNIX and Linux. I was just wondering if there is a way to mount an ISO image in IBM AIX UNIX.

A. You need to type the following commands:
=> crfs: Adds a file system.

=> dd: A raw copy tool for UNIX

=> chfs: Changes attributes of a file system.

=> mount: Mount a file system

=> rmfs : Remove a file system

First Create a filesystem with crfs command:
#/usr/sbin/crfs -v jfs -g rootvg -a size=800 -m/cd1iso -Ano -pro -tno -a frag=4096 -a nbpi=4096 -a ag=8

This command creates the /cd1iso file system on the rootvg volume group.

Now dd the “iso” image into rlv00
# dd if=image.iso of=/dev/rlv00 bs=10M

Use chfs to change the attributes of a file system:
# chfs -a vfs=cdrom cd1iso
# mount /cd1iso
# cd /cd1iso

When done, remove the filesystem/unmount, enter:
# rmfs /cd1iso

This removes the /cd1iso file system, its entry in the /etc/filesystems (created using chfs command) file, and the underlying logical volume.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • Na Dec 29, 2007 @ 4:21

    Nice instructions!
    The size of the cd1iso file system needs to
    be larger than the iso file.
    My iso file was 600+ MB.
    For even larger ISO files, for example,
    DVD images, use larger ag and nbpi.
    to remove the logical volume, use:
    rmlv lv00

  • stef Nov 7, 2008 @ 15:46

    hello,
    the vfs type cdrom does’nt exist under AIX, the type is cdrfs.

    Best regards,

    Stef

  • Karthi Sep 16, 2009 @ 18:19

    thanks a lot buddy. !!! It really helped me.. I will tell you easy steps for this now..

    mklv -y cdlvg -s n -L /dev/cdlvg rootvg 410M hdisk0
    dd if=/testjava/new-download/32-bit/cd.cz3q5en.iso of=/dev/cdlvg
    mount -v cdrfs -o ro /dev/cdlvg /mnt/iso

  • Scott W. Aug 22, 2011 @ 21:11

    loopmount is now available starting with AIX 6.1

  • ChethanMJ Mar 25, 2013 @ 15:21

    After doing this am trying to execute a file but it says perms denied and I cant change perms as well. Any help is much appreciated.

    Thanks

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum