Results 1 to 10 of 10

Thread: how to check the free space on opensuse system?

  1. #1

    Default 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

    PHP Code:
     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 -
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  2. #2

    Default Re: how to check the free space on opensuse system?

    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!?
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to check the free space on opensuse system?

    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)

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: how to check the free space on opensuse system?

    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)

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: how to check the free space on opensuse system?

    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

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,254

    Default Re: how to check the free space on opensuse system?

    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
    Code:
    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
    Code:
    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.
    Last edited by hcvv; 07-Apr-2013 at 03:11.
    Henk van Velden

  7. #7
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    181

    Default Re: how to check the free space on opensuse system?

    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.
    Linux 4.12.14
    openSUSE Leap 15.0 - 64 bit
    KDE Plasma 5.12.15
    KDE Framework 5.44.0
    Qt - 5.9.4

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,254

    Default Re: how to check the free space on opensuse system?

    Quote Originally Posted by GazetaCypr View Post
    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).
    Henk van Velden

  9. #9
    Join Date
    Sep 2012
    Location
    Maryland, US
    Posts
    623

    Default Re: how to check the free space on opensuse system?

    Quote Originally Posted by GazetaCypr View Post
    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.
    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.
    Kernel: 4.12.14-lp150.12.7-default x86_64 bits:
    64 Desktop: Gnome 3.26.2
    Distro: openSUSE Leap 15.0

  10. #10

    Default Re: how to check the free space on opensuse system?

    Quote Originally Posted by anika200 View Post
    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.
    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)
    Last edited by wolfi323; 10-Apr-2013 at 07:11. Reason: forgot to mention fsview

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •