How to Mount CDROM and ISO Image in AIX

Mount CD,DVD and ISO image in AIX (mount cdrom Unix)

First Confirm Nothing is mounted on /mnt partition

nodeA:/# mount | grep mnt

*To mount a CD from the CLI use:

nodeA:/#mount -V cdrfs -o ro /dev/cd0 /mnt
nodeA:/#df -g /mnt
To confirm what is mounted inside the partition
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/cd0 4.64 0.00 100% 1505750 100% /mnt

To mount a iso image on the /mnt directory use below command for AIX:

nodeA:/#loopmount -i aix61_dvd.iso -o "-V cdrfs -o ro" -m /mnt

Check the fs with command df -g /mnt

         FS         GB  blocks Free %InUsed  Iused %Iused Mounted on
nodeA:/#/dev/loop0 4.64 0.00   100%  1805650 100% /mnt
Firstly, we can see that nothing is mounted on /mnt
nodeA:/#/# mount | grep mnt
first We have copied ISO image,then we mount an ISO image.
nodeA:/#/# loopmount -i /tmp/AIX616_dvd1.iso -m /mnt -o "-V cdrfs -o ro"

And we can now see that it is mounted successfully

 nodeA:/#/# mount | grep mnt /dev/loop0 /mnt cdrfs 03 dec 18:21 ro

And we can access it:

nodeA:/#/# ls /mnt
6100-06 OS LEVEL README.aix RPMS .Version bos install ppc root usr
Then we can unmount the ISO image
nodeA:/#/# loopumount -l loop0 -m /mnt -- for unmounting (loopmount)
nodeA:/#/# ls /mnt
nodeA:/#/# mount | grep mnt --To see umounted CDROM
nodeA:/#/# ls mnt

The default path of the loopmount commands are in devices.loopback.rte package

Enter the command 
nodeA:/#type loopmount
Which will show us where is the loopmount command is located in AIX
loopmount is /usr/sbin/loopmount    --- path of loopmount
nodeA:/#/# lslpp -w /usr/sbin/loopmount
File Fileset Type
nodeA:/#/usr/sbin/loopmount devices.loopback.rte File
nodeA:/# lslpp -w /usr/sbin/loopumount

path of the AIX system of loopback devices or virtual devices.

nodeA:/#/usr/sbin/loopumount devices.loop back.rte

So, With loopmount command we have successfully mounted CDROM in AIX or UNIX System .

Same procedure we can use for mounted and virtual optical devices.

Leave a Reply