Results 1 to 5 of 5

Thread: DIsk is full? du says not

  1. #1

    Default DIsk is full? du says not

    opensuse v11.3
    linux 2.6.34.7-0.7-desktop x86_64

    As reported by df below the </home> volume is full. However, du claims only 2.4GB are used.

    Where do I go from here?

    Code:
    root:/> du -sh /home
    du: cannot access `/home/sma-user8/.gvfs': Permission denied
    2.4G	/home
    
    > df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/system-root
                           20G  6.9G   12G  37% /
    devtmpfs              1.8G  348K  1.8G   1% /dev
    tmpfs                 1.9G  848K  1.9G   1% /dev/shm
    /dev/sda1              69M   28M   37M  44% /boot
    /dev/mapper/system-home
                           25G   24G     0 100% /home
    /dev/sdc1             231G   12G  207G   6% /misc
    /dev/sdb1             230G   19G  199G   9% /data01

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: DIsk is full? du says not

    On my computer, the df -h command shows:
    Code:
    /dev/sda3 60G   25G   32G  44% /home
    Showing the location as Partition /dev/sda3 as I use a seperate /home partition. Your shows:

    Code:
    /dev/mapper/system-home 25G   24G     0 100% /home
    I do not understand this result. Why not give us the output from an fdisk -l command as in:

    Code:
    su -
    password:
    fdisk -l
    And then how about a copy of your fstab file as well:

    Code:
    cat /etc/fstab
    Just copy and past the results into a code block (#) while in the advanced message editor and perhaps we will see the problem you are having.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,490
    Blog Entries
    3

    Default Re: DIsk is full? du says not

    That large a difference, 25G, vs 2.4G, typically indicates that there is a file (or several files) that are in use by a program, even though the file has been deleted. The file does not show in a directory, so "du" won't find it. However, "df" is listing the actual used space and is not looking at directories, so it will find the space that is being used.

    The good news, is that this should correct itself on reboot.

    "fsck -n /dev/mapper/system-home" might list the inode number and owner of the file(s).

    The chances are that you know what happened. There was probably a program running that was creating a large file, and you deleted that file but failed to kill the program that was creating it.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  4. #4

    Default Re: DIsk is full? du says not

    Quote Originally Posted by nrickert View Post
    That large a difference, 25G, vs 2.4G, typically indicates that there is a file (or several files) that are in use by a program, even though the file has been deleted.

    The good news, is that this should correct itself on reboot.
    Yes, it did.

    The chances are that you know what happened.
    I am fairly certain which program it was: VirtualBox.

    Until several weeks ago I had crontab set up to backup the VMs once a week; backup requires shutting down the VM. I went out of town for several days and disabled the backup run, then forget to enable it on return. The VM had been running continuously since then.

  5. #5
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,490
    Blog Entries
    3

    Default Re: DIsk is full? du says not

    Quote Originally Posted by jimoe666 View Post
    I am fairly certain which program it was: VirtualBox.
    That sounds likely.

    So we have a problem both solved and explained. That seems to be a good outcome.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

Posting Permissions

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