Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-04-2004, 04:47 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Manipulate .ISO files in Linux?????

I was wondering if there is a program to manipulate .ISO image files.
I can't find a way to open and add/remove files from it. I'm interested in functionality similar
to such provided by MagicISO and UltraISO for Windows.
Old 12-04-2004, 04:59 PM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Try something like
mount my_cd_image.iso /mnt/target -t iso9660 -o loop=/dev/loop0
Now you can see what's on the image with 'ls /mnt/target'

This is a read-only filesystem, so if you want to edit files in the structure you'll want to copy everything in the mount point to a 'real' direcrtory.

When you're ready to create a new .iso you can use
mkisofs -o /home/foo/mynewoffice.iso -R -J /path/to/real/files

Last edited by mcleodnine; 12-04-2004 at 05:13 PM.
Old 12-15-2004, 10:30 AM   #3
LQ Newbie
Registered: Dec 2004
Location: Denmark
Distribution: SuSE
Posts: 3

Rep: Reputation: 0
Allrightythen :-)

Suppose you have an iso-image of a bootable DVD , how do you make an edited copy that can be booted ?

Example : SuSE 9.2 comes on a bootable DVD with more data than can fit on a single layer DVD. I want to make an ISO-file without the 64 bit stuff , so that I can make a bootable single-layered DVD with a 32 bit installation.

The steps to do so would be like your example

1) extract the ISO-image from the DVD to the harddisk. (which tools do you use ?)

2) mount the ISO-image as you wrote

3) copy all the stuff I want to a read/write directory on the harddisk

4) here's the tricky part - make a new ISO-image with the boot sector and whatnot from the original ISO image and the directory structure from step 3.

Which tools do I use in step 4 and how ?

Best regards
Old 12-15-2004, 10:53 AM   #4
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Re mounting the .iso.

Specifying the fstype (-t iso9660) is _usually_ unnecessary. Mount almost always autodetects fstype. Also, specifying the actual loop dev (/dev/loop0) could cause problems if that device is already in use. If you simply do:

mount my_isofile.iso /path/to/mountpoint -o loop

then the first _available_ loop device (loop0-loop7) is allocated.

As to No. 4, that depends on the boot method (ie., grub, el torrito floppy emu, isolinux, etc.) being used by the original .iso image. I like isolinux myself. The short answer is that mkisofs has options that can make the resulting cd bootable. You might want to grab the isolinux tarball (or at least the docs) and also RIP (Rescue Is Possible) docs. They have some good examples. Iirc there are some ldp Howto's. And of course man mkisofs.


Last edited by kevinalm; 12-15-2004 at 11:06 AM.


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
how to install linux from iso files sanjith11 Linux - General 5 11-08-2006 02:09 AM
Can Linux manipulate Windows partition? joshknape Linux - Newbie 6 09-11-2005 08:37 AM
Tool for Linux to manipulate the fan on Thinkpad? Haraldsh Debian 4 04-04-2005 12:03 PM
mounting iso files on linux minm Linux - Newbie 26 01-16-2005 11:41 PM
What's the purpose of tar.gz files and how do I manipulate them? altair401 Linux - Newbie 7 12-21-2003 08:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 PM.

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