From owner-freebsd-current Tue Dec 17 3:54:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A21537B404 for ; Tue, 17 Dec 2002 03:54:30 -0800 (PST) Received: from lakemtao02.cox.net (lakemtao02.cox.net [68.1.17.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA4643EB2 for ; Tue, 17 Dec 2002 03:54:29 -0800 (PST) (envelope-from ataraxia@cox.net) Received: from arkadia.nv.cox.net ([68.98.181.29]) by lakemtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20021217115429.VBSF2203.lakemtao02.cox.net@arkadia.nv.cox.net>; Tue, 17 Dec 2002 06:54:29 -0500 Received: by arkadia.nv.cox.net (Postfix, from userid 1001) id 56D94B8BE; Tue, 17 Dec 2002 06:54:28 -0500 (EST) Date: Tue, 17 Dec 2002 06:54:28 -0500 From: Ray Kohler To: Vitaly Markitantov Cc: current@FreeBSD.ORG Subject: Re: How to update UFS1 to UFS2? Message-ID: <20021217115428.GA21179@arkadia.nv.cox.net> References: <20021217092905.GA14421@dics.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021217092905.GA14421@dics.com.ua> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 17, 2002 at 11:29:05AM +0200, Vitaly Markitantov wrote: > Have an existing partition with UFS1 on it. How can i update/convert it > to UFS2? > It is safe make it that way: > dump -0 -f /store/arch.usr /usr > shutdown now > umount -a /usr > mount / > mount /store > newfs -O2 /dev/ad0s2e > restore -f /store/arch.usr About right, but I'd do it just a little differently: shutdown now umount /usr dump 0af /store/arch.usr /dev/ad0s2e newfs -O 2 -U /dev/ad0s2e mount /usr cd /usr restore rf /store/arch.usr -- Ray Kohler As Zeus said to Narcissus, "Watch yourself." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message