ok I got it,
assuming your iso is in /home/user_name/Downloads, and youre going to extract it to /home/user_name/Documents to recreate iso
and gotta make a temporary mountpoint to mount iso
Code:
cd /home/user_name/Downloads
mkdir -p /home/user_name/mnt
mount -o loop bionicpup32-8.0-uefi.iso /home/user_name/mnt
cp -r /home/user_name/mnt/* /home/user_name/Documents
now the iso is extracted to Documents folder
now make this script and put it in Documents folder with extracted iso, just copy/paste this command into a new text file named gen_pup_iso.sh
Code:
/usr/bin/mkisofs -o /home/user_name/Bionicpup32.iso -v -J -R -D -A Bionicpup -V Bionicpup -no-emul-boot -boot-info-table -boot-load-size 4 -b isolinux.bin -c isolinux.boot .
you gotta make the script executable with
Code:
chmod +x gen_pup_iso.sh
then do in terminal in Documents folder
Code:
cd /home/user_name/Documents
./gen_pup_iso.sh
Note you may have to edit script for whether your system has mkisofs, genisoimage, or xorriso
so if genisoimage start script with /usr/bin/genisoimage
it'll make iso in /home/user_name/
edit script for your user name
I made one and dd'd it to my 2gb usb works great