How to remaster the iso file

For what ever reason you have, you may want to alter the iso file used to make the Parted Magic LiveCD. This is a simple explanation of how to alter the Parted Magic iso file from a Linux system.

Starting with Parted Magic 5.9 the mkgriso script is provided in the root of the iso. It is recommended to follow the instructions in there and to use that script to recreate the iso.

For users of earlier versions the instructions are repeated here:

mkdir /tmp/cdrom
mount -o loop pmagic-X.X.iso /tmp/cdrom
cp -a /tmp/cdrom .
umount /tmp/cdrom

Note the ”.” on the third line!

The above commands copy (“unpack”) the iso to the cdrom directory in the current directory. The “X.X” stands for the actual version, replace as appropriate - e.g. pmagic-2013_05_01.iso.

You can now copy your files to the new cdrom directory. If you would like to add programs, put the txz files in cdrom/pmagic/pmodules - see Adding programs for details.

Then finally return to the current directory (the one with the new cdrom directory in it) and use this command to recreate the iso:

genisoimage -hide-rr-moved -l -v -d -N -J -R -b boot/syslinux/isolinux.bin \
-o pmagic_X.X.iso -c boot/syslinux/isolinux.boot -no-emul-boot -boot-load-size 4 \
-boot-info-table -V "Parted Magic" -eltorito-alt-boot -e boot/syslinux/efiboot.img \
-no-emul-boot cdrom

And again replace the “X.X” with the actual version - e.g. pmagic-2013_05_01.iso.

There are many programs for altering and remastering iso files. Parted Magic includes a very nice one called isomaster if you do not want to use the command line.


Site Stats

how_to_remaster_the_iso_file.txt · Last modified: 2013/05/06 17:22 by patrick