Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

df is maybe buggy?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
morlix
n00b
n00b
Posts: 59
Joined: Sat Feb 14, 2004 1:17 am
Location: Germany
Contact:
Contact morlix
Website

df is maybe buggy?

  • Quote

Post by morlix » Sat Dec 24, 2005 8:57 am

Hello,

a few days ago my disk filled up and i cleaned it.

Now after i cleaned severall big files i got this:

Code: Select all

morlixsvr2 ~ # cd /
morlixsvr2 / # du -sh *
9.3M    bin
22M     boot
0       dev
8.0M    etc
1.1M    home
36M     lib
28K     lost+found
16K     mnt
197M    opt
257M    proc
516K    root
6.8M    sbin
12K     srv
0       sys
67M     tmp
2.5G    usr
776M    var
morlixsvr2 / # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              19G   19G     0 100% /
none                  125M     0  125M   0% /dev/shm
/dev/hda1              69M   22M   44M  34% /boot
i think df does not report the correct disk usage...

can somebody image why?

grZ and happy christmas
morlix
Top
morodoch
Guru
Guru
User avatar
Posts: 523
Joined: Thu Sep 22, 2005 2:01 pm
Location: England

  • Quote

Post by morodoch » Sat Dec 24, 2005 9:01 am

What do you think is wrong with it?
Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.

-- Curtis
Top
morlix
n00b
n00b
Posts: 59
Joined: Sat Feb 14, 2004 1:17 am
Location: Germany
Contact:
Contact morlix
Website

  • Quote

Post by morlix » Sat Dec 24, 2005 10:41 am

i says / is filled with 100% but if you count all values from du -sh the count is not 19GB
Top
PowerFactor
Veteran
Veteran
User avatar
Posts: 1693
Joined: Thu Jan 30, 2003 7:45 pm
Location: out of it

  • Quote

Post by PowerFactor » Sat Dec 24, 2005 2:13 pm

The numbers don't match because using the -h option causes them all to be rounded which introduces some error. Without the -h option they should match up.
Top
morodoch
Guru
Guru
User avatar
Posts: 523
Joined: Thu Sep 22, 2005 2:01 pm
Location: England

  • Quote

Post by morodoch » Sat Dec 24, 2005 2:14 pm

It's got to come pretty close, because bin, sbin and usr come to 18.6 or thereabouts?
Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.

-- Curtis
Top
PowerFactor
Veteran
Veteran
User avatar
Posts: 1693
Joined: Thu Jan 30, 2003 7:45 pm
Location: out of it

  • Quote

Post by PowerFactor » Sat Dec 24, 2005 3:07 pm

Uh, /bin/ and /sbin are listed in M not G. :wink:


I didn't look closely at the numbers before. Those are further off than rounding should cause. It's possible you deleted some large files that are still opened by program. I've had that happen with system logs. In that case they will not be listed under any directory but the space is still used until the program closes the file.
Top
derFrank
n00b
n00b
User avatar
Posts: 71
Joined: Thu Jan 01, 2004 7:19 pm
Location: Cologne/Germany

  • Quote

Post by derFrank » Sat Dec 24, 2005 3:32 pm

Looking at the man page of du, i get a little confused, because it says in the chapter "POSIX OPTIONS" that the -s option refers to excluding subdirectories, whereas in the "GNU OPTIONS" the "-s" option expands to "--summarize".
I'm not sure, but might be you are actually using the "exclude subdirectory"-switch from the POSIX-Options, whereas you intended to use the summarize function.
To be honest, I don't know about this differentiation between GNU and POSIX Options and neither now how the programm actually can keep them apart.
i.e. how can "du" decide whether you wanted to say "summarize" or "exclude subdirectories" if you only gave the -s switch?
A workaround would be to explicitly use the long statement ("--summarize") if that was what you wanted, but this doesn't answer my question, so if anyone knows more about this, please elaborate...

