Page 1 of 1
[Solved] Create a bootable iso file?
Posted: 16 Jul 2021, 13:56
by supertabs
How do I add a boot information on an iso file?
I modified the iso file of porteus that I have downloaded:
I extracted the contents using Engrampa Archive manager, replaced some files, then packed it again as a new iso file. After that, the iso file losed all its boot information. How do I make the iso bootable again?
Create a bootable iso file?
Posted: 16 Jul 2021, 15:37
by Ed_P
This is what I use:
Code: Select all
#!/bin/sh
if [ `whoami` != "root" ]; then
echo "Enter root's password" $(tput bold)$(tput setaf 2)
su -c "sh $0 $1 $2"; exit
fi
echo $(tput sgr0)
iso=Porteus-CINNAMON-v5.0rc3-x86_64.iso
mkdir mnt
mount -t iso9660 -o loop /mnt/sda6/porteus5.0/$iso mnt
mkdir NEW
cp -a mnt/* NEW/.
umount -f mnt
rm -fr mnt
# Make changes to /NEW files
mkisofs -o NEW.iso -v -l -J -joliet-long -R -D -A Porteus -V Porteus \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/syslinux/isolinux.bin -c boot/syslinux/isolinux.boot NEW
Create a bootable iso file?
Posted: 16 Jul 2021, 23:19
by ncmprhnsbl
there's also the builtin
make_iso.sh in the /porteus folder of the iso which pretty much does what Ed has described..
so..
extract the iso (however)
do what you want
run:
Code: Select all
/path/to/extracted/iso/porteus/make_iso.sh /path/to/new/iso/new_name.iso
Create a bootable iso file?
Posted: 17 Jul 2021, 07:02
by supertabs
Thank you Ed_P and ncmprhnsbl .