Ok, say that the 10gig drive is on the first IDE channel. THerefore your drive mapping is /dev/hda. If you put the 40gig on the 2nd IDE channel, your drive mapping is now /dev/hdc. Use fdisk to make the partitions:
THen after, create a filesystem on it.