From owner-freebsd-questions Fri Oct 6 12:42:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 652CE37B66C for ; Fri, 6 Oct 2000 12:42:38 -0700 (PDT) Received: (qmail 7184 invoked by uid 100); 6 Oct 2000 19:42:37 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14814.11053.612588.948322@guru.mired.org> Date: Fri, 6 Oct 2000 14:42:37 -0500 (CDT) To: Jim Thario Cc: questions@freebsd.org Subject: Re: Moving partitions In-Reply-To: <67616234@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jim Thario writes: > I have a 686 running FreeBSD 4.x with a 4 gigabyte hard disk. I'm going > to add a 15 gigabyte disk to the machine and split the space on this > disk between /var and /usr/home. Once the drive is installed, > partitioned, formatted, ready and willing - is there anything special I > need to consider when copying the directories and files over? > > Here is my process: mount the new /var parition as /newvar, for > instance, and do a "cp -Rp" to copy everything over from /var to the > /newvar partition. I will do the copy in single-user mode for extra > safety. Next, I would add the entries into /etc/fstab for the new > partition and restart the system. If that works, I will do the same for > /usr/home. > Am I missing anything? Yes - you'll hose hard links. > Is there a better or safer way to move this stuff? Check the FAQ .