[Solved] Create a bootable iso file?

Post here if you are a new Porteus member and you're looking for some help.
supertabs
Black ninja
Black ninja
Posts: 42
Joined: 07 Jun 2021, 08:33
Distribution: porteus-4.0-x86_64

[Solved] Create a bootable iso file?

Post#1 by supertabs » 16 Jul 2021, 13:56

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?
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. :happy62:

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Create a bootable iso file?

Post#2 by Ed_P » 16 Jul 2021, 15:37

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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3925
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Create a bootable iso file?

Post#3 by ncmprhnsbl » 16 Jul 2021, 23:19

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

supertabs
Black ninja
Black ninja
Posts: 42
Joined: 07 Jun 2021, 08:33
Distribution: porteus-4.0-x86_64

Create a bootable iso file?

Post#4 by supertabs » 17 Jul 2021, 07:02

Thank you Ed_P and ncmprhnsbl .
Those who win the race are those who are slow and steady. :happy62:

Post Reply