Date: Mon, 7 Mar 2005 12:58:47 GMT From: Taras Savchuk <t@copyco.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/78529: 'df' shows wrong info about hard drive after carrying hard drive from one PC to other. Message-ID: <200503071258.j27Cwlt0079422@www.freebsd.org> Resent-Message-ID: <200503071300.j27D0FGS054590@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503071258.j27Cwlt0079422>