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 Sat 14 Dec 2019, 22:14
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
squashing: how to modify isos?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
slackfan

Joined: 29 Mar 2009
Posts: 205

PostPosted: Fri 18 Oct 2019, 16:16    Post subject:  squashing: how to modify isos?
Subject description: file endings
 

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

Joined: 04 Jan 2009
Posts: 14552
Location: Gatineau (Qc), Canada

PostPosted: Fri 18 Oct 2019, 19:10    Post subject:  

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:
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:
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
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
slackfan

Joined: 29 Mar 2009
Posts: 205

PostPosted: Sat 19 Oct 2019, 04:37    Post subject:  

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
initrd.q.jpg
 Description   
 Filesize   56.91 KB
 Viewed   78 Time(s)

initrd.q.jpg

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

Joined: 04 Jan 2009
Posts: 14552
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Oct 2019, 21:41    Post subject:  

Ah.
initrd.q is a file from BarryK's Quirky system.
I know nothing about it, better ask Barry.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.1287s ][ Queries: 12 (0.0293s) ][ GZIP on ]