Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2007 04:09:56 +0000
From:      lveax <lveax.m@gmail.com>
To:        stevefranks@ieee.org
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: copying just / (not /tmp, /usr, etc) (rsync -x failed)
Message-ID:  <576dcbc20712042009j4bd22a9dr99ea2013c54e7111@mail.gmail.com>
In-Reply-To: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com>
References:  <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 5, 2007 12:38 AM, Steve Franks <stevefranks@ieee.org> wrote:
> I have / on one slice, and [usr,tmp,var] on others.  I want to move
> just / to a new disk, which seemed to be what rsync -x ("do not cross
> filesystems") was intended for.  It failed, however, as df shows 20k
> blocks in /, and rsync filled up the target slice with 50k blocks, so
> obviously it blew right past the 'end' of / - did I miss something? Is
> there no other way except to umount [tmp,usr,var]?
>
try:
 dd if=/dev/${the / slice} of=/dev/${the new / slice} bs=1m

or just go to single user mode umount /tmp /usr /var then copy it..



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?576dcbc20712042009j4bd22a9dr99ea2013c54e7111>