From owner-freebsd-questions Fri Oct 25 11:25:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E81037B401 for ; Fri, 25 Oct 2002 11:25:18 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E2B043E77 for ; Fri, 25 Oct 2002 11:25:16 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g9PIPEG05817; Fri, 25 Oct 2002 14:25:14 -0400 (EDT) From: Jerry McAllister Message-Id: <200210251825.g9PIPEG05817@clunix.cl.msu.edu> Subject: Re: Copying filesystem(s) to new install To: jwyeo2@yahoo.ca (Jeffrey Yeo) Date: Fri, 25 Oct 2002 14:25:14 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20021025180213.79554.qmail@web11205.mail.yahoo.com> from "Jeffrey Yeo" at Oct 25, 2002 02:02:13 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I'm moving an existing FBSD 4.4 server install to a new > HDD, and upgrading to 4.7 at the same time. > > I installed 4.7 on the new drive and had hoped to be able > to mount the old drive while running off the new install. > The plan was to copy the contents of the original > filesystem and easily grab the config files as needed. > > There is a knwn problem with the old drive (DMA mode is > broken, PIO only), and this seems to cause the 4.7 kernel > to panic on startup. Although this concerns me a bit, I've > booted the 4.6 install off the old drive and mounted a > partition from the new drive so I can copy some files over. > For comfort, I thought I'd copy everything from / and /usr > (old drive is 6GB, new is 40GB so there isn't a space > issue). > > What is the best way to copy the files from a running > system? The simplest to me seems to be shutdown all the > daemons I'm running and cp -Rp the / and /usr directory > trees. Is there a better approach? If you have some media or connection to make the transfer, probably the best way is with dump and restore. dump 0af /media / cd / restore xf /media etc. ////jerry > > Thanks in advance, > > Jeff > > > > ______________________________________________________________________ > Post your free ad now! http://personals.yahoo.ca > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message