Remaster a Puppy Linux ISO File Manually

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 5686
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1961 times
Been thanked: 2085 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: 1542
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 656 times
Been thanked: 346 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: 5686
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1961 times
Been thanked: 2085 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: 1542
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 656 times
Been thanked: 346 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: 81
Joined: Wed Oct 26, 2022 10:35 pm
Has thanked: 5 times
Been thanked: 46 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

Post Reply

Return to “Re-masters”