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?
[Solved] Create a bootable iso file?
[Solved] Create a bootable iso file?
Last edited by supertabs on 17 Jul 2021, 07:03, edited 1 time in total.
Those who win the race are those who are slow and steady.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Create a bootable iso file?
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
Ed
- ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Create a bootable iso file?
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:
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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
Create a bootable iso file?
Thank you Ed_P and ncmprhnsbl .
Those who win the race are those who are slow and steady.