LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-15-2006, 10:22 PM   #1
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

Rep: Reputation: 66
Program recommendation


I need some kind of program to manipulate iso's: Read the files, change them if needed, add/remove programs, etc.

Is there anything in the standard Slack install that I can do this with? For example, mount the iso on a hdd, and manipulate it from there? Or do I need something more specialized?
 
Old 05-15-2006, 10:38 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
iso's are normally read-only.
If you want to fiddle, you pull the files off with dd, make your alterations, then mkisofs to get a new iso.

You can mount iso's through the loopback interface with the mount command if you just want to look at it.

What are you trying to do?
 
Old 05-15-2006, 10:42 PM   #3
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: 66
I have a ready made iso I want to change a few configuration files, add in a few other files....basically, customize it for my needs.

The dd sounds interesting...Can you post a link for me to study?
 
Old 05-15-2006, 10:51 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
man dd - I think I stuffed up.
I use this to pull isos off a CD.

What you seem to be talking about is "remastering" a CD.
Here's an example for rematering ubuntu live
http://wiki.linux.net.nz/UbuntuRemastering
 
Old 05-16-2006, 12:06 AM   #5
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: 66
Thank you for the link. But.....

Ubantu instructions/Debian ways are not for me. I use Slack exclusively for a reason. I'm not a snob, but I don't have/don't want/will never use anything but Slackware. It fits me.

I appreciate the attempt, but does anybody have a Slackware oriented ideas?
 
Old 05-16-2006, 03:12 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
You misunderstand: the ubuntu remastering was an example. I guessed that, as a slack hacker, you'd have the skills to extrapolate from this. Apparently I was mistaken. I apologise.

basic remastering is always the same: ... for a general iso, you mount it, move the content to a working directory, modify whatever you want in the working directory (unmount the iso - you don't need it any more), then create a new iso from the modified files.

Unless you know how to mount an iso read/write?

... here are slackware examples:

http://www.linuxquestions.org/questi...d.php?t=391198
http://www.linuxquestions.org/questi...d.php?t=350385
http://www.linuxquestions.org/questi...d.php?t=276611

... these concern remastering the slackware distro iso's. If you have a different iso, there will not be any information explicitly for you. You will have to extrapolate from these examples the kind of thing you want. Please let me know if you find this too difficult.

I gave you the ubuntu one as a kickoff because it contains a lot of the ideas you need to get started, and it is easy to read. Combined with your slackware experience, this should have been sufficient. I misjudged the situation - please excuse me.
 
Old 05-16-2006, 10:17 AM   #7
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1
Posts: 233
Blog Entries: 1

Rep: Reputation: 36
Quote:
Originally Posted by cwwilson721
I need some kind of program to manipulate iso's: Read the files, change them if needed, add/remove programs, etc.
I don't think this is exactly what you were looking for, but what about using QEMU to test the iso before burning it? You'd still have to do the changes to your working directory and then remake the iso, but at least you would cut down on coasters.

There is an excellent QEMU howto at http://www.slackware.com/~alien/doku...slackware:qemu
 
Old 05-16-2006, 11:52 AM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
I think what CW's asking for is a pretty standard need. I haven't checked through the links in the thread yet but for example, OpenBSD doesn't supply distribution ISOs online. The only ISOs they have on their sites are bootable images that contain just the kernel, some drivers, installation scripts, shell, etc. When you install OpenBSD from the ftp sites you download and burn the ISO boot image and then start ftping all the packages. You can also download the packages, but there isn't a convenient way to add all this stuff to the bootable image and make a nice ISO. This is a good of an example of what I think he's asking for (and I would be interested in also).

P.S. Don't flame CW as he is one of the nice and helpful guys (actually, all the Slackers are).
 
Old 05-16-2006, 12:12 PM   #9
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: 66
Just about dead on Randux. What I'm EXACTLY doing is making iso's of slackware-current. But what I want to do is have the option of booting my custom 2.6.17-rc3 kernel from the get go. (Kinda like doing test26.s), along with the associated source and modules. The only way I've been able to do it is to add some kludgy lines in the script to copy the customized files over, then it proceeds to make the iso.

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.

I know Windows has a few programs out there that allow you to do exactly that, and I was wondering if there are any Linux ones that do the same.

The whole deal is purely a intellectual issue for me at this point (How many people have the exact same hardware I do?), but it's gotten to the point of obsession....Seems so easy, but.....

Last edited by cwwilson721; 05-16-2006 at 12:17 PM.
 
Old 05-16-2006, 02:12 PM   #10
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1
Posts: 233
Blog Entries: 1

Rep: Reputation: 36
Quote:
Originally Posted by cwwilson721
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.
AFAIK, you can't do that. I wonder if the Windows programs are actually making a new iso using a temporary directory.

As far as the remastering links posted above, the best Slackware link referred to is dead, but the document is available at http://www.linuxquestions.org/linux/...ome_Slack_CUSS
It doesn't address the question you asked, but it's useful nonetheless.
 
Old 05-16-2006, 02:13 PM   #11
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Actually I don't think you can modify ISOs directly. At one time the driver allowed me to do that, and I wound up with a lot of scrambled coasters.

Provided you dig about in there and find the file where Patrick shows exactly what command he used to make the ISO with a particular kernel file as bootable with isolinux, it's not terribly complex to generate a new, bootable ISO with a different kernel. (I had to do this for one of those damnable Compaq machines with nothing but the SMART/2P array in it once and I was very glad to have found that little file.)
 
Old 05-16-2006, 03:37 PM   #12
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: 66
OK...All valid points....

Just a thought then:

How do I mount the iso so I can fiddle with it, then make a new iso out of that? (A kludgy workaround, but should work)
 
Old 05-16-2006, 03:52 PM   #13
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Rep: Reputation: 16
mount iso

I copied this from google (mount iso)

Once you've downloaded an ISO Image you can mount it as a loopback device. This will give you access to the files in the ISO without you having to burn it to a CDROM first. In order to do this you must have loopback compiled into your Linux Kernel. (Most newer distributions will have this enabled by default). For example if you wanted to mount filename.iso to /mnt/iso you would run the following command:

Code:
mount -o loop -t iso9660 filename.iso /mnt/iso
hope this help's you out.
 
Old 05-16-2006, 03:55 PM   #14
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: 66
Cool. I'll give it a shot. Been too bloody busy to even try Google. I feel like such a Bill Gates....
 
Old 05-17-2006, 05:39 AM   #15
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
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.
 
  


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 11:11 PM
Need a recommendation Sammy2ooo Linux - Hardware 3 01-14-2006 06:51 PM
bit torrent program recommendation? alex1986 Linux - Newbie 7 12-28-2005 10:38 PM
Backup Program Recommendation davcefai Linux - Software 4 10-19-2005 04:47 PM
MB recommendation zbrox Linux - Hardware 1 06-22-2004 01:18 PM


All times are GMT -5. The time now is 12:23 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration