23 December 2004

OS part IX

Now, onto creating a new partition...

Partition id ('0' to disable) [0 - FF]: [0] (? for help) a6
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 3647]: [0] 3191
BIOS Starting head [0 - 239]: [0] Enter
BIOS Starting sector [1 - 63]: [0] 1
BIOS Ending cylinder [0 - 3647]: [0] 3647
BIOS Ending head [0 - 239]: [0] 239
BIOS Ending sector [1 - 63]: [0] 63
fdisk:*1>

Now, some explanations are due:
The partition id must be set to a6 for OpenBSD to recognize it.
CHS mode means: Cylinder, Head, Sector.
Since the first partition ended at 3190, the new partition would start at 3191.
Finally, the asterick (fdisk:*1> means that information has been edited, but not saved.

fdisk:*1> f 2
Partition 2 marked active.
fdisk:*1> w
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1> q

It really is that simple. Now, there are two partitions on my hard drive: the main Windows partition which is now 25 gigs, and a second partition for OpenBSD which is ~3 gigs (and is now the active, or bootable partition).
Post a Comment