hth Frank
Top
PowerFactor
Veteran
Veteran
User avatar
Posts: 1693
Joined: Thu Jan 30, 2003 7:45 pm
Location: out of it

  • Quote

Post by PowerFactor » Sat Dec 24, 2005 4:49 pm

Actually according to manpage all of the POSIX options (including -s) do the same thing as the GNU equivalents.. The descriptions are just worded differently.
Top
El_Presidente_Pufferfish
Veteran
Veteran
User avatar
Posts: 1179
Joined: Thu Jul 11, 2002 11:46 pm
Location: Seattle

  • Quote

Post by El_Presidente_Pufferfish » Sat Dec 24, 2005 5:39 pm

perhaps the journal of your filesystem is taking up space?
Top
morodoch
Guru
Guru
User avatar
Posts: 523
Joined: Thu Sep 22, 2005 2:01 pm
Location: England

  • Quote

Post by morodoch » Sat Dec 24, 2005 8:23 pm

Uh, /bin/ and /sbin are listed in M not G. :wink:
D'oh!

The other possibility are dot files in the root directory - maybe you have a swap file as /.swap or something similar?
Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.

-- Curtis
Top
mmbrothers
Apprentice
Apprentice
Posts: 224
Joined: Sat Dec 24, 2005 6:10 am
Location: Boston

  • Quote

Post by mmbrothers » Sat Dec 24, 2005 9:54 pm

Have you tried checking the filesystem for errors. It is possible that the metadata has somehow gotten out of sync with the data on the drive. Often when a disk fills up it can cause wierd problems because the filesystem cannot write data to the drive as it normally would be able to. Definitely try an fsck.
Top
morlix
n00b
n00b
Posts: 59
Joined: Sat Feb 14, 2004 1:17 am
Location: Germany
Contact:
Contact morlix
Website

  • Quote

Post by morlix » Sun Dec 25, 2005 1:35 pm

i think the problem was a open file from a program...
befor i startet this thread i deleted a logfile from seti which has 13GB and seti was still running...

now after a few hours it shows the real sizes

Code: Select all

morlixsvr2 ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              19G  3.6G   14G  21% /
none                  125M     0  125M   0% /dev/shm
/dev/hda1              69M   22M   44M  34% /boot
morlixsvr2 ~ # uptime
 14:34:53 up 162 days, 17:31,  1 user,  load average: 0.00, 0.00, 0.00
thanks for your hints!

grZ morlix
Top
mmbrothers
Apprentice
Apprentice
Posts: 224
Joined: Sat Dec 24, 2005 6:10 am
Location: Boston

  • Quote

Post by mmbrothers » Sun Dec 25, 2005 1:51 pm

Files not being deleted until all descriptors are closed ... will get you everytime :)
Top
GauSs_
n00b
n00b
User avatar
Posts: 33
Joined: Tue Apr 12, 2005 1:42 pm
Location: Croatia: Split, Zagreb

  • Quote

Post by GauSs_ » Wed Jan 04, 2006 7:12 pm

i don't get it :oops:

i have same problem with my /mnt/G_win (FAT32)

du shows 3gb free
windows also say 3gb free
partition magic says 3gb

but df shows 11gb free
Top
MmmmJoel
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Fri Jan 24, 2003 5:16 am

  • Quote

Post by MmmmJoel » Thu Jan 05, 2006 12:19 am

You can 'emerge lsof' and run 'lsof +L1' to see all your unlinked files and the processes that are holding on to them.
Top
GauSs_
n00b
n00b
User avatar
Posts: 33
Joined: Tue Apr 12, 2005 1:42 pm
Location: Croatia: Split, Zagreb

  • Quote

Post by GauSs_ » Thu Jan 05, 2006 7:26 am

MmmmJoel wrote:You can 'emerge lsof' and run 'lsof +L1' to see all your unlinked files and the processes that are holding on to them.
i did so and can't see anything linked with /mnt/G_win or /dev/hda3
Top
Post Reply

16 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic