How to Manually Edit an ISO image before burning it to CD

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

How to Manually Edit an ISO image before burning it to CD

#1 Post by CatDude »

Hi

In a recent thread kattman asked:
kattman wrote:Is there anyway i can add a few "Pets" to the live puppy cd before I burn it.
I see that puppy will mount a iso and let me view and extract files, but I would like to add a "pet" are two. ie: wifi driver, devx.sfs,...
What follows is my reply, copied here at the request of Flash.

# # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # #


You could do it manually.

Create a directory (in this example i used testcd)
Now copy ALL of the files from whatever Puppy ISO you are going to use, EXCEPT the file boot.cat into that directory
you can now add the .pets and .sfs files of your choice.

If you look at new-iso-contents.png you will see that i added another directory for the .pets,
but just put the added .sfs files openoffice3.2-sfs4.sfs & devx_431.sfs in with the rest of the files

Now run the following command from the directory containing the testcd directory: (in this example that is /mnt/hdb5)
mkisofs -D -R -o mypuplet-431.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table testcd
Where mypuplet-431.iso is the name i gave the new ISO, and testcd is the directory containing all the files.

Image the-new-iso.png shows the new ISO after running the above command.
Image new-iso-in-qemu.png shows the new CD mounted while running Live in QEMU.

Hope this helps
CatDude
.
Attachments
new-iso-contents.png
(117.3 KiB) Downloaded 2413 times
the-new-iso.png
(51.11 KiB) Downloaded 2267 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#2 Post by amigo »

isomaster allows you to 'edit' an isoimage.

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#3 Post by CatDude »

Hello amigo
amigo wrote:isomaster allows you to 'edit' an isoimage.
Yes i know, but i thought i would show that it is just as easy to do it manually.

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

How to use sfs

#4 Post by emil »

Hello Catdude,

I have a question about the usage of additional sfs packages.
If you add them to the ISO I assume you will still have to add them manually in the bootconfig menu. Is there any possibility to autoload them during first boot, i.e. for a life CD?

thanks
emil

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#5 Post by Aitch »

Thanks Catdude :D

& to Flash for the suggestion!

You're bound to get follow-ups on this How To

Most folks don't realise about tailoring an ISO for a particular piece of hardware, for example - I'm sure many wifi problems could be fixed this way, until the kernel supports some more wifi devices

Aitch :)

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#6 Post by nooby »

I don't want to hog the thread.

I also want to learn this.

Can puppy only take apart puppy isos or any linux iso and put it together again?

Somebody recommended remastersys and another wrote that he stopped using linux alltogether because the damage that program made him so if puppy is safer I will use that one.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#7 Post by CatDude »

Hello emil
emil wrote: If you add them to the ISO I assume you will still have to add them manually in the bootconfig menu. Is there any possibility to autoload them during first boot, i.e. for a life CD?
Well i just did a quick test, and added a few .sfs files to the choicepup-4.1.2minV2-k2.6.25.16.iso
i then booted the edited ISO in QEMU (using puppy pfix=ram), then when at the desktop i mounted the CD and did as suggested by jrb Here
jrb wrote:....However, in ChoicePup you do not have to have a /mnt/home to use .sfs files. If you have them downloaded you can open ROX, find the .sfs file, right click on it. Go to OpenWith->load_sfs and click. The .sfs file will be loaded and useable. You can then start them from the menu or desktop icon. Doing it this way means you will have to do it again after a reboot.
I managed to load up both: openoffice3.2-sfs3.sfs and xnviewMP-sfs3.sfs
doing this does mean that the CD drive is tied up though.

The attached images show the contents of the edited ISO as seen mounted in QEMU choicepup1.jpg
and both of the above applications loaded up choicepup2.jpg

So it may be worth you investigating ChoicePup


@ Aitch
Aitch wrote:Thanks Catdude :D

& to Flash for the suggestion!
No problem mate, i was just explaining how it could be done manually, that's all.

All the best
CatDude
.
Attachments
choicepup1.jpg
(153.36 KiB) Downloaded 598 times
choicepup2.jpg
(169.56 KiB) Downloaded 590 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#8 Post by emil »

