- 论坛徽章:
- 0
|
OPENBSD WIN2003双启动
我的电脑配置:
COMPAQ Evo P4 1.8G 376M内存 37G MAXTOR硬盘
计划划分分区:
0-7.5G WIN2003 (必须少于8G)
7.5-15G OpenBSD
15G-37G NTFS
步骤:
1.到www.fsn.hu下载OPENBSD ISO文件,刻录到光盘中.
2.安装WIN2003,用2003的磁盘管理将硬盘分为三个区.
3.用OPENBSD光盘启动安置.
4.终端类型(缺省)VT220.
5.选择安装的硬盘wd0.
6.进入OPENBSD 的FDISK,
fdisk: 1 >;p 系统显示第一分区为WIN2003,第二分区为OPENBSD
fdisk: 1 >;e 编辑OPENBSD分区
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Partition id ('0' to disable) [0 - FF]: [0] (? for help) a6 将该分区的ID设为A6
fdisk:*1>; f 1 激活OPENBSD分区。
Partition 1 marked active.
fdisk:*1>; p
Disk: wd0 geometry: 2586/240/63 [39100320 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 06 0 1 1 - 202 239 63 [ 63: 3069297 ] DOS >; 32MB
*1: A6 203 0 1 - 2585 239 63 [ 3069360: 36030960 ] OpenBSD
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
fdisk:*1>;
fdisk:*1>; w 保存
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1>; q 退出。
7.用disklabel划分OPENBSD的分区,计划如下分配:
partition plan:
* wd0a: / (root) - 150M. Should be more than enough.
* wd0b: (swap) - 300M.
* wd0d: /tmp - 120M. /tmp is used for building some software, 120M will
probably be enough for most things.
* wd0e: /var - 80M. If this were to be a web or mail server, we'd have made
this partition much larger, but, that's not what we are doing.
* wd0g: /usr - 2G. We want this partition to be large enough to load quite a
few user applications, plus be able to update and rebuild the system if
desired or needed. The Ports tree will be here as well, which will take
almost 100M of this space before ports are built.
* wd0h: /home - 4G. This will allow plenty of user file space.
>; p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST320011A
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 39102336
free sectors: 36030960
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 17593.2M 1498.7M unused 0 0 OPENBSD分区
c: 19092.9M 0.0M unused 0 0 WIN2003分区,勿删!
i: 1498.7M 0.0M MSDOS NTFS分区
>; d a
>; a a 划分卷/
offset: [3069360] Enter
size: [36030960] 150M
Rounding to nearest cylinder: 307440
FS type: [4.2BSD] Enter
mount point: [none] /
>; a b 划分卷/swap
offset: [3376800] Enter
size: [35723520] 300M
Rounding to nearest cylinder: 614880
FS type: [swap] Enter
>; a d 划分卷/tmp
offset: [3991680] Enter
size: [35108640] 120m
Rounding to nearest cylinder: 245952
FS type: [4.2BSD] Enter
mount point: [none] /tmp
>; a e 划分卷/var
offset: [4237632] Enter
size: [34862688] 80m
Rounding to nearest cylinder: 164304
FS type: [4.2BSD] Enter
mount point: [none] /var
>; a g 划分卷/usr
offset: [4401936] Enter
size: [34698384] 2g
Rounding to nearest cylinder: 4194288
FS type: [4.2BSD] Enter
mount point: [none] /usr
>; a h 划分卷/home
offset: [8596224] Enter
size: [30504096] 4g
Rounding to nearest cylinder: 8388576
FS type: [4.2BSD] Enter
mount point: [none] /home
>; p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST320011A
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 39102336
free sectors: 22115520
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 150.1M 1498.7M 4.2BSD 1024 8192 16 # /
b: 300.2M 1648.8M swap
c: 19092.9M 0.0M unused 0 0
d: 120.1M 1949.1M 4.2BSD 1024 8192 16 # /tmp
e: 80.2M 2069.2M 4.2BSD 1024 8192 16 # /var
g: 2048.0M 2149.4M 4.2BSD 1024 8192 16 # /usr
h: 4096.0M 4197.4M 4.2BSD 1024 8192 16 # /home
i: 1498.7M 0.0M MSDOS
>; q
Write new label?: [y] Enter
8.系统提示
The root filesystem will be mounted on wd0a.
wd0b will be used for swap space.
Mount point for wd0d (size=122976k), none or done? [/tmp] Enter
Mount point for wd0e (size=82152k), none or done? [/var] Enter
Mount point for wd0g (size=2097144k), none or done? [/usr] Enter
Mount point for wd0h (size=4194288k), none or done? [/home] Enter
Mount point for wd0d (size=122976k), none or done? [/tmp] done
Done - no available disks found.
You have configured the following partitions and mount points:
wd0a /
wd0d /tmp
wd0e /var
wd0g /usr
wd0h /home
9.创建文件系统
系统提示
The next step creates a filesystem on each partition, ERASING existing data.
Are you really sure that you're ready to proceed? [n] y
/dev/rwd0a: 307440 sectors in 305 cylinders of 16 tracks, 63 sectors
150.1MB in 20 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0d: 245952 sectors in 244 cylinders of 16 tracks, 63 sectors
120.1MB in 16 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0e: 164304 sectors in 163 cylinders of 16 tracks, 63 sectors
80.2MB in 11 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0g: 4194288 sectors in 4161 cylinders of 16 tracks, 63 sectors
2048.0MB in 261 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/rwd0h: 8388576 sectors in 8322 cylinders of 16 tracks, 63 sectors
4096.0MB in 521 cyl groups (16 c/g, 7.88MB/g, 1920 i/g)
/dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Thu Oct 10 21:
50:36 2 002)
/dev/wd0h on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid,
ctime=Thu Oct 10 21:50:36 2002)
/dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid,
ctime=Thu Oct 10 21:50:36 2002)
/dev/wd0g on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Th
u Oct 10 21:50:36 2002)
/dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid,
ctime=Th u Oct 10 21:50:36 2002)
10.配置网络
11.设置系统密码。
12.选择安装媒介,我选cd0,目录3.3/i386.
13.选择安装模块,ALL全选,DONE完成。
14.选择时区。
15.完成安置,halt 重启系统。
16.登陆,创建 OpenBSD Partition Boot Record (PBR).
# cp /usr/mdec/boot /boot
# /usr/mdec/installboot -v /boot /usr/mdec/biosboot wd0
# dd if=/dev/rwd0a of=openbsd.pbr bs=512 count=1
# mount_msdos /dev/fd0a /mnt
# cp openbsd.pbr /mnt 拷入软盘
17.运行FDISK将WIN2003分区激活.
>;fdisk -e wd0
>;f 0
>;w
>;q
#halt 重启
18.进入WIN2003,将软盘中的文件拷到C:\,编辑C:\BOOT.INI,在最后加一行
c:\openbsd.pbr="openbsd"
19.重启WIN2003,提示选择系统
WIN2003
OPENBSD
成功!
这种方法我在WINXP 上也成功 |
|