Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 2010 18:30:53 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: livefs hard links
Message-ID:  <86wrt6m4f6.fsf@gmail.com>
In-Reply-To: <alpine.BSF.2.00.1007080700280.43685@wonkity.com> (Warren Block's message of "Thu, 8 Jul 2010 07:19:45 -0600 (MDT)")
References:  <alpine.BSF.2.00.1007072023020.40255@wonkity.com> <86y6dmo4gh.fsf@gmail.com> <alpine.BSF.2.00.1007080700280.43685@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren Block <wblock@wonkity.com> writes:

> On Thu, 8 Jul 2010, Anonymous wrote:
>
>> Warren Block <wblock@wonkity.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wrt6m4f6.fsf>