From owner-freebsd-questions Mon May 17 16: 9:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.fisicc-ufm.edu (unknown [209.198.197.202]) by hub.freebsd.org (Postfix) with ESMTP id A05F515086 for ; Mon, 17 May 1999 16:08:59 -0700 (PDT) (envelope-from obonilla@voyager.fisicc-ufm.edu) Received: (from obonilla@localhost) by voyager.fisicc-ufm.edu (8.9.3/8.9.3) id RAA45836; Mon, 17 May 1999 17:07:54 -0600 (CST) (envelope-from obonilla) Date: Mon, 17 May 1999 17:07:54 -0600 From: Oscar Bonilla To: Zhihui Zhang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Newfs on an existing filesystem Message-ID: <19990517170754.L388@fisicc-ufm.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Zhihui Zhang on Mon, May 17, 1999 at 05:21:42PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 17, 1999 at 05:21:42PM -0400, Zhihui Zhang wrote: > > Just for curiosity, if I newfs on an existing filesystem, will the > contents of the old filesystem be erased completely? I guess that the > existing filesystem must be unmounted before doing so. If using same > parameters in newfs as in the old filesystem, the contents of the old > filesystem will be saved (I have to do a fsck though). Am I right? > you're wrong. when you do a newfs you rewrite the inode table thus deleting the info of how to get to your files. regards, -Oscar -- For PGP Public Key: finger obonilla@fisicc-ufm.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message