Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 16 Apr 2014, 10:36
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to Manually Edit an ISO image before burning it to CD
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
CatDude


Joined: 03 Jan 2007
Posts: 1431
Location: UK

PostPosted: Wed 17 Feb 2010, 06:45    Post subject:  How to Manually Edit an ISO image before burning it to CD
Subject description: adding things like extra .pets & .sfs files
 

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)

Quote:
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
.
new-iso-contents.png
 Description   
 Filesize   117.3 KB
 Viewed   2069 Time(s)

new-iso-contents.png

the-new-iso.png
 Description   
 Filesize   51.11 KB
 Viewed   2060 Time(s)

the-new-iso.png

new-iso-in-qemu.png
 Description   
 Filesize   260.41 KB
 Viewed   2060 Time(s)

new-iso-in-qemu.png


_________________

Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2165

PostPosted: Wed 17 Feb 2010, 12:11    Post subject:  

isomaster allows you to 'edit' an isoimage.
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1431
Location: UK

PostPosted: Wed 17 Feb 2010, 12:24    Post subject:  

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
.

_________________

Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 609
Location: Austria

PostPosted: Wed 17 Feb 2010, 15:48    Post subject: How to use sfs  

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
Back to top
View user's profile Send private message Visit poster's website 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Wed 17 Feb 2010, 16:12    Post subject:  

Thanks Catdude Very Happy

& 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 Smile
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10508
Location: SwedenEurope

PostPosted: Wed 17 Feb 2010, 17:42    Post subject:  

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
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1431
Location: UK

PostPosted: Wed 17 Feb 2010, 18:03    Post subject:  

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 Very Happy

& 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
.
choicepup1.jpg
Description 
jpg

 Download 
Filename  choicepup1.jpg 
Filesize  153.36 KB 
Downloaded  306 Time(s) 
choicepup2.jpg
Description 
jpg

 Download 
Filename  choicepup2.jpg 
Filesize  169.56 KB 
Downloaded  329 Time(s) 

_________________

Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 609
Location: Austria

PostPosted: Wed 17 Feb 2010, 18:23    Post subject:  

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:
#/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
load_sfs-420b1.pet
Description 
pet

 Download 
Filename  load_sfs-420b1.pet 
Filesize  234.01 KB 
Downloaded  321 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10654
Location: Arizona USA

PostPosted: Wed 17 Feb 2010, 21:46    Post subject:  

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.
Back to top
View user's profile Send private message 
potong

Joined: 06 Mar 2009
Posts: 88

PostPosted: Thu 18 Feb 2010, 00:55    Post subject:  

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
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10508
Location: SwedenEurope

PostPosted: Thu 18 Feb 2010, 07:08    Post subject:  

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
Back to top
View user's profile Send private message 
nancy reagan

Joined: 22 Jan 2009
Posts: 476

PostPosted: Tue 23 Feb 2010, 13:55    Post subject: If making your own iso is so simple  

If - making your own iso is so simple why are there always probs with new derivatives made by experts ?
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10508
Location: SwedenEurope

PostPosted: Tue 23 Feb 2010, 14:49    Post subject:  

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
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1431
Location: UK

PostPosted: Tue 23 Feb 2010, 16:32    Post subject:  

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
.

_________________

Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 3613
Location: Earth

PostPosted: Fri 26 Mar 2010, 18:06    Post subject: How to Manually Edit an ISO image before burning it to CD  

In the first entry in this post, @catdude shares the following command:
Quote:
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.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0892s ][ Queries: 12 (0.0054s) ][ GZIP on ]