Could someone help me get the syntax for `genisoimage' and/or `xorriso' correct? Apparently it is not in many linux distros so below my little HOWTO shows how to compile it. ( which adds tons of crap that can go wrong) mkdir -p ISO_root/isolinux cp /usr/lib/syslinux/[i,m,v]* ISO_root/isolinux cat > ISO_root/isolinux/isolinux.cfg << EOF UI menu.c32 label isolinuxtests EOF # Most linux distros dont have `mkisofs' # So... Download and compile "cdrtools" wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools-3.00.tar.bz2 tar -xf cdrtools-3.00 make -C cdrtools-3.00 install DESTDIR="$(pwd)/pkg" INS_BASE="" PATH="${PATH}:$(pwd)/pkg/bin" mkisofs \ -o output.iso \ -no-emul-boot \ -boot-info-table \ -boot-load-size 4 \ -c isolinux/boot.cat \ -b isolinux/isolinux.bin \ ISO_root # And if you wish to make the .iso bootable via USB, then run: isohybrid output.iso # Test the .iso kvm -m 1000 -cdrom output.iso # Could anyone give me an example to do this same thing, using # `genisoimage', or `xorriso'? Thanks for you time, -cgraf
On 02/01/2014 01:34 PM, Dean Graff wrote:> Could someone help me get the syntax for `genisoimage' and/or `xorriso' > correct? Apparently it is not in many linux distros so below my little > HOWTO shows how to compile it.What Linux distribution does *not* have one or the other? -hpa
On 02/01/2014 02:48 PM, Dean Graff wrote:> Sorry, i should have been more clear. I am just trying to understand how > to do this same thing with xorriso or genisoimage, Debian for instance, > has both of these, but does not have `mkisofs'. I was hoping to write > the guide so that it could be used from debian, and hopefully take > advantage of the `xorriso' option which allows the rest of a USB to used > for a persistence partition, in the case that it is turned into a > binary-hybrid.iso. >genisoimage should be command-line compatible with mkisofs (on a lot of Linux platforms, the mkisofs command *is* genisoimage). xorriso uses a different command line, as it is a lot more capable. -hpa
Hallo, hpa, Du meintest am 01.02.14:>> Could someone help me get the syntax for `genisoimage' and/or >> `xorriso' correct? Apparently it is not in many linux distros so >> below my little HOWTO shows how to compile it.> What Linux distribution does *not* have one or the other?Slackware, p.e. Viele Gruesse! Helmut
Mattias Schlenker
2014-Feb-02 12:27 UTC
[syslinux] xorriso or genisoimage syntax assistance
Am 01.02.2014 22:34, schrieb Dean Graff:> Could someone help me get the syntax for `genisoimage' and/or `xorriso' > correct? Apparently it is not in many linux distros so below my little > HOWTO shows how to compile it. ( which adds tons of crap that can go wrong)Build a recent xorriso - this can be run from the build directory without installing (thanks, Thomas!): ./configure --enable-static Taken from a build yesterday: /usr/compat.static/bin/xorriso -as mkisofs -joliet -graft-points -c boot/isolinux/boot.cat -b boot/isolinux/isolinux.bin -no-emul-boot -boot-info-table -boot-load-size 4 -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin --modification-date=2014020113222000 -V XPMOVER -o xpmover-erebos-20140201-132220.iso -r cdmaster --sort-weight 0 / --sort-weight 1 /boot --sort-weight 3 /boot/kernel --sort-weight 5 /boot/isolinux --sort-weight 6 /boot/isolinux/isolinux.bin This is WITHOUT an efi.img UEFI boot image. Isohybrid with an UEFI boot image is three more switches: ... -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin -eltorito-alt-boot -e boot/efi/efi.img -no-emul-boot -isohybrid-gpt-basdat ... Of course the modification date is not necessary (but a nice trick for live distributions to find their drive without mounting just by using blkid). The sort weighting slightly speeds up boot times (and works around a bug found in syslinux up to 6.02 - or many BIOS implementations, depends on your perspective) Regards, Mattias -- Mattias Schlenker - Redaktion + EDV-Beratung + Linux-CD/DVD-Konzepte August-Bebel-Str. 74 - 04275 LEIPZIG - GERMANY Bitte fuer geschaeftliche Telefonate vorzugsweise die VoIP-Telefonnummer +49 341 39290767 verwenden, da ich diese aufs Mobiltelefon routen kann!
On Sun, Feb 2, 2014 at 6:27 AM, Mattias Schlenker <ms at mattiasschlenker.de>wrote: [...]> Build a recent xorriso - this can be run from the build directory without > installing (thanks, Thomas!): > > ./configure --enable-static > > Thank you for pointing this out, I tried desperately to statically compile`mkisofs' yesterday, to no avail. To hear that xorriso is static friendly is "a breath of fresh air". And yeah much appreciation to Thomas for this.> /usr/compat.static/bin/xorriso -as mkisofs -joliet -graft-points -c > boot/isolinux/boot.cat -b boot/isolinux/isolinux.bin -no-emul-boot > -boot-info-table -boot-load-size 4 -isohybrid-mbr > /usr/share/syslinux/isohdpfx.bin --modification-date=2014020113222000 -V > XPMOVER -o xpmover-erebos-20140201-132220.iso -r cdmaster --sort-weight 0 > / --sort-weight 1 /boot --sort-weight 3 /boot/kernel --sort-weight 5 > /boot/isolinux --sort-weight 6 /boot/isolinux/isolinux.bin >This look like perhaps exactly what i need to get my partition isohybrid USB correct.> ... -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin -eltorito-alt-boot -e > boot/efi/efi.img -no-emul-boot -isohybrid-gpt-basdat ... > > Of course the modification date is not necessary (but a nice trick for > live distributions to find their drive without mounting just by using > blkid). The sort weighting slightly speeds up boot times (and works around > a bug found in syslinux up to 6.02 - or many BIOS implementations, depends > on your perspective) > > This is very succinct, and yeah I am mostly making live operating systems,I hope to tackle freebsd booting with mboot.c32, after i have isolinux and the iso9660 file-system more well understood. -dean