Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

When I create a partition using parted(mkpart) giving unit as Bytes, it is creating "size given - 16896" byte sized partition. Is there any specific reason to less 16896 bytes from the partition size(in bytes) given?

Here, after creating a partition I get the partition size like:

#parted /dev/sda unit B print.

Note: These partitions are used in RAID formation. Also, observed this happens only if it is the first partition created in disk.

share|improve this question

2 Answers 2

Not all partition sizes are valid. (E.g must be an integral number of blocks or sectors, which can be differently sized on different types of media. Older HD's usually have 512 bytes per sector. Some HD's use 4096 byte sectors.

Another thing is that some media have limitations about were partitions can start/end. E.g. on RAID systems the partitions often must line up with the RAID stripes. (They can't start/end in the middle of a stripe.)

Most partitoning tools know this and will adjust the size and the partition begin/end to make it fit within the limits of the media.

This is probably what is happening in your case.

(By the way: Are you really specifiying partition size in BYTES ? Those are really unwieldy large numbers.)

share|improve this answer

512 of that is the MBR/MPT.
The other 16k is probably being reserved for the bootloader or something similar.

share|improve this answer

Your Answer

 
discard

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

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