From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: moving /gnu to different disk Date: Wed, 13 Jan 2016 12:12:50 +0100 Message-ID: <878u3t7mx9.fsf@gnu.org> References: <20160112222902.GA5739@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJJMI-00056Q-5P for help-guix@gnu.org; Wed, 13 Jan 2016 06:12:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJJME-0001aZ-23 for help-guix@gnu.org; Wed, 13 Jan 2016 06:12:58 -0500 In-Reply-To: <20160112222902.GA5739@jasmine> (Leo Famulari's message of "Tue, 12 Jan 2016 17:29:02 -0500") 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: Leo Famulari Cc: help-guix@gnu.org Leo Famulari skribis: > On Tue, Jan 12, 2016 at 01:39:02PM -0800, carl hansen wrote: >> Rather than trying the following, I thought, "Why not ask first?" >>=20 >> Due to the sizes of various hard disks in my machine, I want to move /gnu >> to /directoryondifferentdisk/gnu >> and then do >> mount --bind /directoryondifferentdisk/gnu /gnu >>=20 >> (I have already formed a superstition that >> ln -s /directoryondifferentdisk/gnu /gnu >> won't work) >>=20 >> I see a vast collection of hard links in /gnu/store/.links... >>=20 >> I forsee problems when copying /gnu, not reproducing hard links >> but reproducing the data. > > You could try moving the data with `rsync --hard-links`. In fact you can also omit /gnu/store/.links when copying. Nothing is lost by doing so. This directory simply contains a hash-to-file mapping used by the deduplication mechanism. However, make sure do copy /var/guix in addition to /gnu/store! /var/guix/db/db.sqlite is the database containing meta-data for /gnu/store, so things will break badly if it=E2=80=99s missing or out-of-sy= nc. HTH, Ludo=E2=80=99.