Re: iso editing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I assume you're talking about modifying a single-session
disc/image and not just appending a new session (for
which the -dev option of mkisofs will work).

The mkisofs RPM package contains several utility command
line programs which may be of interest to you, especially the
isoinfo command (read the man page).  Other commands include
isodump, isovfy, and isodebug.


To edit an ISO you best bet is to first mount the existing one,
perhaps by something like,

  mkdir /oldiso
  mount -o loop -t iso9960 old_image.iso  /oldiso

Then copy everything to someplace else that's writable (use
the -p option of cp to preserve timestamps, etc).  Make your
modifications, then use mkisofs to create a new iso image.  The
meta-data for the disc (such as title, volume ID, etc) can be obtained
with the isoinfo command and resupplied as options to the mkisofs
command.

Rather than copying the entire disc just to make a couple minor
changes you may instead opt to create a symlink tree and use
the --dereference option to mkisofs.  A little more complicated, but
will use much less disk space.

If you're doing this a lot with major changes, you may want to look
into the unionfs filesystem, in that it allows to to merge or overlay
multiple fileystems at one mountpoint.  Unfortunately it's not included
with Fedora so you'll have to build/install it yourself.  See
http://www.linuxjournal.com/article/7714 and
http://www.fsl.cs.sunysb.edu/project-unionfs.html for some
starting points.


I also failed to mention that many esoteric features may be harder to
preserve.  Such as file sort order, hidden files, graft points, boot
"blocks", etc.

-- 
Deron Meranda


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux