From owner-freebsd-questions@FreeBSD.ORG Tue Oct 16 18:13:10 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5E80317 for ; Tue, 16 Oct 2012 18:13:10 +0000 (UTC) (envelope-from root.vagner@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6BE528FC17 for ; Tue, 16 Oct 2012 18:13:10 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so13532462iea.13 for ; Tue, 16 Oct 2012 11:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CiFt9GTZPVGs3FhIy28iiNaGj2Kmg3voxourFdXQUp4=; b=WzID0wz4fpn6Ib9+NH3R7VbkofVERIico2moW4csB5ozmvtP/zjbAgOAj9jh5LXXNX FwXIpcfFhSnLZjnmr9Uzjbho0tkN1/FlFC6ibM6ohn6e5btpKfue+le2VddSd6/MNaVI ecfhbWzU+YMHlYjzIQQicEq4vJ/Iu/2l61MAYZVmrw+zzw39hiY/H3t6qWFMQrKB3B41 qSMToiUZ8e0xmy9rjxclyor7Arj93AA/TosaJh7UyhC/plsWTrHUYnG3eJH9Fsoc3QCQ 1CCmxAujR3PO+glRSRZpa9cH0y+QDyHPSVtdnqMw7zQQDr2UANN5p02QFYP/uEydB9Ln F7/g== MIME-Version: 1.0 Received: by 10.43.135.135 with SMTP id ig7mr12346878icc.8.1350411184393; Tue, 16 Oct 2012 11:13:04 -0700 (PDT) Received: by 10.64.81.231 with HTTP; Tue, 16 Oct 2012 11:13:04 -0700 (PDT) Date: Tue, 16 Oct 2012 22:13:04 +0400 Message-ID: Subject: MFS root filesystem and static binaries size From: Stanislav Zaharov To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 18:13:10 -0000 Hello, I have a question regarding the mfsroot file system organization on installation cd. How is it possible that we have bigger binary files in ls list while actual occupied space is less. But when we try to copy these files on similar filesystem using cp or dd the actual used space is bigger? For example when we mount mfsroot image we get: $ df -h /mnt/ Filesystem Size Used Avail Capacity Mounted on /dev/md0 3.9M 3.3M 534k 86% /mnt $ ls -lhs /mnt/stand ... 766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 dhclient 766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 cpio 766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 camcontrol 766 -r-xr-xr-x 30 root wheel 3M 10 apr 2012 boot_crunch ... But: $ du -hc /mnt/stand ... 3,2M total But if we copy these files onto another UFS filesystem we really consume the space: $ cp -a /mnt/stand /tmp/stand $ du -hc /tmp/stand ... 91M total How is it possible and why does it matter for mfsroot? TIA -- Respectfully, Stanislav Putrya System & network administrator WWW: fotostrana.ru WWW2: bsdway.ru icq: 328585847 e-mail: root.vagner@gmail.com e-mail: vagner@bsdway.ru