LinuxQuestions.org
Help answer threads with 0 replies.
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 12-04-2004, 03:47 PM   #1
Garrett_80
LQ Newbie
 
Registered: Nov 2004
Posts: 8

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


Hello,
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, 03:59 PM   #2
mcleodnine
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
Code:
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
Code:
mkisofs -o /home/foo/mynewoffice.iso -R -J /path/to/real/files

Last edited by mcleodnine; 12-04-2004 at 04:13 PM.
 
Old 12-15-2004, 09:30 AM   #3
fredvej
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
Freddy
 
Old 12-15-2004, 09:53 AM   #4
kevinalm
Member
 
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.

Regards,
Kevin

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


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

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

All times are GMT -5. The time now is 02:05 PM.

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