Often, a brand new disk device has no partition table. In this recipe we will write a partition table to the disk device. A partition table is required to be able to divide a disk device into distinct areas known as partitions.
Connect a new disk device to your computer.
If you wish to write a new partition table to an existing device, be sure to first backup the data on the device because you will lose the partitions and the data.
For disk devices larger than 2 TB, you should consider using gpt instead of the default msdos partition table. More information on gpt and msdos partition tables can be found later in this recipe.