From: carl hansen <carlhansen1234@gmail.com>
To: Andreas Enge <andreas@enge.fr>
Cc: help-guix@gnu.org
Subject: Re: moving /gnu to different disk
Date: Tue, 12 Jan 2016 20:31:56 -0800 [thread overview]
Message-ID: <CAHEkXCR6fZBTXmYnpu=8CJ_rig1rpxcOJ--Ob3GP-oF+5eiyTw@mail.gmail.com> (raw)
In-Reply-To: <20160112222908.GA19839@debian>
[-- Attachment #1: Type: text/plain, Size: 660 bytes --]
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 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.
[-- Attachment #2: Type: text/html, Size: 1482 bytes --]
next prev parent reply other threads:[~2016-01-13 4:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 21:39 moving /gnu to different disk carl hansen
2016-01-12 22:29 ` Leo Famulari
2016-01-13 11:12 ` Ludovic Courtès
2016-01-12 22:29 ` Andreas Enge
2016-01-13 4:31 ` carl hansen [this message]
2016-01-13 11:14 ` Efraim Flashner
2016-01-15 14:06 ` Mark H Weaver
2016-01-13 18:06 ` Christopher Allan Webber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHEkXCR6fZBTXmYnpu=8CJ_rig1rpxcOJ--Ob3GP-oF+5eiyTw@mail.gmail.com' \
--to=carlhansen1234@gmail.com \
--cc=andreas@enge.fr \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).