Hello Catdude,

thx for quick answer - Hm, I can see that Choicepup uses the script
load_sfs. I came across that script earlier. If this works it should be possible to put a script in your startup directory which reads like

Code: Select all

#/bin/bash!
load_sfs foo.sfs
load_sfs bar.sfs
this should autoload the foo.sfs and bar.sfs at startup, without the need to klick on them. Has anybody tried something similar?

emil

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

Nooby,

An iso is an iso. I'm pretty sure that CatDude's general instructions will work on any iso. The parts that are specific to Puppy might not.

potong
Posts: 88
Joined: Fri 06 Mar 2009, 04:01

#10 Post by potong »

When playing with VirtualBox I found that remastering a puppy iso to include devx, kernel sources and virtualbox additions iso a good way to get all that you need at hand.

Before I would either download the stuff from the internet again or have to set up ssh to get the files from the host.

This way everything ones needs is on the virtual cd drive.

Potong

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#11 Post by nooby »

Flash wrote:Nooby,

An iso is an iso. I'm pretty sure that CatDude's general instructions will work on any iso. The parts that are specific to Puppy might not.
Thanks Flash! That would be nice so now I only need to learn and practice again and again.
I use Google Search on Puppy Forum
not an ideal solution though

nancy reagan
Posts: 544
Joined: Thu 22 Jan 2009, 14:20

If making your own iso is so simple

#12 Post by nancy reagan »

If - making your own iso is so simple why are there always probs with new derivatives made by experts ?

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#13 Post by nooby »

It could be easy seen from some perspective and very difficult from another perspective.

The manual steps you have to do can be easy to learn to do. You could even write a script to do them. so that part is easy

What to include in the iso and in what order logistically and which modules that work together compatibly are the very difficult thing maybe.

One guy wrote in a thread that is very difficult to be a pet maker.

Most likely it was playdays in thread abiut pets with firefox or other browsers as pets.

That is how I remember it.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#14 Post by CatDude »

Hello nancy reagan
nancy reagan wrote:If - making your own iso is so simple why are there always probs with new derivatives made by experts ?
I think derivatives involve quite a bit more than what this howto covers.

The instructions above basically just take the contents from an already existing ISO and put them into a temporary directory,
allowing one to add any extra files (for example: .pets or .sfs) before wrapping it all back up again prior to burning a CD.
Here is the Original Posters request:
kattman wrote:Is there anyway i can add a few "Pets" to the live puppy cd before I burn it.
I see that puppy will mount a iso and let me view and extract files, but I would like to add a "pet" are two. ie: wifi driver, devx.sfs,...
CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

gcmartin

How to Manually Edit an ISO image before burning it to CD

#15 Post by gcmartin »

In the first entry in this post, @catdude shares the following command:
mkisofs -D -R -o mypuplet-431.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table testcd
  • Is there something missing here?
    Where does the command mkisofs get isolinux.bin and boot.cat from?
I'm new to ISO editing and re-making so I missed the part about boot.cat and isolinux.bin so that mkisofs could find and use them.

Help, please.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#16 Post by technosaurus »

I finally found a version of isomaster where everything worked and wrote this tutorial to do a full manual remaster using only GUI tools

http://www.murga-linux.com/puppy/viewtopic.php?t=53241

all you need is a running puppy and an existing iso
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#17 Post by CatDude »

Hello gcmartin
gcmartin wrote: Is there something missing here?
I don't think so :roll:
gcmartin wrote: Where does the command mkisofs get isolinux.bin and boot.cat from?
Well then, if you read what i posted,
you will see that i said:
CatDude wrote: Create a directory (in this example i used testcd)
Now copy ALL of the files from whatever Puppy ISO you are going to use, EXCEPT the file boot.cat into that directory
and if you also look at the first image i posted new-iso-contents.png
you will see that the file isolinux.bin is there (the green one).
It is one of the files from the ISO we copied the files from.

As for the boot.cat file, that is created when the mkisofs command is run, and will be inside of the new ISO.
You can see this for yourself by looking at the third image i posted new-iso-in-qemu.png

Hope this helps
CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Post Reply