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 Krienke
Email:
License: GPL v2
Version: 0.6
Description: An El Torito boot image extractor
call: geteltorito CD-image > toritoimagefile
example:geteltorito /dev/sr0 > /tmp/bootimage
The perl-script will extract the initial/default boot image from a CD if
existant. It will not extract any of other possibly existing bootimages
that are allowed by the El Torito standard.
The imagedata are written to STDOUT all other information is written to
STDERR (eg type and size of image).
If you want to write the image to a file instead of STDOUT you can
specify 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