K
K
kkoshakk2016-07-13 16:42:54
ubuntu
kkoshakk, 2016-07-13 16:42:54

How does Mb Ubuntu count?

Tell me, as far as I understand, Ubuntu considers that 1 Gb is 1000 MB, I made a partition of 15 Gb (15000 Mb) during installation, after installation, I run the Disks utility - it shows a volume of 15 Gb, and if you look through Nautilus-Computer-Properties then it shows the total volume of 14.6 Gb ??? Why?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Movchan, 2016-07-13
@Alexander1705

> According to Mb Ubuntu
Ubuntu does not count megabytes in any way, Ubuntu is a distribution kit, a set of linux kernel, programs and wallpapers for the desktop. Programs can count differently. Installer and utility Drives show GB (gigabyte, 10⁹ bytes), Nautilus - GiB (gibibyte, 2³⁰ bytes)
PS It is unlikely that you have created a 15 Gb (gigabit) disk, gigabytes are indicated by GB.

A
Alexey S., 2016-07-13
@Winsik

15 billion bytes = 14.6 GB =)

S
Sergey Yaskovich, 2016-07-13
@sergey_yaskovich

Counts by 2 options, depends on the application.
Option 1: 1 MB - 1000 B
Option 2: 1 MiB - 1024 B
To partition the disk, it was necessary to allocate the size as follows: 15 MB x 1024 = 15 360.
15 360 MB - 15 GB

K
kkoshakk, 2016-07-13
@kkoshakk Автор вопроса

Всеравно не могу понять! Я указал в установщике Ubuntu 16106 MB, установил систему, захожу в утиліту "Диски" - 16 GB, как-бы правильно. Захожу в Анализатор использования дисков или в свойства Компьютер - 15,7 GB??? Откуда взялось 15,7 GB Если бы там отображалось в GiB тогда должно было быть 15 GiB

L
Lindon_cano, 2016-07-14
@Lindon_cano

Ох. Вот и выросло поколение…
Не верьте графическим утилитам, одни из них работают в мебибайтах/гибибайтах, другие в мегабайтах/гигабайтах. Верьте только df -h.
Плюс вы, судя по всему, не знаете, что в ext* 5% места резервируются под рута и недоступны вам, это можно исправить при помощи tune2fs.
Смотрите фокус со свободным доступным местом
[email protected]:~# df -h|grep sda1
/dev/sda1 292G 100G 177G 37% /
[email protected]:~# tune2fs -m0.1 /dev/sda1
tune2fs 1.43.1 (08-Jun-2016)
Setting reserved blocks percentage to 0.1% (77623 blocks)
[email protected]:~# df -h|grep sda1
/dev/sda1 292G 100G 192G 35% /
There were 177 gigs, it became 192 gigs, because I reduced the reserved space. I wonder why, with the current volumes, to maintain a default reserve of 5%, it could have been reduced to 0.1 a long time ago and everything would be fine, but it happened historically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question