On 2014-05-19 21:36, F style wrote:
>
> Software Manager shows hdd free space in the bottom right corner, and
> reads 8.25 Gb. But “df -h” in terminal shows
>
> Code:
> --------------------
> user@linux-loyv:~> df -h
> S.ficheros Tamaño Usados Disp Uso% Montado en
> /dev/sda6 20G 12G 7.3G 62% /
> --------------------
>
> You can see my Linux partition is obviously sda6, right?
> What’s happening?
I concur with wolfi323.
Run “df” with “-h”, “-H”, and none, and compare them. See mine:
minas-tirith:~ # df -h /dev/sda7
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 30G 14G 16G 46% /
minas-tirith:~ # df -H /dev/sda7
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 32G 14G 17G 46% /
minas-tirith:~ # df /dev/sda7
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 30830592 13656256 16119932 46% /
minas-tirith:~ #
Notice that df is not using “standards compliant” units. The first time,
with “-h”, the units should be written as “GiB”, and with “-H” it should
write “GB”. Notice how different are the numbers.
Then compare which one matches what the software manager says… which
may also be giving the wrong units.
And anyway, df is calculating things badly. My 30830592 K (k-what? KiB
or KB?). So one more try, forcing it to give bytes:
minas-tirith:~ # df --block-size=1 /dev/sda7
Filesystem 1B-blocks Used Available Use% Mounted on
/dev/sda7 31570526208 13984174080 16506642432 46% /
31570526208 B is 30830592 KiB, and is 30108 MiB, and is 29.40 GiB - not
the “30” it gives on the first line, nor the 32 it gives on the second.
Well, the second one… 31.57 does round to 32, so that one IS correct.
But 29.40 GiB should round down, not up, to 29.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))