Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created two partitions using the following commands.

parted /dev/sda --script -- mkpart primary 1 50001
parted /dev/sda --script -- mkpart primary 1948001 1998001

Each partition should have 50001 MB. However, when I use "partclone" trying to copy from the first partition to the second, it complains that these two partitions are not the same size. The second one is 50000 MB.

When I do "fdisk -l", below is the output.

Disk /dev/sda: 1999.3 GB, 1999307276288 bytes
255 heads, 63 sectors/track, 243068 cylinders, total 3904897024 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d3669

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    97658879    48828416   83  Linux
/dev/sda4      3804690432  3902345215    48827392   83  Linux

It shows the difference of the number of blocks.

So if I want to create two partitions with exactly the same size, what should I do?

Thanks a lot.

share|improve this question
hint: start the partitions on even cylinder breaks and skip a full cylinder in between the partitions. – Rinzwind Aug 5 '14 at 17:56
That works. I didn't show the intermediate partitions, in fact their MB positions of start and end are too close. – user276851 Aug 5 '14 at 18:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.