📄 readme
字号:
This is a quick and dirty script to convert a floppyfw floppy(http://www.zelow.no/floppyfw/) to a tagged image for booting withEtherboot (http://etherboot.sourceforge.net/). The advantages of networkbooting include: it's much faster loading from the network than from afloppy disk, you can boot from any size floppy, and you are not limitedto the maximum of 1.44 MB of the physical floppy. If you have enough RAMand use a virtual floppy to build the initial boot image, you can put asmuch on it as will fit the ramdisk.See further down under -nonet if you want to boot from HD or CDROM.This program requires mtools, tar, bzip2, loopback mount in the kernel,and root privileges to execute. Hope you have them.This script works for any of the releases for which a subdirectory ofthat name is provided, but it should not be too hard to make it work forother releases, all that is done here is to substitute some scripts forthe distributed ones.First of all you should make the floppy work the way you want beforeconverting it to a tagged image. This involves editing the variousconfig files on the floppy. Instructions on this are distributed fromthe floppyfw web page mentioned above.Edit the $tftpdir assignment for the directory where you put your taggedimages. Edit the $libdir assignment and the use lib directive near thetop if you decide to put this package somewhere other than/usr/local/lib/mkffwnb/. Adjust the instructions below as necessary.Copy everything to $libdir. mkdir -p /usr/local/lib/mkffwnb/ cp -a . /usr/local/lib/mkffwnb/Make a link from /usr/local/lib/mkffwnb/mkffwnb.pl to/usr/local/bin/mkffwnb so that it's in your path. ln -s /usr/local/lib/mkffwnb/mkffwnb.pl /usr/local/bin/mkffwnbThen run it as: mkffwnbYou can also provide a floppy drive as an argument, e.g. mkffwnb x:where x: could be mapped to a disk file. This allows you to build animage without a real floppy drive. Remember that for virtual drives rootmust have the mapping for the drive in question in ~root/.mtoolsrc.You can use the option --localtime=/etc/localtime to specify that thefile /etc/localtime is to be copied to /etc/localtime on the initrd.Instead of /etc/localtime, you can use any of the timezone files under/usr/share/zoneinfo/, it's just that /etc/localtime will usually be thecorrect one for your timezone.If you use the option -nonet, it leaves the intermediate files in$tempdir, /tmp/mkffwnb by default. This is useful if you want thevmlinuz and initrd.gz files for use with LILO or isolinux to boot fromHD or CDROM. Actually you can also use these with a floppy, it loadsfaster if you fold all the scripts and modules into the initrd aheadof time.mkffwnb has to be run as root because it uses loopback mounts and alsobecause the files inside the initrd are owned by root.Ken Yap2003-04-20
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -