From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 04:34:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 405E116A419 for ; Wed, 5 Dec 2007 04:34:15 +0000 (UTC) (envelope-from lveax.m@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id E2F6113C45D for ; Wed, 5 Dec 2007 04:34:14 +0000 (UTC) (envelope-from lveax.m@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so1166984anc for ; Tue, 04 Dec 2007 20:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZPM+IzNiGfSl3mdnHznQTUc6cbwTj9/FSZkdXOnTOSU=; b=toArQiH50b5BsQSR/132dqYcCbTN2TrTZcfYj0ZPz6xzWCRqo0IeuYsa8igctzyvJFA70JDqEspcrekI/JiHWTYkAiGO48OWZ0vsA97pWn8M4dIH49MYzeSI00Kqf25ZNk4mkcQ4YkG+QCl0UyPmItX3tjRtSoqNCltEKbBFA3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YPBo5W8BF3yZ5N61UKAgT4+T0J6EXPnJpCGM5L2Y+Y+07RUitM8+XL7KJ5MIN3eFg1ueMPZ+DM1z2i2pTQOLyerV9gJRWgrvZWPHZPINvHeySime0wtz4W4svlboP1Ynw4jHKBfaH3ZXbW8+LoGy7sOL+6VSbMOf8ht9pwtQ6KU= Received: by 10.100.131.3 with SMTP id e3mr3039369and.1196827796462; Tue, 04 Dec 2007 20:09:56 -0800 (PST) Received: by 10.100.32.1 with HTTP; Tue, 4 Dec 2007 20:09:56 -0800 (PST) Message-ID: <576dcbc20712042009j4bd22a9dr99ea2013c54e7111@mail.gmail.com> Date: Wed, 5 Dec 2007 04:09:56 +0000 From: lveax To: stevefranks@ieee.org In-Reply-To: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> Cc: User Questions Subject: Re: copying just / (not /tmp, /usr, etc) (rsync -x failed) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 04:34:15 -0000 On Dec 5, 2007 12:38 AM, Steve Franks 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..