Create an ISO from current system

ISO from current system

sudo apt-get install squashfs-tools genisoimage resolvconf
mkdir -p customiso build/casper build/isolinux
sudo rsync -aAXv –exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/customiso*} /* /home/username/customiso
You need to make an empty [b]customiso/etc/fstab[/b] file.
sudo mksquashfs customiso build/casper/filesystem.squashf

Now extract initrd.lz and isolinux.bin file from mint-installation media or make a new initrd.lz yourself, and copy initrd.lz file to the build/casper folder. Isolinux-files to the build/isolinux folder.

You also need to make isolinux/isolinux.cfg file.

When all the things has made, you can build the iso.

sudo mkisofs -r -V ”My own ISO” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o MyOwnISO.iso build

sudo chmod 755 MyOwnISO.iso

PS. For installing from this iso, you need to install ubiquity-packages (ubiquity_2.18.8.12 + ubiquity-frontend-gtk_2.18.8.12 ubiquity-ubuntu-artwork_2.18.8.12). With LMDE you need to use debian installer or rsync/Grsync

sudo rsync -aAXv –exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*} /* /home/mint172/customiso

sudo apt-get install squashfs-tools genisoimage resolvconf
mkdir -p customiso build/casper build/isolinux
sudo rsync -aAXv –exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/username/customiso/*} /* /home/username/customiso

sudo mksquashfs customiso build/casper/filesystem.squashfs

sudo mkisofs -r -V ”My own ISO” -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o MyOwnISO.iso build

sudo chmod 755 MyOwnISO.iso

PS. WordPress shows the commands wrong, so read the link.