strange problem with disk space

View: New views
7 Messages — Rating Filter:   Alert me  

strange problem with disk space

by Valerio Pachera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tjener:/# df -h
Filesystem         Dimens. Usati Disp. Uso% Montato su
/dev/hda7              12G   12G  436M  97% /
tmpfs                 760M     0  760M   0% /lib/init/rw
udev                   10M   84K   10M   1% /dev
tmpfs                 760M     0  760M   0% /dev/shm
none                  760M   56K  760M   1% /tmp

The comand above shows that the root is full but I'm not using 12gb!
I'm using around 7 Gb: 3,2 for /opt, 3,4 for /usr, less than one for /var

tjener:/# du -sh *
3,7M    bin
44M     boot
0       cdrom
256K    dev
12M     etc
4,0K    home
4,0K    initrd
0       initrd.img
0       initrd.img.old
180M    lib
16K     lost+found
32K     media
28K     mnt
3,2G    opt
0       proc
56M     root
5,8M    sbin
66M     skole
4,0K    srv
0       sys
48K     tmp
3,4G    usr
741M    var
0       vmlinuz
0       vmlinuz.old


Any idea?
I'm using Terra at the moment.


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: strange problem with disk space

by Petter Reinholdtsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[Valerio Pachera]
> The comand above shows that the root is full but I'm not using 12gb!
> I'm using around 7 Gb: 3,2 for /opt, 3,4 for /usr, less than one for
> /var

This sound like the file system have a large file that has been
deleted, but is still used by some running process.  Such files are
not visible in the file system, but uses disk space.  You might be
able to find it using 'fuser -mv' and 'ls -l /proc/*/fds/', but it
will be hard to track it down.

> tjener:/# du -sh *

Note that thiss will not include the directories starting with a dot.
'du -k /|sort -n' might be a better option.

Happy hacking,
--
Petter Reinholdtsen


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Parent Message unknown Re: strange problem with disk space

by Valerio Pachera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/7/17 Valerio Pachera <sirio81@...>:

> 2008/7/17 Petter Reinholdtsen <pere@...>:
>> able to find it using 'fuser -mv' and 'ls -l /proc/*/fds/', but it
>> will be hard to track it down.
>
> I tried to read the outup of 'fuser -mv /' but I didn't find any hint
> of wich prcess is accessing file.
>
>> 'du -k /|sort -n' might be a better option.
> Thnaks for the suggestion.
>
> du -ks * / sort -hr
> return the same of before:
> 3,5 /usr
> 3,3 /op
> 0,7 /var
> 0,2 /lib
> etc.
>
>
> I have no idea. Now I try to make a fscheck...

It didn't help :(


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: strange problem with disk space

by elbers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 17 Jul 2008 15:20:56 +0200, Valerio Pachera <sirio81@...>  
wrote:

> 2008/7/17 Valerio Pachera <sirio81@...>:
>> 2008/7/17 Petter Reinholdtsen <pere@...>:
>>> able to find it using 'fuser -mv' and 'ls -l /proc/*/fds/', but it
>>> will be hard to track it down.
>>
>> I tried to read the outup of 'fuser -mv /' but I didn't find any hint
>> of wich prcess is accessing file.
>>
>>> 'du -k /|sort -n' might be a better option.
>> Thnaks for the suggestion.
>>
>> du -ks * / sort -hr
>> return the same of before:
>> 3,5 /usr
>> 3,3 /op
>> 0,7 /var
>> 0,2 /lib
>> etc.
>>
>>
>> I have no idea. Now I try to make a fscheck...
>
> It didn't help :(
>
>

I think in Terra there was some issue with some tmp files staying  
somewhere strange, filling up the root partition, but I cannot remember.  
Can't remember if it was some log files, kde tmp files or something else.  
Maybe someone remembers? /var/tmp?

Bjarne


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: strange problem with disk space

by Valerio Pachera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/7/17, Bjarne Nielsen <bjarne@...>:
> I think in Terra there was some issue with some tmp files staying somewhere
> strange, filling up the root partition, but I cannot remember. Can't
> remember if it was some log files, kde tmp files or something else. Maybe
> someone remembers? /var/tmp?

I wounder what means the line
  none on /tmp type tmpfs (rw,nosuid)
outputed form the 'mount' comand
May someone explain it?

I think i remember on time I was worink on another distribution and
created a dvd image file in /tmp folder of debian edu but after I
turned debian edu on, the file was missing. I thought the /tmp got
clean at the mount.
The problem may be that...I'm not even sure of remembering correctly :(


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: strange problem with disk space

by Valerio Pachera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/7/18, Valerio Pachera <sirio81@...>:
> I think i remember on time I was worink on another distribution and
> created a dvd image file in /tmp folder of debian edu but after I
> turned debian edu on, the file was missing. I thought the /tmp got
> clean at the mount.

It was that!!!!
I booted form another distribution and mount the debian edu partition.
The folder /tmp was containing the dvd image file I made that I
coulden't see form debian edu!


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: strange problem with disk space

by Petter Reinholdtsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[Valerio Pachera]
> I wounder what means the line
>   none on /tmp type tmpfs (rw,nosuid)
> outputed form the 'mount' comand
> May someone explain it?

It mean that /tmp is a RAM file system.

> I think i remember on time I was worink on another distribution and
> created a dvd image file in /tmp folder of debian edu but after I
> turned debian edu on, the file was missing. I thought the /tmp got
> clean at the mount.
> The problem may be that...I'm not even sure of remembering correctly :(

This could be the problem.  You might have a file in the /tmp/
directory on disk, and it is hidden by the RAM file system mounted on
top of /tmp/.  To check this out, try commenting out the /tmp entry in
/etc/fstab, reboot, see if there is any content there, put the entry
back into /etc/fstab, and reboot again to get back where you started.

Happy hacking,
--
Petter Reinholdtsen


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

LightInTheBox - Buy quality products at wholesale price