Page 1 of 1

Partitioning - Size difference

PostPosted: 2017-10-21 16:19
by questlinq
Hello,

After running 'fdisk -l' command I see difference in size of partitions ..

/dev/sda1 953M instead of 1024MB which I've set at partitioning step.
/dev/sda2 14G instead of 20GB which I've also set at partitioning ..
.. and so on ..

Is this normal?

Re: Partitioning - Size difference

PostPosted: 2017-10-21 16:51
by Ardouos
Can you please post the output of fdisk that you are concerned about?

can you also post the output of:
Code: Select all
lsblk

Re: Partitioning - Size difference

PostPosted: 2017-10-21 17:16
by questlinq
@Ardouos

Size output is the same when running 'lsblk' command ..

Re: Partitioning - Size difference

PostPosted: 2017-10-22 06:50
by debiman
please show us the FULL output for both commands.
please use code tags for code:
[Xcode]command & output here[/code]
(remove the X to make it work)

Re: Partitioning - Size difference

PostPosted: 2017-10-26 14:19
by p.H
Partition sizes in the Debian installer, Gparted, parted... use SI (decimal) prefixes by default : k=1000, M=1000k, G=1000M...
Sizes in many other programs such as fdisk use binary prefixes by default : Ki=1024, Mi=1024Ki, Gi=1024Mi... sometimes omitting to display the "i".

953 MiB would perfectly match 1000 MB (1 GB), but not 1024 MB (976 MiB).
However there is no way that 14 GiB (15 GB) would match anything near 20 GB (18,6 GiB).