geteltorito: script to extract an El-Torito-bootimage from eg a bootable CD
Using the geteltorito script you can extract a bootloader that is conform to the El-Torito-specification from eg a bootable CD. The extracted bootloader image can be used to create another bootable device like an USB stick by using the previously extracted bootloader image.
The script can be downloaded here: https://github.com/rainer042/geteltorito
Readme:
geteltorito===========
Author: Rainer KrienkeEmail: License: GPL v2Version: 0.6Description: An El Torito boot image extractor
call: geteltorito CD-image > toritoimagefileexample:geteltorito /dev/sr0 > /tmp/bootimage
The perl-script will extract the initial/default boot image from a CD ifexistant. It will not extract any of other possibly existing bootimagesthat are allowed by the El Torito standard.The imagedata are written to STDOUT all other information is written toSTDERR (eg type and size of image).If you want to write the image to a file instead of STDOUT you canspecify the filename wanted on the commandline using option -o <filename>else on a unix/linux system you can use shell redirection to a file (geteltorito.pl > myFile)
Rainer Krienke
