From owner-freebsd-questions@FreeBSD.ORG Sat Jan 13 23:55:36 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDFC016A403 for ; Sat, 13 Jan 2007 23:55:36 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4492C13C467 for ; Sat, 13 Jan 2007 23:55:36 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so968341uge for ; Sat, 13 Jan 2007 15:55:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=LoKHu6vfRPwn34SzerwMyYO6KQfBB35XikQ9px/jDDWkFhLmymRCv1RYdyLw0Z9OzSz5Tu+5DSLHVD4HatWRGgikbyH99ToAFij3Q5fomnRqvTdk684i+gxoFJq8ECNnQNRXNZRP6HJUCd7guNhggpRAVx4MuUb5Wa7cTjbKmBc= Received: by 10.78.136.9 with SMTP id j9mr1476722hud.1168732534872; Sat, 13 Jan 2007 15:55:34 -0800 (PST) Received: by 10.78.164.20 with HTTP; Sat, 13 Jan 2007 15:55:34 -0800 (PST) Message-ID: Date: Sun, 14 Jan 2007 02:55:34 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Daniel A." In-Reply-To: <5ceb5d550701131508t2922edccw5c4ff5c769012aa7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5ceb5d550701131508t2922edccw5c4ff5c769012aa7@mail.gmail.com> X-Google-Sender-Auth: c9b0328b1be0c334 Cc: FreeBSD Questions Subject: Re: Put /usr on a different drive 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: Sat, 13 Jan 2007 23:55:36 -0000 On 1/14/07, Daniel A. wrote: > Hi, > I'm wondering if someone could point me in the right direction of > moving the entire /usr partition to a second hard disk, given that I > am on an existing (newly installed) install of FreeBSD. First, you need to copy all the stuff over. You can use dump(8)/restore(8), or mount /usr read-only, new /usr read-write (under a temporary mount point like /mnt) and use tar(1), cpio(1L), or cp(1). Then it's just a matter of unmounting /usr and mounting your new device under this mount point. Don't forget to edit the fstab(5) entry. > Also, is it possible to specify something like this during the > installation itself? Just partition your second drive and define any mount point on any of it's partitions - everything will be fine.