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
Hi, (My apologies to Geert Stappers for the inappropriate branch which i grafted on his thread today. It still grows. But i do my share to dry it out by replying to a message in the correct thread. :)) Dean Graff wrote:> But I really want to push xorriso to its limits.Be invited.> -partition_offset 16 \This makes the partition table look more normal. But it should not be a hard precondition for later adding more partitions by help of some partition editor program.> [without it] # Creates an error for parted. does not work.This is a peculiarity of parted, i'd say. The partition start at block 0 is unusual, but not really a reason to refuse work. What error message exactly do you get ?> -partition_cyl_align auto \This is the default.> i first have to run `isohybrid output.iso'I see that you already noticed option -isohybrid-mbr usr/share/syslinux/isohdpfx.bin as pointed out by Mattias. It has the same effect as a run of program "isohybrid". (The stuff after -eltorito-alt-boot is for UEFI. You'd need a suitable File efi.img for that.) The file isohdpfx.bin comes with SYSLINUX. xorriso will copy it to the very start of the emerging ISO image and patch in a few bytes in order to connect it to the file /boot/isolinux/isolinux.bin Have a nice day :) Thomas
I got this figured out much faster than I thought I would. Thanks to all of your help, Peter, Mattias, Thomas and Helmut. And Thomas, that 8 partition live OS sounds right up my alley, and I will definitely check it out. The second partition is working well with `parted' and `fdisk', so I am quite pleased. Below is, again, "what I came up with". I tried to integrate each of your suggestions fully. If any of you have time, let me know if it looks wrong or if I missed anything anyone suggested. 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 xorrisofs -R -J \ -o output.iso \ -no-emul-boot \ -boot-info-table \ -boot-load-size 4 \ -c isolinux/boot.cat \ -b isolinux/isolinux.bin \ -partition_offset 16 \ -isohybrid-mbr ISO_root/isolinux/isohdpfx.bin \ ISO_root # Put the .iso to a drive dd if=output.iso of=/dev/sdX # Xorrisos special .iso allows other partitions to be made: parted /dev/sdX mkpart primary "$(du output.iso)" 100% -m -s # Test the USB kvm /dev/sdX Thank you again, -dean