From mboxrd@z Thu Jan 1 00:00:00 1970 From: carl hansen Subject: Re: moving /gnu to different disk Date: Tue, 12 Jan 2016 20:31:56 -0800 Message-ID: References: <20160112222908.GA19839@debian> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e010d95627d476c05292fa6ef Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJD6E-000693-Pn for help-guix@gnu.org; Tue, 12 Jan 2016 23:31:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJD6D-0000qU-R2 for help-guix@gnu.org; Tue, 12 Jan 2016 23:31:58 -0500 Received: from mail-ig0-x22c.google.com ([2607:f8b0:4001:c05::22c]:37591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJD6D-0000qQ-MC for help-guix@gnu.org; Tue, 12 Jan 2016 23:31:57 -0500 Received: by mail-ig0-x22c.google.com with SMTP id h5so102790432igh.0 for ; Tue, 12 Jan 2016 20:31:57 -0800 (PST) In-Reply-To: <20160112222908.GA19839@debian> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: help-guix@gnu.org --089e010d95627d476c05292fa6ef Content-Type: text/plain; charset=UTF-8 On Tue, Jan 12, 2016 at 2:29 PM, Andreas Enge wrote: > On Tue, Jan 12, 2016 at 01:39:02PM -0800, carl hansen wrote: > > I forsee problems when copying /gnu, not reproducing hard links > > but reproducing the data. > > You can use rsync with the option "-H" to preserve hard links. > > I think your proposed solution with bind mounts will work, but I let > the specialists confirm. > > Andreas > > Thanks, Andreas and Leo, the rsync -Hav /gnu/ /directoryondifferentdisk/gnu rm -rf /gnu mkdir /gnu mount --bind /directoryondifferentdisk/gnu /gnu seems to be working perfectly. I hope this question and answer is put into GUIX faq somehow. --089e010d95627d476c05292fa6ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Jan 12, 2016 at 2:29 PM, Andreas Enge <andreas@enge.fr> wrote:
On Tue, Jan 12, 2016 at 01:39:02PM -0800, carl hansen wrote:
> I forsee problems when copying /gnu, not repro= ducing hard links
> but reproducing the data.

You can use rsync with the option "-H" to preserve hard li= nks.

I think your proposed solution with bind mounts will work, but I let
the specialists confirm.

Andreas

Thanks, Andreas and Leo, the

rsync= -Hav /gnu/ /directoryondifferentdisk/gnu=C2=A0
rm -rf /gnu
mkdir /gnu

mount --bind /directoryondifferentdisk/gnu /gnu
=
seems to be = working perfectly.

I hope this question and answer is put into GUIX faq somehow.
=

--089e010d95627d476c05292fa6ef--