From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: moving /gnu to different disk Date: Fri, 15 Jan 2016 09:06:43 -0500 Message-ID: <87vb6vj5sc.fsf@netris.org> References: <20160113131434.5887b13f@debian-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK51m-0007qm-24 for help-guix@gnu.org; Fri, 15 Jan 2016 09:06:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aK51h-0004Y2-3r for help-guix@gnu.org; Fri, 15 Jan 2016 09:06:57 -0500 Received: from world.peace.net ([50.252.239.5]:33137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK51h-0004Xv-09 for help-guix@gnu.org; Fri, 15 Jan 2016 09:06:53 -0500 In-Reply-To: <20160113131434.5887b13f@debian-netbook> (Efraim Flashner's message of "Wed, 13 Jan 2016 13:14:34 +0200") 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: Efraim Flashner Cc: help-guix@gnu.org Efraim Flashner writes: > On Tue, 12 Jan 2016 13:39:02 -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. >> >> Are my fears founded? How to proceed? >> Or better to start over with new installation of gnux and /gnu? > > When I moved mine from / to a new partition I did `cp -a` and it all worked well. Yes, and 'cp' is many times faster than rsync. On one non-trivial test, I found that it was around 8 times faster. Mark