LinuxSir.cn,穿越时空的Linuxsir!

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

请问有人用过NTloader引导BSD系统的嘛

[复制链接]
发表于 2003-9-4 22:38:05 | 显示全部楼层 |阅读模式
rt  
help me !
thanks!
发表于 2003-9-4 22:56:19 | 显示全部楼层
没试过这个,不过觉得原理跟linux下应该是一样的
cp装freebsd盘的引导区,然后修改引导文件就行了吧,
试试看,
发表于 2003-9-4 23:31:34 | 显示全部楼层
如果只有一张硬盘,用dd命令和linux下一样。
如果有两张硬盘以上,并且bsd不是装在第一块硬盘上,用ntloader无法引导,只有进cmos了
用grub或lilo无所谓。
发表于 2003-9-5 08:35:39 | 显示全部楼层
You can try to use 'BootPart' under Windows.

http://winimage.com/bootpart.htm
发表于 2003-9-5 14:17:22 | 显示全部楼层
和Linux一样的。
mkdir c
dd if=/dev/ad0a1 of=c/freebsd.lnx bs=512 count=1
edit c:\boot.ini
发表于 2003-9-5 15:36:35 | 显示全部楼层
The general idea is that you copy the first sector of your native root FreeBSD partition into a file in the DOS/NT partition. Assuming you name that file something like c:\bootsect.bsd (inspired by c:\bootsect.dos), you can then edit the c:\boot.ini file to come up with something like this:
  1. [color=blue]
  2. [boot loader]
  3. timeout=30
  4. default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
  5. [operating systems]
  6. multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT"
  7. C:\BOOTSECT.BSD="FreeBSD"
  8. C:\="DOS"
  9. [/color]
复制代码

If FreeBSD is installed on the same disk as the NT boot partition simply copy /boot/boot1 to C:\BOOTSECT.BSD However, if FreeBSD is installed on a different disk /boot/boot1 will not work, /boot/boot0 is needed.


Warning: DO NOT SIMPLY COPY /boot/boot0 INSTEAD OF /boot/boot1, YOU WILL OVERWRITE YOUR PARTITION TABLE AND RENDER YOUR COMPUTER UN-BOOTABLE!


/boot/boot0 needs to be installed using sysinstall by selecting the FreeBSD boot manager on the screen which asks if you wish to use a boot manager. This is because /boot/boot0 has the partition table area filled with NULL characters but sysinstall copies the partition table before copying /boot/boot0 to the MBR.


When the FreeBSD boot manager runs it records the last OS booted by setting the active flag on the partition table entry for that OS and then writes the whole 512-bytes of itself back to the MBR so if you just copy /boot/boot0 to C:\BOOTSECT.BSD then it writes an empty partition table, with the active flag set on one entry, to the MBR.
发表于 2003-9-5 20:17:50 | 显示全部楼层
firebird说的甚是甚是,其实道理和allen1970的完全一样。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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