⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.eltorito

📁 创建一个符合iso-9660标准的iso文件系统
💻 ELTORITO
字号:
/* @(#)README.eltorito	1.2 00/03/18 eric */What is El Torito?------------------Simply put, El Torito is a specification that says how a cdrom shouldbe formatted such that you can directly boot from it.The "El Torito" spec says that ANY cdrom drive should work (scsi/eide)as long as the BIOS supports El Torito. So far this has only beentested with EIDE drives because none of the scsi controllers that hasbeen tested so far appears to support El Torito. The motherboarddefinately has to support El Torito. The ones that do let you choosebooting from HD, Floppy, Network or CDROM.How To Make Bootable CDs------------------------For the x86 platform, many BIOS's have begun to support bootable CDs.The standard my patches for mkisofs is based on is called "El Torito".The "El Torito" standard works by making the CD drive appear, through BIOScalls, to be a normal floppy drive. This way you simply put an floppysize image (exactly 1440k for a 1.44 meg floppy) somewhere in theiso fs. In the headers of the iso fs you place a pointer to this image.The BIOS will then grab this image from the CD and for all purposes itacts as if it were booting from the floppy drive. This allows a workingLILO boot disk, for example, to simply be used as is.It is simple then to make a bootable CD. First create a file, say "boot.img"which is an exact image of the boot floppu currently in use. There isat least one HOWTO on making bootable floppies. If you have a bootablefloppy handy, you can make a boot image with the commanddd if=/dev/fd0 of=boot.img bs=10k count=144assuming the floppy is in the A: drive.Place this image somewhere in the hierarchy which will be the sourcefor the iso9660 filesystem. It is a good idea to put all boot relatedfiles in their own directory ("boot/" under the root of the iso9660 fs,for example), but this is not necessary.One caveat - Your boot floppy MUST load any initial ramdisk via LILO,not the kernel ramdisk driver! This is because once the linux kernelstarts up, the BIOS emulation of the CD as a floppy disk is circumventedand will fail miserably. LILO will load the initial ramdisk using BIOSdisk calls, so the emulation works as designed.The "El Torito" specification requires a "boot catalog" to be created as ll.This is a 2048 byte file which is of no interest except it is required.My patches to mkisofs will cause it to automatically create theboot catalog. You must specify where the boot catalog will go in theiso9660 filesystem. Usually it is a good idea to put it the same placeas the boot image, and a name like "boot.catalog" seems appropriate.So we have our boot image in the file "boot.image", and we are going toput it in the directory "boot/" under the root of the iso9660 filesystem.We will have the boot catalog go in the same directory with the name"boot.catalog". The command to create the iso9660 fs in the filebootcd.iso is thenmkisofs -b boot/boot.img -c boot/boot.catalog -o bootcd.iso .The -b option specifies the boot image to be used (note the path isrelative to the root of the iso9660 disc), and the -c option isfor the boot catalog file.Now burn the CD and its ready to boot!CAVEATS-------I don't think this will work with multisession CDs.If your bootable floppy image needs to access the boot floppy, it hasto do so through BIOS calls. This is because if your O/S tries to talk tothe floppy directly it will bypass the "floppy emulation" the El Torito speccreates through BIOS. For example, under Linux it is possible tohave an initial RAM disk loaded when the kernel starts up. If you let thekernel try to read in the initial RAM disk from floppy, it will failmiserably because Linux is not using BIOS calls to access the floppy drive.Instead of seeing the floppy image on the CD, Linux will be looking atthe actually floppy drive.The solution is to have the initial boot loader, called LILO, load yourinitial RAM disk for you.  LILO uses BIOS calls entirely for theseoperations, so it can grab it from the emulated floppy image.I don't think making a CD bootable renders it unreadable by non-El Toritomachines. The El Torito spec uses parts of the iso9660 filesystem whichwere reserved for future use, so no existing code should care what it does.Mkisofs currently stores identification records in the iso9660 filesystemsaying that the system is a x86 system. The El Torito spec also allowsone to write PowerPC or Mac id's instead. If you look at the code in write.cyou could figure out how to change what is written.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -