From owner-freebsd-current Tue Dec 17 8:47:48 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 DB7BA37B401 for ; Tue, 17 Dec 2002 08:47:46 -0800 (PST) Received: from energistic.com (bdsl.66.12.217.106.gte.net [66.12.217.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id A51A143EB2 for ; Tue, 17 Dec 2002 08:47:45 -0800 (PST) (envelope-from steve@virtual-voodoo.com) Received: from inlafrec (bdsl.66.12.217.43.gte.net [66.12.217.43]) (authenticated bits=0) by energistic.com (8.12.6/8.12.6) with ESMTP id gBHGlNbp032649; Tue, 17 Dec 2002 11:47:24 -0500 (EST) (envelope-from steve@virtual-voodoo.com) Message-ID: <002a01c2a5eb$fc3c8f00$2bd90c42@officescape.net> From: "Steven Ames" To: "Ray Kohler" , "Vitaly Markitantov" Cc: References: <20021217092905.GA14421@dics.com.ua> <20021217115428.GA21179@arkadia.nv.cox.net> Subject: Re: How to update UFS1 to UFS2? Date: Tue, 17 Dec 2002 11:47:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 a related topic... how do you tell which of your filesystems are mounted UFS1 -vs- UFS2? 'mount -v' just says ufs. -Steve ----- Original Message ----- From: "Ray Kohler" To: "Vitaly Markitantov" Cc: Sent: Tuesday, December 17, 2002 6:54 AM Subject: Re: How to update UFS1 to UFS2? > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message