I have only one drive and everything is in the one drive. There by what
ever du reports for / will be the total for the whole drive. The
exceptions would be floppy drive and cdrom.
david
On Fri, 12 Jan 2001, Matthew Melvin wrote:
> On Thu, 11 Jan 2001, David Brett wrote:
>
> > I ran into a problem with my computer yesterday. The hard drive filled
> > up. I was unable to find out what caused this to happen. It cleared
> > itself up when I started to close everything down and delete what files I
> > knew was save.
> >
> > The one thing I did notice was the difference, df and du showed. One of
> > them is out by a factor of 10. Why?
> >
> > df -h
> > Filesystem Size Used Avail Use% Mounted on
> > /dev/hda2 3.0G 1.9G 982M 67% /
> >
> > du -h
> > ...
> >
> > 3.2G /
> >
>
> Are there additional filesystems besides /, like /home or /mnt for instance?
> Unless told otherwise du will descend down multiple filesystems. Since the
> disk in use is greater than your total space tha seems the most likely
> explination? Eg:
>
> bash# du -h /
> [...]
> 5.4G /
> bash# df -h /
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda4 6.9G 4.6G 2.0G 70% /
>
> 5.4G vs 4.6G? Hmm... except...
>
> bash df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda4 6.9G 4.6G 2.0G 70% /
> /dev/hda3 38M 9.8M 26M 27% /boot
> /dev/hda1 2.0G 923M 1.1G 46% /mnt/nt
> /dev/hda2 502M 48k 502M 0% /mnt/swap
>
> ... oh.. that's alright then. :)
>
> M.
>
> P.S. There's always a small amount of descrepency between df and du because
> du is counting in blocks. Eg: a 1 byte file reports as 4k to du.
>
> --
> WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
> Level 1, 96 Lytton Road. Network Operations - Systems Engineer
> PO Box 4169, East Brisbane. phone: +61 7 3249 2583
> Queensland, Australia. pgp key id: 0x900E515F
>
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list