1> 使用已经写好的FreeBSD9.0 U盘启动进入LiveCD

  1. # gpart destroy -F ada0
  2. ada0 destroyed

  3. # gpart create -s MBR ada0
  4. ada0 created

  5. # gpart show ada0
  6. =>       63  976773105  ada0  MBR  (465G)
  7.          63  976773105       - free -  (465G)
  8. # reboot

2> 开始安装Windows7
我分了70GB给Win7 ,分区的时候会自动占用2个主分区 其中一个是100MB

3> 从FreeBSD9.0 U盘 启动,开始安装FreeBSD9.0 (安装步骤参考官方手册)
安装过程中将剩余硬盘空间分给FreeBSD
Win7 + FreeBSD9.0 双系统-LMLPHP

Win7 + FreeBSD9.0 双系统-LMLPHP


分区状况:

  1. ko# gpart show
  2. => 63 976773105 ada0 MBR (465G)
  3. 63 1985 - free - (992k)
  4. 2048 204800 1 ntfs (100M)
  5. 206848 147210240 2 ntfs (70G)
  6. 147417088 14 - free - (7.0k)
  7. 147417102 828374967 3 freebsd [active] (395G)
  8. 975792069 981099 - free - (479M)
  9. => 0 828374967 ada0s3 BSD (395G)
  10. 0 20971520 1 freebsd-ufs (10G)
  11. 20971520 16777216 2 freebsd-swap (8.0G)
  12. 37748736 230686720 4 freebsd-ufs (110G)
  13. 268435456 4194304 5 freebsd-ufs (2.0G)
  14. 272629760 272629760 6 freebsd-ufs (130G)
  15. 545259520 283115446 7 freebsd-ufs (135G)
  16. 828374966 1 - free - (512B)


4> 启动管理

  1. # boot0cfg -B ada0
Win7 + FreeBSD9.0 双系统-LMLPHP

To enable just slices 1 and 2 in the menu:

  1. # boot0cfg -m 0x5 ada0
  2. # man boot0cfg 




12-16 13:46