squashing: how to modify isos?

Using applications, configuring, problems
Post Reply
Message
Author
slackfan
Posts: 208
Joined: Sun 29 Mar 2009, 09:31

squashing: how to modify isos?

#1 Post by slackfan »

our initrd files end usually in dotgz (.gz)

but diverses ones in the last years are different.

Barry Kauler did introduce and use new formats.

Is there a Puppy wikki page (better as forum threads where the real info meets with comments and debates making difficult to follow the information) or blog page explaining:

- how to open a Puppy / Quiky / Dog dotiso (each one) or
- dotimg

and, having open it

- how to open a Puppy / Quiky / Dog inirddot somewhat (each one)
- and "main".sfs

correctly

and back after erasing / changing / extending components of then

of course correctly too if possible :lol:
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello slackfan.

Trying to answer your questions, in no order:
-- In a Puppy you can open any iso file by double-clicking on it from s ROX window;
A new ROX window with the contents of the iso file will appear. From there, you
can copy any file to any other folder in your system.

-- about initrd.gz, there is an utility to open it in its own directory, /root/initrd-expanded.
Again double-click on your initrd.gz file and it will be done automatically. You can edit any
script in there to your liking. When finished editing, double-click on the folder
/root/initrd-expanded: the updated version will be saved as initrd.gz in the original place.
Then, reboot of course, to have your changes applied.

-- to open a "main" Puppy sfs file, make a copy of it in a safe place and open a console
in that folder. Then run

Code: Select all

unsquashfs -r filename filename.sfs 
This will unpack the contents of the "filename.sfs" file in a folder called "filename".

Do your changes in that folder. When satisfied with your changes, run

Code: Select all

mksquashfs filename filename.sfs -noappend -all-root -b 1M -comp xz -Xbcj x86 -Xdict-size 100%
and your main Puppy sfs file will be re-created. The last four settings,
starting from -b make sure the squash file has the highest compression possible.

Then copy back this archive to its original place and reboot.

Very, very important:
don't forget to make / keep back-ups of your originals in case something goes wrong.


IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
slackfan
Posts: 208
Joined: Sun 29 Mar 2009, 09:31

#3 Post by slackfan »

Hi musher0, great info, thank you very much.

And what is with files like this initrd.q (containing all the system excepted the kernel, see view rox window, files vmlinuz and BIG initrd.q with 136 MB but extremely small as it offers a full 64bit live linux with a great choice of applications, not a quirky one, a real well working Puppy I thing!) after you did do the proposed action "remove built in packages", see view "menu"?

the error message requires an application to manage the dotq file!

kind regards
Attachments
initrd.q.jpg
(56.91 KiB) Downloaded 147 times
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Ah.
initrd.q is a file from BarryK's Quirky system.
I know nothing about it, better ask Barry.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Post Reply