Let's say we just bought a new hard drive or have some
free space left on our current system and we want to add a new
partition to our current system. What do we need to do?
Use fdisk to create a new partition.
The kernel needs to be aware of the new partition
table, so either reboot or run partprobe.
Note that if partprobe
hangs, then you must reboot.
We need to add a filesystem to the new partition.
mke2fs
<options> device
mke2fs
-j /dev/hda6
We now need to mount the partition. Let's call the
partition "NEW"
mount /dev/dha6 /NEW
Create any needed mount points.
Add a line to /etc/fstab to mount this new partition
at boot time.