From nobody@FreeBSD.org  Mon Mar  7 12:58:47 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CD24116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Mar 2005 12:58:47 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A691843D54
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Mar 2005 12:58:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j27CwlRl079423
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 Mar 2005 12:58:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j27Cwlt0079422;
	Mon, 7 Mar 2005 12:58:47 GMT
	(envelope-from nobody)
Message-Id: <200503071258.j27Cwlt0079422@www.freebsd.org>
Date: Mon, 7 Mar 2005 12:58:47 GMT
From: Taras Savchuk <t@copyco.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'df' shows wrong info about hard drive after carrying hard drive from one PC to other.
X-Send-Pr-Version: www-2.3

>Number:         78529
>Category:       bin
>Synopsis:       df(1) 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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 07 13:00:14 GMT 2005
>Closed-Date:    Mon Nov 21 22:34:09 UTC 2011
>Last-Modified:  Mon Nov 21 22:34:09 UTC 2011
>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@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:

From: <t@copyco.ru>
To: <FreeBSD-gnats-submit@FreeBSD.org>, <t@copyco.ru>
Cc:  
Subject: Re: bin/78529: 'df' shows wrong info about hard drive after carrying hard drive from one PC to other.
Date: Mon, 21 Mar 2005 11:17:45 +0300

 I attached my 80GB IDE hard drive back to single-processor I386 5.3-STABLE
 box and typed 'df'. Appallingly! 'df ' showed me right info about used disk
 space!
State-Changed-From-To: open->closed 
State-Changed-By: arundel 
State-Changed-When: Mon Nov 21 22:29:24 UTC 2011 
State-Changed-Why:  
It appears this issue was caused by changes between 5.3-STABLE and 5.3-RELEASE 
(probably code changes in a disk controller driver). 

Since the FreeBSD 5 branch wen EoL long ago, that mystery will never be solved. 
Of course I will open up the problem report again, if the issue persists in 
a currently supported branch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78529 
>Unformatted:
