Find the answer to your Linux question:
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By devils casper
Dear all I have fenced one problem in mounting iso image. I will mount iso file but this is only read only file so i am not editing in iso ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    5

    Mounting iso file


    Dear all

    I have fenced one problem in mounting iso image.

    I will mount iso file but this is only read only file so i am not editing in iso image.
    mount command is below
    mount -o loop isofile.iso /mnt/ (isofile is my iso and /mnt is mount point)

    Please anybody help me how to mount iso image on read/write mode.


    Regards
    Pratik Patel

    Moderator's Note :: Do not add your personal details here.
    Last edited by devils casper; 12-27-2012 at 02:43 PM.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    You can't mount an ISO read/write. Your best bet is to copy the contents of the mounted ISO directory to a new directory, then make an ISO image of that dir, e.g.:

    Code:
    # mount ISO image
    mount -o loop /tmp/image.iso /mnt/iso
    
    # copy dir
    mkdir /mnt/iso2
    cp -a /mnt/iso /mnt/iso2
    
    # make the new iso image
    mkisofs -o /tmp/new-image.iso  /mnt/iso2
    read up on mkisofs to see the many, many options you can pass to it.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Its not possible to edit mounted .iso image. Extract .iso image, edit its contents and create .iso image again.




    Edit : atreyu beats me !
    astrognome likes this.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •