From owner-freebsd-questions Mon Nov 22 3:35:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from moon.mteege.de (ppps-nb03.MVnet.de [194.25.108.153]) by hub.freebsd.org (Postfix) with ESMTP id 8972B14DA2 for ; Mon, 22 Nov 1999 03:35:51 -0800 (PST) (envelope-from matthias@mteege.de) Received: (from matthias@localhost) by moon.mteege.de (8.8.8/8.8.8) id LAA01870; Mon, 22 Nov 1999 11:56:40 +0100 (MET) (envelope-from matthias) Date: Mon, 22 Nov 1999 11:56:40 +0100 From: Matthias Teege To: Edward Knight Cc: "questions@FreeBSD.ORG" Subject: Re: copying filesystems into larger disk Message-ID: <19991122115640.A712@moon.mteege.de> References: <3837D44A.A4D8544F@bellsouth.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3837D44A.A4D8544F@bellsouth.net>; from efknight@bellsouth.net on Sun, Nov 21, 1999 at 11:15:23AM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Nov 21, 1999 at 11:15:23AM +0000, Edward Knight wrote: > My original FBSD disk is running out of space. I got a larger disk and > partitioned it > for FBS, created larger filesystems with the same mount points using the > minimal instalation. > > Now I want to use cpio to copy the filesystems from the old disk to the > new one. I think this is what I need to do, please correct me if I'm > wrong. There is a nice paper about "new disks" on www.freebsd.org. It is an step by step introducing. This paper describes also the copying of file systems with the "pax" command. I use it and it works great. Hope this helps Matthias > > >From / in the old disk do find . -depth -print > /usr/tmp/fs.cp > > Connect the new disk as primary on the secondary IDE controller > mount /dev/wd1s1a /mnt > mount /dev/wd1s1e /mnt/var > mount /dev/wd1s1f /mnt/usr > > cpio -pdumvt /mnt > This should unconditionaly overwrite the files in the minimal > instalation and copy in all the > stuff from the old disk. > I am assuming all links will be copied/created on the new disk as links. > > Thanks, > Ted Knight > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Matthias Teege -- matthias@mteege.de -- http://emugs.de make world not war PGP-Key auf Anfrage To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message