misc/78529: 'df' shows wrong info about hard drive after carrying
hard drive from one PC to other.
Taras Savchuk
t at copyco.ru
Mon Mar 7 13:00:15 GMT 2005
>Number: 78529
>Category: misc
>Synopsis: 'df' shows wrong info about hard drive after carrying hard drive from one PC to other.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 07 13:00:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Taras Savchuk
>Release: 5.3-RELEASE and 5.3-STABLE
>Organization:
>Environment:
FreeBSD server 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Tue Nov 23 16:08:51 MSK 2004 root at temp.copyco.ru:/usr/obj/usr/src/sys/COPYCO-GW i386
>Description:
Under my 5.3-STABLE I386 single-processor box I formatted 80GB IDE hard drive and wrote on it a lot of data. Then I installed it on another I386 5.3-RELEASE I386 two-processor box and got this output of df:
-------------------------------------------
[15:32]@server$df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da0s1a 507630 57962 409058 12% /
devfs 1 1 0 100% /dev
/dev/da0s1d 1012974 7646 924292 1% /tmp
/dev/da0s1e 10154158 3934302 5407524 42% /usr
/dev/da0s1f 22567966 7648782 13113748 37% /var
/dev/ad1s1d 20301670 4 18677534 0% /mnt20
/dev/ad1s2d 55409810 6 50977020 0% /mnt60
devfs 1 1 0 100% /var/named/dev
[15:39]@server$du -h /mnt60
2,2G /mnt20
[15:39]@server$du -h /mnt60
36G /mnt60
-----------------------------------------------------------------
/mnt20 and /mnt60 - that hard drive.
'du -h' shows write info about used disk space, but 'df' says, that I used only 4K and 6K of disk space - it's wrong, as you can see.
>How-To-Repeat:
You can try to attach IDE hard drive from one I386 5.3 PC to other and look at output of 'df' and 'du'.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list