LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 11: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, 11:25 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
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, 01:47 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:14 AM
How To Burn .iso Image dthompson Linux - Newbie 9 08-13-2004 09:15 AM
How to burn an ISO image in Redhat 9 newjuan Linux - Newbie 5 05-18-2004 11:52 PM
Burn ISO image Gerardoj Linux - Software 9 08-06-2003 10:23 PM
How burn iso image !!! hitesh_linux Linux - Software 5 07-12-2003 12:42 PM


All times are GMT -5. The time now is 08:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration