You are not logged in.

#1 2010-10-05 13:40:01

RobertMe
Member
From: The Netherlands
Registered: 2010-07-04
Posts: 45

[Solved] Create bootable iso from folder

Hi,

I'm experimenting with creating a "live cd". I've created a chroot in which I've installed all the base packages, copied the files to a USB stick, installed extlinux and that works. But now I'm looking for a way to create a bootable ISO image from the chroot so I can use it as a CD in VirtualBox . I've already found mkisofs and created the ISO, but how do I install extlinux on it so I can boot from the image? Looking at the mkisofs manual page I think it has to be an option to mkisofs but there seem to be a lot of options related to booting so I don't know which one to use (the full command would be most helpful, because on the internet I did find a lot of variations to create the full iso so I don't know which is "the right one")

Thanks in advance,
Robert Meijers

Last edited by RobertMe (2010-10-05 14:23:00)

Offline

#2 2010-10-05 13:54:44

72linus
Member
From: gordonsville,va
Registered: 2009-03-14
Posts: 144
Website

Re: [Solved] Create bootable iso from folder

so is it a livecd or an install cd?

if you have mkisofs/genisoimage and say your folder is named "ISOTMP"

genisoimage -r -V "ISO-LABEL" -cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o NAME-OF-ISO.iso ISOTMP/

mkisofs -r -V "ISO-LABEL" -cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o NAME-OF-ISO.iso ISOTMP/

if you have boot/isolinux folder do

mkisofs -r -V "ISO-LABEL" -cache-inodes -J -l \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table -o NAME-OF-ISO.iso ISOTMP/

Offline

#3 2010-10-05 14:22:35

RobertMe
Member
From: The Netherlands
Registered: 2010-07-04
Posts: 45

Re: [Solved] Create bootable iso from folder

Many thanks, works without a problem smile
I though I could also use extlinux for the iso (stupid me hmm).

Offline

Board footer

Powered by FluxBB