|
楼主 |
发表于 2004-11-28 10:46:07
|
显示全部楼层
请老大看看这个该怎么搞,能不能翻译一下http://rzero.com/coyote/bootcd.htmlBooting Coyote Linux from a CD-ROMOverviewThis is an involved process and requires some hacking on a full Linux system to create the boot CD. Something to keep in mind is that the configuration of such a system cannot be updated; you are creating a CD-ROM, as in "Read Only Memory". All of your configuration options, port-forwarding, or script modifications must be completed and tested before you create the CD. You don't need an IDE-enabled kernel to make this work, as it merely takes advantage of the BIOS-enabled ability of many computers to boot from a CD. Following are three sets of instructions. The first is the most recent, and has been tested with CL2.x The other two were provided for CL1.x, and will probably not work for CL2.x. They are included here as resources in case the first method doesn't quite work for you. If you have questions or problems with any of this, please use the Coyote Linux forums. I didn't write any of this, so please don't ask me for help. I am interested in corrections or clarifications, however. --------------------------------------------------------------------------------Method 1What do you need ?A WORKING Coyote Linux 2.0 floppy A system that meets Coyote's specs, with a CD drive capable of reading and booting from CD-RW or CD-R media. A working full-distribution Linux system (capable of manipulating tar gzip files). A working Windows system with a CD-writing drive. A new kernel with support for IDE CD-ROMs CDRpack13 and multi_memdisk WinImage, or another program for creating disk image files from floppy disks. how to:Replace the file linux on the boot floppy with the IDE-CDROM-enabled kernel (renamed to linux. Copy etc.tgz, local.tgz, webadmin.tgz, dhcpd.tgz, modules.tgz on this floppy to a temporary directory on the Linux system. Extract root.tgz to another temp directory, and modify etc/rc.d/rc.sysinit, changing qt mount -o ro -t $FSTYPE $DEVICE $MNT to qt mount -o ro -t iso9660 $DEVICE $MNT. Recompress the files back into root.tgz. Modify syslinux.cfg, changing boot=/dev/fd0,vfat to boot=/dev/hdc,iso9660. This assumes that your CD-ROM is the master on the secondary IDE interface; change it to /dev/hda if it's master on the primary interface, etc. Use WinImage to create disk image (uncompressed format) file called coyote2.img Extract cdrpack13.zip to a dir like c:\cdrpack13 and extract multi_memdisk_addon.zip to that directory. Copy coyote2.img to c:\cdrpack13\cds\multi_memdisk\disk1\isolinux Modify c:\cdrpack13\cds\multi_memdisk\disk1\isolinux\isolinx.cfg, changing append initrd=tomsrtbt.img to append initrd=coyote2.img. You can also modify isolinux.cfg with other changes, such as timeout, default, display message when CD booting, other bootable images, etc. Copy etc.tgz, local.tgz, webadmin.tgz, dhcpd.tgz, modules.tgz to c:\cdrpack13\cds\multi_memdisk\disk1 Get to a DOS/Command prompt, make c:\cdrpack13 the current directory, insert a blank CD-R, and execute run.bat. From the "Main menu" select "Build & Burn" and "multi_memdisk". --------------------------------------------------------------------------------Method 2 (Coyote Linux 1.x)Mount the floppy on the machine with the CD burner. Start from your home directory; this example uses /home/fred. mkdir cdcoyotecp /mnt/floppy/* cdcoyotemkdir cdcoyote/rootcd cdcoyote/roottar -xzvf ../root.tgzEdit linuxrc and continue on, but you may want to uncomment DEBUG if you wish, and then continue to this:MNT="/var/lib/lrpkg/mnt"qt mkdir $MNTbecomes this:MNT="/var/lib/lrpkg/mnt"#qt mkdir $MNTchange this:qt mount -o ro -t $FSTYPE /dev/$DEVICE $MNTln -sf $DEVICE /dev/bootto this:#qt mount -o ro -t $FSTYPE /dev/$DEVICE $MNTln -sf $DEVICE /dev/bootand this:qt umount /procqt umount $MNTbecomes this:qt umount /proc#qt umount $MNTSave it.cd var/lib/lrppkgmkdir mntcd mntcopy all the ROOTMAP tgz files here (those in syslinux.cfg LRP=.......copy all tgz files listed in the packages file here.cd /home/fred/cdcoyote/roottar -czvf ../newroot.tgz *cd ../check the permissions on the old root.tgz and make newroot.tgz match'em thenrm root.tgzmv newroot.tgz root.tgzrm the tgz files that you moved to lrppkg/mnt from /home/fred mkdir cdimgmkdosfs -C 288.img 2880mount -t msdos -o loop 288.img cdimgcd cdimgcp /home/fred/cdcoyote/* .cd ../syslinux 288.imgumount cdimgmv 288.img cdimgmkisofs -b 288.img -c boot-catalog -o /tmp/coyote.iso cdimgcdrecord speed=4 dev=0,0,0 /tmp/coyote.isoMost of this was listed in a mini howto for LRP (password required). --------------------------------------------------------------------------------Method 3Author: Tiago RattoDate: 10-10-03 15:41What do you need ?A WORKING Coyote Linux floppy 1 Computer running WIndows 1 Computer running Linux (Windows with Cygwin might work, not tested) 1 CD-R Drive 1 (or more) CD-R media WinImage (to create and change disk images) optional: Bochs (to test the images you've made) BCD, MultiMemDisk (www.nu2.nu - Thanx Bart) -1st Step[Location: Windows]So, you've already created your Coyote linux ok ? Run WinImage and make a disk image of your disk, save the image as non-compressed format. - 2nd Step[Location: Linux/Cygwin]Now create a folder in your hard drive and extract all the tgz's inside. Create another folder inside the folder you've created named root and extract the root.tgz inside. Move the others tgz's files to the folder root. Now go tho to root/var/lib/lrpkg/ and edit the root.linuxrc file. Now change the following lines:[126]if [ -f $MNT/$f.tgz ]; thento:if [ -f /$f.tgz ]; then [131]zcat $MNT/$f.tgz | qt tar -xto:zcat /$f.tgz | qt tar -x [154]if [ -f $MNT/$f.tgz ]; thento:if [ -f /$f.tgz ]; then [156]qt zcat $MNT/$f.tgz > /dev/nullto:qt zcat /$f.tgz > /dev/null Now extract the file syslinux.cfg from the image and open it. Change the parameter:boot=/dev/fd0to:boot=/ - 3rd Step[Linux/Cygwin]Now enter the root folder and compress all the files using tgz-like tool creating a new root.tgz.[Windows]After all that put the files you'd changed back into the image file using the WinImage and save it. And copy it to the cds/multi_memdisk/disk1/isolinux folder on the MultiMemDisk folder. Go to the MultiMemDisk folder and enter the cds/multi_memdisk/disk1/isolinux and alter the isolinux.cfg and the bootmsg as you like. After that go back to the MultiMemDisk folder and type "run" to burn your CD-R, follow the intructions and all should be fine !!! :-)))) PS1: If you are using WindowsXP generate a image file with de MultiMemDisk and burn it to the CD using a Nero-like software. Credits, Licenses, Sources and DocumentationCoyote Linux - Vortech Consulting - http://www.coyotelinux.comCoyote Linux FAQ - http://rzero.com/coyote/faq.htmlBCD - http://www.nu2.nu Compiled by Todd VerBeek. |
|