[Breezy] Incorrect Report by df -h

Jim Richardson warlock at eskimo.com
Sat Dec 31 23:44:25 UTC 2005


On Sat, 2005-12-31 at 13:10 -0800, Ed Fletcher wrote:
> -----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
> - --


That 33 megs is typical for an ext3 journal, since sdb7 is an ext3 f/s,
this isn't surprising. sda2 may have been ext3 (or rather, there may be
a journal there, since you can mount a clean ext3 fs as ext2.) 

-- 
Jim Richardson http://www.eskimo.com/~warlock
Instrument of Darwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051231/2769c6af/attachment.sig>


More information about the ubuntu-users mailing list