From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 14:31:11 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C102106566C for ; Thu, 8 Jul 2010 14:31:11 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1AE9D8FC15 for ; Thu, 8 Jul 2010 14:31:10 +0000 (UTC) Received: by vws6 with SMTP id 6so1434034vws.13 for ; Thu, 08 Jul 2010 07:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=5vCVQvyUa6lo4TovldFqCu/Ol69JFnJ4qHKWa9PONx0=; b=UM0XyfDo8MixIaUBjJmSvZSBui8gBt9kXerSQX1UxlcMMkjxSMtF64g+JVCol/xDUe OEwHqLeVO8Rtbx386GzGF/qGvDuDJ8oFFN2woR2O5/nKzz0JswIoJxt4nZicf9c7fQYP VK+/Mi15ip5Hepnidy6jcjc1yw/y/Y0wS/RtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=eK1Bhw2WGkagL/lhYuR5kFQSQKh6AN3ZRh3gumGqOb1isIeIZjLbyvJ8e3BUkrOD9t LaaRtnTcsthr7/SweBFPzVzQPji66Z6lcoJl05hkPXZViXLsdtMZr4PHHp0MvBZxWWwG 9/vOGGe8vFMYjVuoNTzOJoyNLDF1r/WpgZ/HI= Received: by 10.220.62.206 with SMTP id y14mr4393858vch.111.1278599465135; Thu, 08 Jul 2010 07:31:05 -0700 (PDT) Received: from localhost (anonymizer3.torservers.net [173.244.197.211]) by mx.google.com with ESMTPS id e20sm9051445vcm.16.2010.07.08.07.31.02 (version=SSLv3 cipher=RC4-MD5); Thu, 08 Jul 2010 07:31:03 -0700 (PDT) From: Anonymous To: Warren Block References: <86y6dmo4gh.fsf@gmail.com> Date: Thu, 08 Jul 2010 18:30:53 +0400 In-Reply-To: (Warren Block's message of "Thu, 8 Jul 2010 07:19:45 -0600 (MDT)") Message-ID: <86wrt6m4f6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: livefs hard links X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2010 14:31:11 -0000 Warren Block writes: > On Thu, 8 Jul 2010, Anonymous wrote: > >> Warren Block writes: >> >>> The FreeBSD livefs ISO filesystem hides hard links, so they can't be >>> accurately copied. >> >> Use `tar cf - | tar xf -' to copy them. > > That was my first thought, too. Well, second thought, after 'rsync > -aH'. > > But the mounted ISO filesystem doesn't show hard links as hard links: > > # ls -li /mnt/rescue > 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ > 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol > 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig > 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect > ... 414 is the number of hardlinks. You can as well try to use iso9660 reader in libarchive, e.g. $ bsdtar xvf /dev/cd0 --include rescue/\* $ bsdtar xvf /path/to/blah.iso --include rescue/\* > > And rsync or tar never see a hard link to copy.