Create a partition:

https://phoenixnap.com/kb/linux-create-partition

Format a disk:

https://phoenixnap.com/kb/linux-format-disk