LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-17-2006, 06:15 AM   #16
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,189

Rep: Reputation: Disabled

What you do is loop-mount the ISO image, copy all the files out of the mounted image, unmount the ISO, make your changes in the copy, and then re-create an ISO image:

Code:
mkdir /mnt/iso
mount -o loop ccwilson1.iso /mnt/iso
mkdir /tmp/extracted
cp -a /mnt/iso/* /tmp/extracted
umount /mnt/iso
......fiddle around in /tmp/extracted........
mkisofs -o cwwilson2.iso \
    -R -J -v -d -N \
    -hide-rr-moved -hide-joliet-trans-tbl \
    -no-emul-boot -boot-load-size 4 -boot-info-table \
    -sort isolinux/iso.sort \
    -b isolinux/isolinux.bin \
    -c isolinux/isolinux.boot \
    /tmp/extracted/.
Make sure you have the isolinux directory from the slackware-current tree in the current directory so that the various files in there are found and used. This way you get a bootable ISO that behaves just like the one from slackware-current.

Eric
 
Old 05-17-2006, 07:38 AM   #17
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by Randux
The loopback won't work for what CW is asking for...he wants to be able to update the ISO. Even if you mount a loopback with the write switch, it gets mounted r/o.
*sigh* Yes, but it's rather trivial to cp -a it's contents to a work area to modify the files before generating a new ISO. Mounting the ISO over a loop interface is the only way (short of just burning it to optical media and reading that) to get the files out of it in a usable form.
 
Old 05-17-2006, 08:43 AM   #18
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
My understanding was that he didn't know how to create the new ISO. I never thought that he didn't know how to see what was already in the ISO since there have been enough threads on mounting an ISO in loop mode.

He wrote:

> What I'd like to do is manipulate the files after they've been
> "iso'd", so if I need to tweak a file here or there, I can do it
> without going through the whole process.

thus implying that updating the ISO in place (not possible, I think) or making a new ISO (I thought) was what he was after.
 
Old 05-17-2006, 06:13 PM   #19
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,475

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
Quote:
I need some kind of program to manipulate iso's: Read the files, change them if needed, add/remove programs, etc.
I would enjoy seeing a program to do this kind of thing! K3B comes to mind. Through a program like K3B, one could mount the ISO image from the hard drive, then edit various files, copy and delete files, etc. Then burn the modified ISO image to CD.

I suspect to do this, if ever updated to include such a useful feature, K3B would need a lot of temp and swap space simply because of the ISO image size. Certainly doable if K3B had the features for ISO manipulation.

Currently, the only method I know of remastering an ISO image is as Alien Bob noted. Manually mount the ISO image, copy all the files to a temp directory, manipulate as necessary, then manually burn a new ISO image.

I'm using somewhat dated versions of K3B, but my versions do not provide a one-click process to burn a bootable CD. K3B can burn a bootable CD from an existing ISO image, but not from a collection of modified ISO files. I'd love to see this kind of flexibility in K3B.
 
Old 05-17-2006, 10:38 PM   #20
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well, K3B can make an ISO from a collection of files... Then you can burn it to CD with K3B... I guess you were hoping for a one step deal instead of two?
 
Old 05-17-2006, 10:49 PM   #21
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 65
Exactly. Hopping around is a bugger.

I was hoping there was something out there that can:
  • Open an iso to see what files are there
  • Let you modify/add/remove files on/in the image
  • Create another image
  • Burn the cd/dvd/magical pixie disk
I know Windows has a few of those floating around, but I has hoping for a Linux version. I prefer one program rather than two or three, plus the resultant window hopping and configure boo-boo's, or more commonly called "Burning an AOL disk"....lol

But, I can live with mounting the image as loopback, editing, then reimaging, then burning. Just a bit of a pain.
 
Old 05-17-2006, 10:56 PM   #22
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,475

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
Quote:
Well, K3B can make an ISO from a collection of files... Then you can burn it to CD with K3B... I guess you were hoping for a one step deal instead of two?
I am using an older version of K3B. Perhaps I merely need to update, but if this option has been around a while then I never have discovered that option.

Just to be sure, I regularly create data CDs with K3B, but a data CD is not an ISO image. My previous post was in reference to bootable ISO images. Creating a collection of files is straightforward, but I never have discovered how to make K3B convert those files into an ISO, which necessarily includes adding boot sector files.

What are the K3B menu sequences to perform this? Are these instructions located in a help file, man page, or web site?
 
Old 05-17-2006, 11:06 PM   #23
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 65
The only way I know to get an image with k3b is to 'copy cd' and have it store the image in a temp directory, then copy/move it from there.

But you would almost have to use syslinux to make a bootable iso/cd from a collection of files.
 
Old 05-17-2006, 11:20 PM   #24
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 65
My brain finally figured out the term I was looking for:

CD Mastering Software.

http://www.xcdroast.org/#overview almost has it, but can't 'browse' the iso....

http://ogre.rocky-road.net/cdr.shtml looks possible, but still....

Any other ideas out there?
 
Old 05-18-2006, 04:07 AM   #25
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
[*]Open an iso to see what files are there[*]Let you modify/add/remove files on/in the image[*]Create another image[*]Burn the cd/dvd/magical pixie disk

Yeah, the problem is making the ISO. There are beaucoup switches on the mkisofs command. If it was just a matter of mounting the ISO as a loop and slapping a bunch of other stuff in there, there wouldn't be apps to do this.
 
Old 05-19-2006, 09:02 PM   #26
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 65
As far as I can tell, there aren't any to do this.....
 
Old 05-20-2006, 01:55 PM   #27
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Quote:
Originally Posted by cwwilson721
As far as I can tell, there aren't any to do this.....
I meant on that other system

I was trying to explain to the guys who think the answer is just mounting the iso as loopback that that is just the beginning of what we need; and if it was that simple, there wouldn't be winbloze apps to do this process. If we go through some of the links that guys posted in this thread and figure out something, maybe we can put together a script or tool of some kind.

Last edited by Randux; 05-20-2006 at 01:57 PM.
 
Old 05-21-2006, 09:37 PM   #28
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by cwwilson721(OP)
"CD Mastering Software."
Quote:
Originally Posted by Simon(#4)
What you seem to be talking about is "remastering" a CD.
<sigh>

Quote:
Originally Posted by cwwilson721
As far as I can tell, there aren't any to do [exactly what I want]
That's right - not in one package.

Constructing a GUI to automate the individual steps to make an ISO appear editable shouldn't be too hard - but why do you want to?
 
Old 05-21-2006, 10:16 PM   #29
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by Simon Bridge
but why do you want to?
Read the previous posts.
(Not being smart, just hate answering what I have already answered in the same thread)
 
Old 05-23-2006, 05:12 AM   #30
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
It could be done, but it wouldn't be fast, nor would it be elegant.

It's going to be at least another 4 years (probably 10 before it's common) before storage technology catches up to the point where a machine can quickly duplicate a ~650Mb (nevermind 4.7Gb or 9Gb DVDs!) chunk of data in order to make it merely appear editable. In the meantime, any programmer attempting such a feat will already know in his/her heart of hearts what the most common emailed user complaints will be...

"DiscEditFoo takes way too long to start" <-- impatient people who don't know it takes awhile to copy 650Mb
"DiscEditFoo locks up and does nothing" <-- even more impatient people
"DiscEditFoo crashes and complains about disc space" <-- people who are attempting to edit an ISO because they don't have the 650Mb free to make a new image

...and so on and so forth. It's not much wonder why no one's even bothered to make an app to fake it yet.

Just to clarify, ISO9660 isn't a format that lends itself to being modified at all. No amount of magic is likely to result in a program that can easily change the contents of one, for reasons that would give me a migraine to go into. (At least this should help put your search out of it's misery)
 
  


Reply

Tags
edit, files, iso, make, mount


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
Need a program recommendation for synchronizing/cloning directories over network Old_Fogie Linux - Software 2 05-09-2006 10:11 PM
Need a recommendation Sammy2ooo Linux - Hardware 3 01-14-2006 05:51 PM
bit torrent program recommendation? alex1986 Linux - Newbie 7 12-28-2005 09:38 PM
Backup Program Recommendation davcefai Linux - Software 4 10-19-2005 03:47 PM
MB recommendation zbrox Linux - Hardware 1 06-22-2004 12:18 PM


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

Main Menu
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