Hard drives within the target Mac, for example, can be formatted or partitioned exactly like any other external drive.
When dealing with hard drives within the target Mac, the procedure for formatting or partitioning them mirrors that used for external drives.