Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-17-2006, 07:15 AM
|
#16
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
05-17-2006, 08:38 AM
|
#17
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
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.
|
|
|
05-17-2006, 09:43 AM
|
#18
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
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.
|
|
|
05-17-2006, 07:13 PM
|
#19
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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.
|
|
|
05-17-2006, 11:38 PM
|
#20
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
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?
|
|
|
05-17-2006, 11:49 PM
|
#21
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
05-17-2006, 11:56 PM
|
#22
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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?
|
|
|
05-18-2006, 12:06 AM
|
#23
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
05-18-2006, 12:20 AM
|
#24
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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?
|
|
|
05-18-2006, 05:07 AM
|
#25
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
[*]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.
|
|
|
05-19-2006, 10:02 PM
|
#26
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
As far as I can tell, there aren't any to do this.....
|
|
|
05-20-2006, 02:55 PM
|
#27
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
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 02:57 PM.
|
|
|
05-21-2006, 10:37 PM
|
#28
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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?
|
|
|
05-21-2006, 11:16 PM
|
#29
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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)
|
|
|
05-23-2006, 06:12 AM
|
#30
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 05:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|