generate a true copy ISO from a master iso

Technical issues/questions of an intermediate or advanced nature.
sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

generate a true copy ISO from a master iso

Post#1 by sepp1945 » 29 Feb 2024, 04:02

i have generated a perfect master V5.01 with all the settings as i need It.
Now i need to make many copies of this master.
I tried to use make_iso.sh but this generates a basic iso again, NOT with the modifications i need.
How can i make say 30 copies?

Thanks

Sepp

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

generate a true copy ISO from a master iso

Post#2 by ncmprhnsbl » 29 Feb 2024, 05:08

sepp1945 wrote:
29 Feb 2024, 04:02
i have generated a perfect master V5.01 with all the settings as i need It.
Now i need to make many copies of this master.
I tried to use make_iso.sh but this generates a basic iso again, NOT with the modifications i need.
How can i make say 30 copies?
where are you running make_iso.sh from?

Code: Select all

cd /path/to/your/perfect_master/porteus/
./make_iso.sh /path/to/where/you/want/the/new/name_of_perfect_iso.iso
once you have one perfect_iso.iso , you can copy it as many times as you like.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

generate a true copy ISO from a master iso

Post#3 by sepp1945 » 29 Feb 2024, 06:58

I did the following
cd /mnt/sdc/porteus ./make_iso.sh /tmp/MyMaster.iso
the cfg. file in this directory is the right one, it has the changes information


it did not copy my master and did not copy the save.dat
my master guest has a different PW, this iso guest is guest
What i am doing wrong
Sepp

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3941
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

generate a true copy ISO from a master iso

Post#4 by ncmprhnsbl » 29 Feb 2024, 08:39

sepp1945 wrote:
29 Feb 2024, 06:58
it did not copy my master and did not copy the save.dat
my master guest has a different PW, this iso guest is guest
What i am doing wrong
i'm not sure what "my master" is, and where is your save.dat kept?

it's possible that the iso file system doesn't allow the save.dat archive type for some reason (i've never tried to make an iso with one of those included)
if that's the problem, a work around would be to convert the save.dat to a module (you can just rename it to save.xzm but that doesn't have any compression)
steps:

Code: Select all

##loop mount the save.dat:
mloop /path/to/save.dat
dir2xzm /mnt/loop /tmp/save.xzm (or whatever name) 
and place that in porteus/modules (or base)
then try make_iso.sh
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

sepp1945
Black ninja
Black ninja
Posts: 38
Joined: 26 Feb 2024, 01:44
Distribution: proteus 5 cinnamon

generate a true copy ISO from a master iso

Post#5 by sepp1945 » 29 Feb 2024, 09:39

I found a work around, created an image file with win32image and can now write it to multiple sdcards at the same time with balena.

is a 4GB or 8GB sdcard big enough? at the moment i am using 32GB cards, which takes time, so i would like to go smaller.

Please advise

Sepp

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

generate a true copy ISO from a master iso

Post#6 by Ed_P » 01 Mar 2024, 17:55

sepp1945 wrote:
29 Feb 2024, 09:39
is a 4GB or 8GB sdcard big enough?
16 GB certainly is. An 8GB probably.
ncmprhnsbl wrote:
29 Feb 2024, 08:39
steps:

Code: Select all

##loop mount the save.dat:
mloop /path/to/save.dat
dir2xzm /mnt/loop /tmp/save.xzm (or whatever name)
:thumbsup: A very clever approach. :worship:

Added in 37 minutes 3 seconds:
If USB space is a concern creating the save.dat file using the changes=EXIT cheatcode which invokes the changes-exit.conf file's folder exclusions will result in a smaller save.xzm file.

Folders I exclude from my save.dat file:

Code: Select all

!/var/run
!/var/tmp
!/root/.local/share/Trash/
!/root/.cache/thumbnails/normal
!/home/guest/.local/share/Trash/
!/home/guest/.cache/thumbnails/normal
!/home/guest/.java/deployment/cache/6.0/
!/home/guest/.mozilla/firefox/Crash?Reports/pending/
!/home/guest/.cache/mozilla/firefox/cuiho3hm.default-release-2/thumbnails/
!/home/guest/.cache/mozilla/firefox/cuiho3hm.default-release-2/cache2/
!/home/guest/.mozilla/firefox/cuiho3hm.default-release-2/datareporting/archived
Ed

Post Reply