Remaster a Puppy Linux ISO File Manually

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 6812
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2968 times
Been thanked: 2790 times
Contact:

Remaster a Puppy Linux ISO File Manually

Post by rockedge »

How to Remaster a Puppy Linux ISO File Manually
Assuming that one has made an installation of the ISO file that one wants to modify, proceed with the following procedure.
Copy the existing file system to a working directory, e.g. for a frugal installation:

Code: Select all

mkdir -p /mnt/home/workingdirectory
cp -a  /initrd/pup_ro2/* /mnt/home/workingdirectory

Modify the contents of the working directory to one's requirements, e.g. by inspecting the contents of the personal storage save folder or file (either/initrd/pup_rw for pupmode 12 or /initrd/pup_ro1 for pupmode 13) and then copying from there the directories /etc, /root, /usr and /var

WARNING: if the ISO file is for wide distribution one must be selective as to what is copied from those directories

Create the SFS file of the modified file system, e.g.:

Code: Select all

mkdir -p /mnt/home/remasterdirectory
cd /mnt/home
mksquashfs workingdirectory remasterdirectory/puppyremaster.sfs -noappend

Copy any necessary files to /mnt/home/remasterdirectory from the original ISO file (or optical disc) so as to create a complete and new ISO file:

Code: Select all

cd /mnt/home
mkisofs -b isolinux.bin -c boot.cat -D -l -R -v -V "Puppy Linux remaster" -no-emul-boot -boot-load-size 4 -boot-info-table -o "newpuppy.iso" remasterdirectory
    

If using a /boot directory in /remasterdirectory/boot the mkisofs command would look like this example:

Code: Select all

mkisofs -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -D -l -R -v -V "Puppy Linux remaster" -no-emul-boot -boot-load-size 4 -boot-info-table -o "newpuppy.iso" remasterdirectory
isohybrid newpuppy.iso
User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Re: Remaster a Puppy Linux ISO File Manually

Post by Jasper »

@rockedge

Thanks for sharing this :thumbup2:

Please, can you pin this to the top of the forum, so that it is not lost amongst all the threads in this section?

Just to clarify, this should be carried out in a Linux partition and not a NTFS nor FAT32?

Thanks!

User avatar
rockedge
Site Admin
Posts: 6812
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2968 times
Been thanked: 2790 times
Contact:

Re: Remaster a Puppy Linux ISO File Manually

Post by rockedge »

Jasper wrote:

Just to clarify, this should be carried out in a Linux partition and not a NTFS nor FAT32?

Yes, correct. This operation should be done on Linux ext2/ext3/ext4 formatted partitions.

I actually have not tried it on a FAT32 or NTFS formatted partitions. 8-)

User avatar
Jasper
Posts: 1696
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 867 times
Been thanked: 352 times

Re: Remaster a Puppy Linux ISO File Manually

Post by Jasper »

@rockedge

This is just me "throwing it out there"

The new Linux kernel 6.9 includes a newer/better exFAT driver.

I think most modern USB flash drives and MicroSD cards (I think my Samsung/Sandisk do).

General info from Microsoft ..... it's an old article:
https://cloudblogs.microsoft.com/openso ... ux-kernel/

Also, GParted v1.60 includes better support for exFAT:
https://9to5linux.com/gparted-1-6-open- ... fixes-bugs

and there has been discussion of this used in Bookworm:
viewtopic.php?t=2341

It would be useful to know if this could also be an option too.

.............. could this be implemented in StickPup ??
viewtopic.php?t=5313

Also, this would mean that 'Save Files' could be larger than 4GB which is the limit on a FAT32 USB flash drive (?)

I have digressed somewhat .......... :lol:

Amol
Posts: 147
Joined: Wed Oct 26, 2022 10:35 pm
Has thanked: 32 times
Been thanked: 90 times

Re: Remaster a Puppy Linux ISO File Manually

Post by Amol »

Hello rockedge !
Thank you for this topic.It should be great to have the same thing for changing the kernel only in a puppy iso file.Can you give us the how to ?
Thanks in advance.
Amol

jesudia
Posts: 53
Joined: Sat Feb 13, 2021 11:03 am
Been thanked: 6 times

Re: Remaster a Puppy Linux ISO File Manually

Post by jesudia »

It would be very important to make an iso of your Puppy Linux with your browser configured and your preferred applications installed,
I have tried this Puppy Linux and it works great, it is incredible, upup-20.04-jrb-e1.iso the ideal puppy runs on ryzen 5, lenovo t440, with scrcpy, yt-dlp, etc.

https://easyos.org/user/ultra-secure-web-browsing.html

N97
Posts: 48
Joined: Tue Dec 10, 2024 3:27 am
Has thanked: 2 times
Been thanked: 4 times

Re: Remaster a Puppy Linux ISO File Manually

Post by N97 »

@rockedge
with all due respects, there is a way to 'remaster' a puppy without code. It involves setting up two partitions boot and os. a third partition can be made for storage. ( caveat: keep a separate copy of all storage items JIC of chip failure.)

If you have your puppy tweaked the way you want it, Format a new stick with a 64Mb fat32 boot partition, and a 4Gb ext3 os partition.
leave a small buffer of 2Mb before & after each partition.

The boot partition is a COPY of Folders boot & EFI, files grldr, grub.cfg, initrd.gz, and vmlinuz ONLY
The os partition contains a COPY of fdrv, zdrv, and other'drv' files, fsckme.flg*, the puppy sfs, splash.png, and option of the save-file.

You can then put all your personal stuff in the 3rd partition. (usually ext3 for linux) A 32Gb Stick or chip is about 20Gb.
*-fsckme needs edit to point to the 2nd partition and filesystem (example sda2,ext3 for a single puppy in the drive.)

Now for a neat twist...
Once you have this done you can keep a copy of these partitions in a sepate folder in a different usb stick/ micro sd chip.
One folder is LOAD that has the stuff in the 1st partition
2nd folder is PUP that contains all the stuff in the 2nd partition, including the save file.
A reminder to delete the save folder in PUP, and replace (COPY) from the existing puppy. keeps everthing up to date.

So, the LOAD/PUP folders are in fact a remaster of the original puppy. Your tweaks are the remaster preserved in these copies.
And they're portable.

I miss nooby, we both joined within days of each other in 2008. Its a long road here for me, but I grow and change, as we all do, know it or not, like it or not.

Post Reply

Return to “Re-masters”