Use cfdisk from the util-linx package to partition a disk. Use mkfs.ext3 from e2fsprogs to format the disk:
$ sudo cfdisk /dev/sdb $ sudo mkfs.ext3 /dev/sdb1