[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving /gnu to different disk

From: carl hansen
Subject: Re: moving /gnu to different disk
Date: Tue, 12 Jan 2016 20:31:56 -0800

On Tue, Jan 12, 2016 at 2:29 PM, Andreas Enge <address@hidden> 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.


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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]