bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in "df" on large drives


From: Josh Straub
Subject: Bug in "df" on large drives
Date: Mon, 2 Oct 2000 14:52:55 -0500

Hello,

"df" contains a bug with large drives, I am assuming it is on those larger
than 8.4GB.  I have an NTFS drive that is exactly 8,093,642,752 bytes large.
Here is what happens under Linux Kernel 2.4.0-test8.
"df -Th" results in:

address@hidden:/f/transfer/linux/ut# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hdb7     ext2    494M  360M  108M  77% /
/dev/hda1     vfat   1019M  747M  272M  73% /c
/dev/hda5     vfat   1019M  962M   58M  94% /d
/dev/hda6     vfat   1019M  806M  214M  79% /e
/dev/hda7     vfat   1019M  952M   67M  93% /f
/dev/hda8     vfat   1019M  865M  154M  85% /g
/dev/hda9     vfat   1019M  727M  293M  71% /h
/dev/hda10    vfat    3.4G  2.5G  959M  73% /i
/dev/hdb5     vfat    3.9G  1.6G  2.3G  40% /j
/dev/hdb6     ntfs     60G   57G  3.1G  95% /k
/dev/hdc   iso9660    631M  631M     0 100% /cdrom
/dev/hdd   iso9660    566M  566M     0 100% /cdrom2
address@hidden:/f/transfer/linux/ut#

on a system setup that looks like this:

                                  cfdisk 2.10l

                              Disk Drive: /dev/hdb
                            Size: 12838404096 bytes
              Heads: 255   Sectors per Track: 63   Cylinders: 1560

    Name        Flags      Part Type  FS Type          [Label]        Size
(MB)

----------------------------------------------------------------------------
--
                            Pri/Log   Free Space                                
                        8.23
    hdb5                    Logical   Win95 FAT32                               
                        4194.90
    hdb6                    Logical   NTFS                                      
                                8093.68
    hdb7                    Logical   Linux ext2       [TookyLinux]             
        534.65

You'll notice that the free space (3.1G) is correctly reported but the Size
and Used are obviously wrong (I wish I had 60GB..)

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Josh Straub ô¿ô address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]