Step 1

hook up the harddrive
use fdisk on the 'device' to create a partiion
% fdisk /dev/hdd

Step 2

Create a filesystem on the partion created in phase 1 with mkfs.ext3
mkfs.ext3 /dev/hdd1


Here is the output:

		

% mkfs.ext3 /dev/hdd1 mke2fs 1.38 (30-Jun-2005) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 4898816 inodes, 9778852 blocks 488942 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=12582912 299 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. %

Step 3 - Make the filesystem available

If you want the filesystem automatically mount after rebooting, an entry in the filesystem table is needed.  The filesystem table is located in /etc/fstab.

			

/dev/hdd1 /home ext3 auto,user 0 0