**NOTE** January 2022 - Changes to Gstreamer and Pipewire packages from PackmanPlease read the following thread about the current changes
-
Software Manager and df show different amount of available hard disk space
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
devtmpfs 2.0G 8.0K 2.0G 1% /dev
tmpfs 2.0G 88K 2.0G 1% /dev/shm
tmpfs 2.0G 3.6M 2.0G 1% /run
/dev/sda6 20G 12G 7.3G 62% /
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 3.6M 2.0G 1% /var/lock
tmpfs 2.0G 3.6M 2.0G 1% /var/run
/dev/sda3 82G 26G 56G 32% /Windows_data
/dev/sda2 43G 26G 18G 60% /Windows
You can see my Linux partition is obviously sda6, right?
What's happening?
-
Re: Software Manager and df show different amount of available hard disk space
 Originally Posted by F_style
What's happening?
Maybe the old GB (powers of 1000) vs. GiB (powers of 1024) issue?
What does "df -H" say in comparison to the software manager?
-
Re: Software Manager and df show different amount of available hard disk space
 Originally Posted by F_style
What's happening?
Typically, a file system can fill to around 105%. At 100%, non-root users can no longer write, but the root user still can.
I'm guessing that Yast is showing what is available to the root user.
openSUSE Leap 15.4 Beta; KDE Plasma 5.24.4;
testing Tumbleweed.
-
Re: Software Manager and df show different amount of available hard disk space
 Originally Posted by nrickert
Typically, a file system can fill to around 105%. At 100%, non-root users can no longer write, but the root user still can.
I'm guessing that Yast is showing what is available to the root user.
I think that is not true. You can not fill anything above 100%, not even a file system 
It depends on the file system type and the default and if it is changed, but indeed a default ext2/3/4 file system (and many more) stop giving out disk blocks to "nornal" users when the file system has 5% or less free (and that 5% can be re-configured larger or smaller with e.g. tune2fs at any moment). It will allocate to root owned processes however.
But df does not take this konwledge into account. You can test this very easy by running df as user and as root and compare.
Henk van Velden
-
Re: Software Manager and df show different amount of available harddisk space
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:
Code:
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:
Code:
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))
Last edited by hcvv; 20-May-2014 at 03:18.
Reason: repaired CODE tag
-
Re: Software Manager and df show different amount of available hard disk space
 Originally Posted by hcvv
I think that is not true. You can not fill anything above 100%, not even a file system 
I've seen a file system at 104% on Solaris.
openSUSE Leap 15.4 Beta; KDE Plasma 5.24.4;
testing Tumbleweed.
-
Re: Software Manager and df show different amount of available hard disk space
Shut down laptop, went out for a while, came back, turned on laptop, and did second attempt.
Software Manager: now reads 8.41 Gib free remaining space (it was always Gib, not Gb, sorry...)
Terminal:
Code:
user@linux-loyv:~> df /dev/sda6
Filesystem 1K-blocks Used Available Use% Mounted in
/dev/sda6 20785020 11963032 7766144 61% /
user@linux-loyv:~> df -h /dev/sda6
Filesystem Size Used Available Use% Mounted in
/dev/sda6 20G 12G 7.5G 61% /
user@linux-loyv:~> df -H /dev/sda6
Filesystem Size Used Available Use% Mounted in
/dev/sda6 22G 13G 8.0G 61% /
user@linux-loyv:~> su
Password:
linux-loyv:/home/user # df /dev/sda6
Filesystem 1K-blocks Used Available Use% Mounted in
/dev/sda6 20785020 11963236 7765940 61% /
df -h and df -H were the exact same in root as with user. Only df's output changed as root.
As you can see, it's not that close to what Software Manager throws...
-
Re: Software Manager and df show different amount of available harddisk space
On Mon, 19 May 2014 23:56:02 +0000, nrickert wrote:
> hcvv;2644253 Wrote:
>> I think that is not true. You can not fill anything above 100%, not
>> even a file system 
>>
>>
> I've seen a file system at 104% on Solaris.
I've seen this as well.
Typically, it's done by the software being told that 95% of the space is
actually 100% for normal users. So, if a disk is 1 TiB, 950 MiB will be
considered "full" by the operating system for normal users.
I've also seen compressed filesystems report usage based on uncompressed
space used, and you can end up with some really silly utilizations there
- 150% utilization of space, for example, or 200% (if you're getting
pretty good compression across the board).
Jim
--
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
-
Re: Software Manager and df show different amount of available hard disk space
 Originally Posted by hcvv
I think that is not true. You can not fill anything above 100%, not even a file system 
Yer correct, H.
"Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
— Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net
-
Re: Software Manager and df show different amount of available harddisk space
On Tue, 20 May 2014 01:26:02 +0000, F style wrote:
> df -h and df -H were the exact same in root as with user. Only df's
> output changed as root.
> As you can see, it's not that close to what Software Manager throws...
What filesystem is used for the root filesystem?
Jim
--
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|