[Breezy] Incorrect Report by df -h
Ed Fletcher
ed at fletcher.ca
Sat Dec 31 21:10:02 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All:
Happy New Year to everyone!
I'm cleaning up a couple of partitions and I'm not getting the results
that I expected. I enabled a root terminal with 'sudo -i' because one
of the partitions wouldn't let me delete some of the directories. I got
rid of absolutely everything except for lost+found, which is empty.
This is what I end up with:
root:/mnt # df -h (other partitions not shown)
Filesystem Size Used Avail Use% Mounted on
/dev/sdb7 9.2G 33M 8.7G 1% /temp
/dev/sda2 55G 33M 52G 1% /mnt
root:/mnt #
The numbers don't add up.
I know that they are empty. In sda2 I get:
root:/mnt# ls -al
total 24
drwxr-xr-x 3 root root 4096 Dec 31 12:48 .
drwxr-xr-x 23 root root 4096 Nov 29 19:26 ..
drwx------ 2 (owner) users 16384 Apr 23 2005 lost+found
root:/mnt # cd lost+found/
root:/mnt/lost+found # ls -al
total 20
drwx------ 2 (owner) users 16384 Apr 23 2005 .
drwxr-xr-x 3 root root 4096 Dec 31 12:48 ..
root:/mnt/lost+found #
'ls -al' shows that there are no files in this partition. Doing the
same check on sdb7 gives me the same result. But 'df -h' shows almost
the exact same result for sdb7 except that the blocks used by lost+found
are 49152.
The sdb7 partition is ext3 and sda2 is ext2. I don't see where the
space is being used except that there are high block counts in
lost+found in both partitions. I can likely solve this by unmounting
both and rewriting the filesystems, but that wouldn't solve the mystery
for me.
Can anybody give me a hint as to what is happening here?
Many thanks,
Ed
- --
Ed Fletcher
ed at fletcher.ca
What difference does it make to the dead, the orphans and the homeless,
whether the mad destruction is wrought under the name of totalitarianism
or the holy name of liberty or democracy? - Mahatma Gandhi (1869-1948)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDtvOelTbGAQhc1A8RAkMhAKC2gcI9QZBzYWwBSeXZnHg16qgySQCfQ3UZ
/5PUBpjMtSWWisyhEi28kPc=
=Siey
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list