Partitioning - Size difference

Here you can discuss every aspect of Debian. Note: not for support requests!

Partitioning - Size difference

Postby questlinq » 2017-10-21 16:19

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?
questlinq
 
Posts: 12
Joined: 2017-09-19 08:51

Re: Partitioning - Size difference

Postby Ardouos » 2017-10-21 16:51

Can you please post the output of fdisk that you are concerned about?

can you also post the output of:
Code: Select all
lsblk
User avatar
Ardouos
 
Posts: 935
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: Partitioning - Size difference

Postby questlinq » 2017-10-21 17:16

@Ardouos

Size output is the same when running 'lsblk' command ..
questlinq
 
Posts: 12
Joined: 2017-09-19 08:51

Re: Partitioning - Size difference

Postby debiman » 2017-10-22 06:50

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)
User avatar
debiman
 
Posts: 1549
Joined: 2013-03-12 07:18

Re: Partitioning - Size difference

Postby p.H » 2017-10-26 14:19

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).
p.H
 
Posts: 161
Joined: 2017-09-17 07:12


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable