Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Verschiedene Größenangaben von du und df ???
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
tragor
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 168
Location: Freiburg i.Br., Germany

PostPosted: Sat Jun 07, 2003 2:05 pm    Post subject: Verschiedene Größenangaben von du und df ??? Reply with quote

Hi, ich habe volgendes Problem:

wenn ich du -shx auf / mache, kriege ich:
Code:
root@legolas / # du -shx
1.7G    .


Wenn ich dagegen df mache:
Code:
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3              8787276   8340312    446964  95% /
tmpfs                     2048       204      1844  10% /mnt/.init.d
/dev/hda4              7702924   7586828    116096  99% /usr
tmpfs                   386640         0    386640   0% /dev/shm


Wenn ich ein du -shx auf /usr mache:
Code:

root@legolas usr # du -shx
7.2G    .


Wie kann das sein? Vielleicht sehe ich ja das Offensichtliche nicht? Hat jemand schonmal ein ähnliches Problem gehabt?

Grüße,
tragor

PS: Kann sein, dass ich nicht sofort antworten kann, da ich vielleicht noch verreisen muss... Vielleicht sammeln sich ja trotzdem ein paar Meinungen hierzu ;)
Back to top
View user's profile Send private message
kopfarzt
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 170
Location: Vienna, Austria

PostPosted: Sat Jun 07, 2003 3:10 pm    Post subject: Reply with quote

Es gibt vielleicht eine plausiblere Erklärung, aber theoretisch könnte das meiner Meinung nach der Fall sein, wenn Du ein entsprechend großes (6GB) File gelöscht hast, das irgendjemand noch offen hat (z.B. großes Apache Log mit rm gelöscht oder was in der Art). Hast Du?

kopfarzt
Back to top
View user's profile Send private message
schroedinger
n00b
n00b


Joined: 15 Jan 2003
Posts: 43
Location: Vienna

PostPosted: Sat Jun 07, 2003 10:44 pm    Post subject: Reply with quote

beim "du -shx" wird vielleicht die grösse von gemounteten geräten nicht gemessen. alles was unter der wurzel liegt, exklusiv /usr ist 1.7 gb gross, /usr ist 7.2 gb gross, somit verbraucht deine gentoo-installation 8.9 gb.

hoffe das stimmt
_________________
Imagination is more important than knowledge
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Sun Jun 08, 2003 5:23 am    Post subject: Reply with quote

Eine Möglichkeit ist, dass /usr auch auf /dev/hda3 existiert.
Back to top
View user's profile Send private message
Pixelbrei
n00b
n00b


Joined: 25 Apr 2003
Posts: 62

PostPosted: Sun Jun 08, 2003 8:59 am    Post subject: Reply with quote

bei dem unterschied koennte ich mir auch vorstelln, dass nach nem umount /usr immernoch die 7 gig in /usr vorhanden sind :)
aber kleine unterschiede lassen sich glaubich auch durch journaling erklaeren:
auf einer leeren ext3-partition z.b. liefert du -shx mir 4,0 Kb , df sagt aber dass 33MB belegt sind.
weil du nur die dateien aufsummiert und df den tatsaechlich verbrauchten platz (also mit journal) anzeigt.
Back to top
View user's profile Send private message
tragor
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 168
Location: Freiburg i.Br., Germany

PostPosted: Fri Jun 13, 2003 1:10 pm    Post subject: Reply with quote

Hi,

bin wieder da und wie das so ist, ist die Lösung nach dieser Pause auf einmal ganz schnell gekommen: Ich hatte irgendwie noch das alte usr Verzeichnis als Backup unter /usr/usr.old auf /dev/hda3 liegen. Muss ich vergessen haben zu löschen, nachdem ich usr auf /dev/hda4 verschoben habe. Aber ich bin mir eigentlich sicher, dass ich das gemacht habe...

Trotzdem vielen Dank für die Anregungen!

Thx, tragor
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum