LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4051|回复: 13

怎么写个bat文件用于启动BSD的安装程序?

[复制链接]
发表于 2003-10-19 21:01:15 | 显示全部楼层 |阅读模式
安装FreeBSD,只要运行它的安装程序就行了。
需要两个文件。 kern.flp   ,   mfsroot.flp
以下是文件的描述
kern.flp 为系统的内核。mfsroot.flp为将被读到内存中的虚拟硬盘映象。
  在DOS下,使用程序rewrite.exe 或fdimage.exe将一个软盘的镜像文件复制到软盘中。可以用它来制作启动软盘,fixit软盘等。
E:\>fdimage e:\floppies\kern.flp
在Ffreebsd或其他unix中要使用dd命令制作启动软盘,例如在FreeBSD下为 rfd0
#dd if=/cdrom/floppies/kern.flp  of /dev/rfd0

#file /cdrom/floppies/*
CHECKSUM.MD5: ASCII text
README.TXT:   ASCII English text
boot.catalog: data
boot.flp:     x86 boot sector, code offset 0x3c, reserved sectors 0, Media descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
fixit.flp:    x86 boot sector, code offset 0x3c, reserved sectors 0, Media descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
kern.flp:     x86 boot sector, code offset 0x3c, reserved sectors 0, Media descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
mfsroot.flp:  x86 boot sector, code offset 0x3c, reserved sectors 0, Media descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
可能我说得不够详细,看大家还有其他的制作FreeBSD启动盘的方法和经验吗?请大家说说,这样做做起来就容易些了~~~~

可能我提供的软件缺少,请大家指出错误和更正。呵呵~~ 这次说得最严肃拉。呵呵`~~~
 楼主| 发表于 2003-10-19 21:07:07 | 显示全部楼层
这是安装的readme.txt
79  1.3 Floppy Disk Image Instructions
    80
    81     Depending on how you choose to install FreeBSD, you may need to create a
    82     set of floppy disks (usually two) to begin the installation process. This
    83     section briefly describes how to create these disks, either from a CDROM
    84     installation or from the Internet. Note that in the common case of
    85     installing FreeBSD from CDROM, on a machine that supports bootable CDROMs,
    86     the steps outlined in this section will not be needed and can be skipped.
    87
    88     For a normal CDROM or network installation, all you need to copy onto
    89     actual floppies from the floppies/ directory are the kern.flp and
    90     mfsroot.flp images (for 1.44MB floppies).
    91
    92     Getting these images over the network is easy. Simply fetch the
    93     release/floppies/kern.flp and release/floppies/mfsroot.flp files from
    94     ftp://ftp.FreeBSD.org/ or one of the many mirrors listed at FTP Sites
    95     section of the Handbook, or on the http://www.freebsdmirrors.org/ Web
    96     pages.
    97
    98     Get two blank, freshly formatted floppies and image copy kern.flp onto one
    99     and mfsroot.flp onto the other. These images are not DOS files. You cannot
   100     simply copy them to a DOS or UFS floppy as regular files, you need to
   101     ``image'' copy them to the floppy with fdimage.exe under DOS (see the
   102     tools directory on your CDROM or FreeBSD FTP mirror) or the dd(1) command
   103     in UNIX.
   104
105     For example, to create the kernel floppy image from DOS, you'd do
   106     something like this:
   107
   108       C> fdimage kern.flp a:
   109
   110     Assuming that you'd copied fdimage.exe and kern.flp into a directory
   111     somewhere. You would do the same for mfsroot.flp, of course.
   112
   113     If you're creating the boot floppy from a UNIX machine, you may find that:
   114
   115       # dd if=floppies/kern.flp of=/dev/rfd0
   116
   117     or
   118
   119       # dd if=floppies/kern.flp of=/dev/floppy
   120
   121     work well, depending on your hardware and operating system environment
   122     (different versions of UNIX have different names for the floppy drive).
   123
发表于 2003-10-19 21:09:06 | 显示全部楼层
????
你是不是发错版了
 楼主| 发表于 2003-10-19 21:22:29 | 显示全部楼层
对不起,有点吧,因为就这里的人编程最好了。
发到BSD版估计没人懂。
发表于 2003-10-19 21:28:49 | 显示全部楼层
真看不明白什么,
发表于 2003-10-21 16:40:39 | 显示全部楼层

不错!!

这个帖子真的很好
简单易懂!!
发表于 2003-10-23 12:23:50 | 显示全部楼层
我也不明白, cnfug有一篇介绍制作一张罗盘的FreeBSD, 看上面的说的是各种文件的格式信息, 我想devel还是介绍详细点, 最好自己做一个, 然后一步一步说给大家听吧!
 楼主| 发表于 2003-10-23 13:23:11 | 显示全部楼层
最初由 rianren 发表
我也不明白, cnfug有一篇介绍制作一张罗盘的FreeBSD, 看上面的说的是各种文件的格式信息, 我想devel还是介绍详细点, 最好自己做一个, 然后一步一步说给大家听吧!

不懂,对dos的命令不熟,我的目的是写个bat文件,完全用硬盘引导,安装,不要软盘,光盘等媒体引导。

那篇文章暂时找不到。
发表于 2003-10-23 14:00:15 | 显示全部楼层
不是有个rawwritewin的程序吗?
直接在win窗口下运行就可以了.
这里提供一个地址让大家下载
http://osdiy.3322.org/download/rawwritewin.exe
发表于 2003-10-23 17:36:09 | 显示全部楼层
最初由 devel 发表
不懂,对dos的命令不熟,我的目的是写个bat文件,完全用硬盘引导,安装,不要软盘,光盘等媒体引导。

那篇文章暂时找不到。


你想从硬 盘启动? 直接将它写进MBR, 开机运行这个! 我对这个也不了解。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表