how to check the free space on opensuse system?

hello dear linux-fans, good day

i wanted to check the space that i have on the machine: i tried it with this command


 df -h

linux-wyee:~ # df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           20G  6.9G   12G  37% /
devtmpfs        1.9G  8.0K  1.9G   1% /dev
tmpfs           1.9G  604K  1.9G   1% /dev/shm
tmpfs           1.9G  692K  1.9G   1% /run
/dev/sda13       20G  6.9G   12G  37% /
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           1.9G  692K  1.9G   1% /var/run
tmpfs           1.9G     0  1.9G   0% /media
tmpfs           1.9G  692K  1.9G   1% /var/lock
/dev/sda14      384G   46G  337G  12% /home
linux-wyee:~ # ^C
linux-wyee:~ # 


question: did i catch all the paths and parts of the disc!?

what is wrong -

well i think its like this:

on the home partition (the partition which holds all of the personal files), we have used 46GB out of 384Gb, which is 12% of our disk.

well that means that we still have 337GB free.

is this correct!?

question: did i catch all the paths and parts of the disc!?

On 2013-04-07 02:26, dilbertone wrote:
>
> hello dear linux-fans, good day
>
> i wanted to check the space that i have on the machine: i tried it with
> this command

A comment: do not use PHP CODE tags, but plain code tags. It is the
button labeled ‘#’.

> question: did i catch all the paths and parts of the disc!?

Yes.

> what is wrong -

Nothing - except that “df” only sees mounted partitions. If there are
partitions (filesystems) that are not mounted, they are invisible. And
of course, if you have unpartitioned free space on disk, that is not
seen, either.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On 2013-04-07 02:46, dilbertone wrote:
>
> well i think its like this:
>
> on the home partition (the partition which holds all of the personal
> files), we have used 46GB out of 384Gb, which is 12% of our disk.
>
> well that means that we still have 337GB free.
>
> is this correct!?

Yes.

> question: did i catch all the paths and parts of the disc!?

Question: what is a “disc” for you? Because in Windows parlance they say
“C: disc”, whereas in Linux we say /that/ is a partition, not a disc. A
disc would have all the C, D, E… “discs” and unpartitioned space. For
us, a disc is the entire hard disk.

If you ask if the “df” got all the information about the “/home”
partition, then the answer is yes, of course it did. You have 337GB free
in there.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On 04/07/2013 02:26 AM, dilbertone wrote:
>
> linux-wyee:~ # df -h
>
> what is wrong -

what is wrong is that you violated the basic security ‘rule’ to
always use the lowest level of privilege…another way to say that
is never use root privilege when it is not required…

so, when you want to do “df -h” do it as yourself and not as root.

“never use root unless required” is a great (and easy) way to
increase the overall security of your system.

now, the above has nothing to do with the results you got…that is,
i’d expect the results of “df -h” to be the same if root did it, or
you did it, or a black hat crept in and did it…


dd

Maybe this will be of help inunderstanding: SDB:Basics of partitions, filesystems, mount points - openSUSE

When you understand that, you will be aware of the fact that there are several levels to look at if you want to know if there is “free space” somewhere.

A disk may be partitioned and not all of the disk may be used for partitioning. Thus there may still be free space on the disk. Look with

fdisk -l

When there are partitions, there may be file systems on those partitions. There may be free space there, meaning space that is not occupied by either the file system administration or by any files/directories. You can indeed look at that using

df -h

But it will only show you data from mounted file systems. Unmounted file systems may include Swap partitions, partitions used as raw partitions by any application, file systems not mounted because they belong to another system in a multi boot situation or for any other reason.

On the desktop main screen there is an icon ‘My computer’ - double click it and you will find your information.
or
Open Konqueror and type - sysinfo:/ - in address bar.

That is the same (or least it is about the same, you never know whtat those GUI guys program) as df -h (free space in the file system). But it does not show unused disk space (which we see with fdisk -l).

I think this may depend on what version of KDE someone is using, neither of these suggestions work for me on 4.10. I do wish we had a GUI disk reporting tool built-in like the ones you mentioned.
I always install Filelight to see what is going on.

This (“My Computer”/sysinfo) was removed for 12.3 because it was unmaintained.
It got replaced by the “KInfoCenter” for which you should have an icon on your desktop now.
This shows the free space of your disks in Device Information->Device Browser->Storage Drives, when you select a partition…

Also there’s “kdf”, but I’m not sure if that’s installed by default.
And “fsview”, which is similar to filelight and can also be embedded in konqueror… (this is in the package "konqueror-plugins)