From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: moving /gnu to different disk Date: Tue, 12 Jan 2016 17:29:02 -0500 Message-ID: <20160112222902.GA5739@jasmine> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ7Qx-0005ha-Gb for help-guix@gnu.org; Tue, 12 Jan 2016 17:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ7Qu-0005vC-Ag for help-guix@gnu.org; Tue, 12 Jan 2016 17:28:59 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ7Qt-0005v5-QY for help-guix@gnu.org; Tue, 12 Jan 2016 17:28:56 -0500 Content-Disposition: inline In-Reply-To: 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: carl hansen Cc: help-guix@gnu.org On Tue, Jan 12, 2016 at 01:39:02PM -0800, carl hansen wrote: > Rather than trying the following, I thought, "Why not ask first?" > > 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 > > (I have already formed a superstition that > ln -s /directoryondifferentdisk/gnu /gnu > won't work) > > I see a vast collection of hard links in /gnu/store/.links... > > I forsee problems when copying /gnu, not reproducing hard links > but reproducing the data. You could try moving the data with `rsync --hard-links`. Of course you should test that it works as expected first or you might end up out of space on the new device, too! >From the rsync man page: -H, --hard-links preserve hard links Of course, there may be a better solution altogether. > > Are my fears founded? How to proceed? > Or better to start over with new installation of gnux and /gnu?