LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2006, 10:10 PM   #1
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
Modifying an ISO image before burn


I've been tinkering with the Slax Live CD and want to add some modules to the /modules folder BEFORE I burn the ISO.

I found a tool for modifying an ISO called MySlax Creator, but its Windows based only.

Can anyone give me some direction as to how to modify ISO's before burning?

Thanks,
Scott
 
Old 05-13-2006, 10:25 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
You can establish a mountpoint and mount the iso, but you can't change it because it is the iso9660 filesystem which is read only.

So what you will need to do is mount the iso then copy all the contents of the iso to a standard directory (presumably ext2 or ext3). Make your changes, then use something like k3b to create a new iso.

You can mount the iso by creating a mountpoint, for instance as root:

mkdir /mnt/isomnt

Then mount -o loop -t iso9660 myiso.iso /mnt/isomnt.

Then create a new directory someplace;

mkdir ~/newisodir

Now, enter the iso

cd /mnt/isomnt

From this point copy everything to ~/newisodir, then cd to newisodir, make your changes, and start k3b.

Unmount the iso file, delete it, create a new one using k3b and the contents of newisodir, and you're done.
 
Old 05-14-2006, 12:47 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
If you're going to be doing much of this, look into unionfs. It will save you some disk space - you only need room for the original iso and your changes. jiml8's method is more standard, but you will need twice the disk space (to store the original iso, and again to store you modified copy). Slax is so small that this disk space is negligable, so the real reason to use unionfs is because it's cool!

I have a base slax directory: /var/slax506kb-standard
Changes I make to it are stored here: /var/slax506kb-patches
And the final result (where I burn from, and write to) is here: /var/slax

I never write directly to the -standard or -patches directory, all writes, deletes, etc. are to /var/slax. They automatically go to the -patches directory. The -standard directory remains virgin slax. This is all after I run the unionfs mount command:
Code:
mount -t unionfs -o dirs=/var/slax506kb-patches:/var/slax506kb-standard=ro none /var/slax
The above description probably makes zero sense unless you know what unionfs is, and what it can do. Check unionfs capabilities out here: http://www.linuxjournal.com/article/7714 If you like it, download from here: http://www.fsl.cs.sunysb.edu/project-unionfs.html Slax itself uses unionfs, as does Knoppix, Kanotix, and probably most LiveCD distros these days.
 
Old 05-14-2006, 10:07 AM   #4
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Original Poster
Rep: Reputation: 30
thanks for both of your replies. both make sense, and are extremely helpful.

Scott
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Burn ISO Image onto CD Kenji Miyamoto Linux - Software 3 01-29-2005 02:14 AM
How To Burn .iso Image dthompson Linux - Newbie 9 08-13-2004 08:15 AM
How to burn an ISO image in Redhat 9 newjuan Linux - Newbie 5 05-18-2004 10:52 PM
Burn ISO image Gerardoj Linux - Software 9 08-06-2003 09:23 PM
How burn iso image !!! hitesh_linux Linux - Software 5 07-12-2003 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration