This question already has an answer here:

I want to format a USB-Drive (/dev/sdc) and make multiple partitions each of a different type using fdisk. My fdisk uses sectors(not cylinders) to create a new partition.
/dev/sdc1 <- NTFS (10GiB)
/dev/sdc2 <- Fat32 (04GiB)

Can someone please provide the step by step method to be used in a terminal ?


marked as duplicate by mikewhatever, George Udosen, Anwar, 2707974, Charles Green Apr 15 '17 at 15:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Read man fidsk – waltinator Apr 14 '17 at 15:55
  • Sorry but got no clues as to how to allocate the size using sectors and no clues are there in man fdisk also... – devilz Apr 14 '17 at 16:04

Used a calculator written in C-Language

20971520 is equal to 10GiB
As shown in the picture, 512 bytes is equal to one sector.

Not the answer you're looking for? Browse other questions tagged or ask your own question.