Tuesday, 31 May 2011

How to mount an ISO image file as a filesystem in AIX


In AIX you "dd" the ISO file into a raw LV, then mount the LV as a filesystem.
Here are the steps for copying the ISO named "image.iso" into "/cd1iso", a JFS filesystem:
1. Create a filesystem with size slightly bigger than the size of the ISO image. Do NOT mount the filesystem:
# /usr/sbin/crfs -v jfs -g rootvg -a size=800M -m/cd1iso -Ano -pro -tno -a frag=4096 -a nbpi=4096 -a ag=8


2. Get the logical volume name associated with the new filesystem:
# lsfs | grep cd1iso (assume it is /dev/lv00)


3. dd the ISO image into rlv00 (raw lv00):
# dd if=image.iso of=/dev/rlv00 bs=10M


4. Alter /cd1iso stanza in /etc/filesystems => vfs=cdrfs and options=ro 


    /cd1iso:
            dev            = /dev/cd1_lv
            vfs             = cdrfs
            log             = /dev/loglv00
            mount           = false
            options         = ro
            account         = false


5. Mount the file system :
# mount /cd1iso


6. When finished, remove the filesystem:
# rmfs /cd1iso

4 comments:

  1. Bhaskar Export in Faridabad :- Customer Services Providers 24 Hours Service Computer and Internet Marketing and all computer Service:-


    SEO India
    Computer Hardware
    Computer Troubleshooting
    International Courier Services
    Internet Marketing
    International us Edition

    Bhaskar Export in Faridabad
    Phone no:- 0129-2242027
    Site:- http://www.bhaskarexport.co.in

    ReplyDelete
  2. I AM MANSI GUPTA CHENNAI INDEPENDENT ESCORT AND COMPANION AVAILABLE FOR ALL OF YOUR ENTERTAINMENT AND DATING NEEDS I MUST BE THE SPECIAL GIRL WHO YOU ARE LOOKING FOR.

    CHENNAI ESCORTS
    CHENNAI INDEPENDENT ESCORTS
    CHENNAI ESCORTS SERVICE
    CHENNAI GIRLS ESCORTS
    ESCORTS IN CHENNAI

    THANKS
    MANSI-GUPTA

    ReplyDelete
  3. http://studyviareading.blogspot.in/
    Visit and give your suggestionsa

    ReplyDelete
  4. The requested information is good enough. And then by reading this feel good, were constantly writing and Share Information.
    davv cet coaching in Indore

    ReplyDelete