Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Debian Problem


  • Subject: Re: lug-bg: Debian Problem
  • From: Viktor Vasilev <viktor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 12 Sep 2003 21:41:53 +0200
  • Mail-followup-to: lug-bg@xxxxxxxxxxxxxxxxxx

privet, 

On Fri, Sep 12, 2003 at 08:37:57PM +0300, korio@xxxxxxxx wrote:
> Da ne mislish che ne sum gledal... A otnosno towa kolko e 1 KB/MB/GB ok
> suglasen sum, no neshto ne wurwi razlikata da e poweche ot dwoina...

ne sym se opitval da gadaq kakvo si gledal ili ne. a da ti pomogna :)
nadqvam se sledniq posting da reshish problema ti:
http://lists.debian.org/debian-user/2001/debian-user-200101/msg04893.html

> >  the du and df report quite a different amounts of data on my root
> >partition:
> >jojda:/home/erik# du -s -h -x /
> >110M    /
> >jojda:/home/erik# df -h
> >Filesystem            Size  Used Avail Use% Mounted on
> >/dev/hda4             1.0G  649M  331M  67% /
>
> That in most cases means some process has a (log)file open which
> has been deleted. Because it's still open, it still takes space,
> but there's no directory entry for it anymore. So du -s -h -x /
> won't find it and can't include its size in the total.
>
> "df" however simply asks the filesystem for used/free info, and
> that does include the space used by those "phantom" files.
>
> If you kill the process that has that (log)file open, the space
> it used will be released. Ofcourse a reboot will do the same thing.
>
> You can find a list of those files and the processes keeping
> then open by doing (as root):
>
> ls -l /proc/*/fd | fgrep '(deleted)'
>
> If you see the same after a reboot, your filesystem is probably
> a bit broken. The easiest way to force a file system check is
> then to do "sync; sleep 3; sync; sleep 1; reboot -f". Yes it's
> what we dutch people call "the blunt axe approach" but it works ;)
>
> Mike.

  thanks, that must have been it, kdeinit had quite a few (deleted)
files opened, some of them of scary size (5GB, but I guess that was not
a real size since the partition is only 1GB), once I rebooted (different
reason, mouse fun stuff) the df and du report approximately same sizes.
I have found out that lsof | grep '(deleted)' works even better than
your suggested command since it lists the names of the programs that
have these files open and size etc...


aaajde, chao

viktor

-- 
He who asks is a fool for five minutes, but he 
who does not ask reamins a fool forever.
     Old Chinese saying
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.