I found a great article at eHow that explains how to partition a hard drive and set up the file system on it.

This article explains how to format a hard drive in Linux using the standard commands fdisk, mkfs, and fsck. The procedure described can be used either to format a secondary hard drive or to format a drive prior to system installation.

Check out the full article here.