-   Linux - General (
-   -   25% of my disk space appears to be missing (

ealpert1 11-25-2003 09:40 AM

25% of my disk space appears to be missing
Something very odd is happening on my debian box.

du -ks / shows I'm using 12.5 GB of my 19.2 GB disk

df -ks shows I'm using 17.7 GB

I only have two partitions swap which is 500MB and my main partition.

How could I be missing over 4 GB?


acid_kewpie 11-25-2003 10:58 AM

it'll probably make a lot more sense if you run "df" instead of "du", if not, give us the whole "df" output

ealpert1 11-25-2003 11:48 AM

Does this help? Below is my df output and my du output and the output of sfdisk showing that I have only two partitions.

So my question again is where is the missing 4+GB?

Is there any util that can give me more information?

ethanalpert:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 19228276 17788808 462720 98% /
ethanalpert:~# du -ks /
12652022 /
ethanalpert:~# sfdisk --force /dev/hda
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.

Disk /dev/hda: 2491 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 2431 2432- 19535008+ 83 Linux
/dev/hda2 2432 2490 59 473917+ 82 Linux swap
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
Input in the following format; absent fields get a default value.
<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>
Usually you only need to specify <start> and <size> (and perhaps <type>).

ealpert1 11-25-2003 12:04 PM

mysqld had a 5 GB deleted file open

I determined this with lsof +L1

apparently msqld wasn't rotating logs properly


All times are GMT -5. The time now is 07:38 PM.