Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:38:30+00:00 2026-06-12T12:38:30+00:00

I have an ISO image that I would like to distribute. However, to make

  • 0

I have an ISO image that I would like to distribute. However, to make setup easier for the user, I would like add a unique .config file to each .iso file.

Is there a way to use python to modify the iso file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:38:32+00:00Added an answer on June 12, 2026 at 12:38 pm

    There are known ways of browsing or parsing ISO files with Python libraries (see this question), but adding a file to the ISO will require filesystem modification – which is definitely far from trivial.

    You could instead try to mount the ISO on your filesystem, modify it from Python, then unmount it again. A very quick example that would work under Ubuntu:

    ISO_PATH = "your_iso_path_here"
    
    # Mount the ISO in your OS
    os.system("mkdir /media/tmp_iso")
    os.system("mount -o rw,loop %s /media/tmp_iso" % ISO_PATH)
    
    # Do your Pythonic manipulation here:
    new_file = open("/media/tmp_iso/.config", 'w')
    new_file.write(data)
    new_file.close() 
    
    # Unmount
    os.system("umount /media/tmp_iso")
    os.system("rmdir /media/tmp_iso")
    

    You’ll want to use subprocess instead of os.system, among other things, but this is a start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an AppEngine application that uses the blobstore to store user-provided image data.
I have a script in python that needs to read iso-8859-1 files and also
I am trying to insert a background image and have it so that it
I am trying to make a simple function or class that selects an image
I have created a CentOS VM on VirtualBox. I have used an ISO image
I have a ISO game file that I have to mount with virtual clone
MVC 3 RTM. I have an action that returns a file (image/jpeg). I am
I have to perform mapping between ISO 3166-1 alpha-3 and IOC country codes. It
I have a large CVS repository containing files in ISO-8859-1 and want to convert
I have a process where I read in a bunch of strings in ISO

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.