From owner-freebsd-fs@FreeBSD.ORG Sat Oct 2 12:20:06 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F6891065674 for ; Sat, 2 Oct 2010 12:20:06 +0000 (UTC) (envelope-from phanquochien@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2728FC08 for ; Sat, 2 Oct 2010 12:20:00 +0000 (UTC) Received: by wwi18 with SMTP id 18so64542wwi.1 for ; Sat, 02 Oct 2010 05:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=xrXqo/x4RIwnxLrxzvMxRnWP/uQFyIGPSj972XIgB3I=; b=YPWAiM74Wp6mTiZ7Op++r1IV9pTDmnXqRWFi9bnC5QaBWT6PWvOj63sqHAyoyWJoXL 5G8mmH0Mv9O/Hq9p9ZMRpl622rULPfPSlw1OiIJviTX7xteYNNUz8NBH90EuPb8K957q 4s9DpMWeXOu6qu2xsGztpbrTFUd2TeH79nCwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=m/WgWQgtTPVmLOidFS1Zdmh8jdZzvW6FNauVrU3cjK2T1e2q0U94t2v2fgNnZRDfkx u+8ZmNTIH32D5xE58jXqlFh/oIlR0AhNYiuJDGy+ch1YBlzXiEU0DsykO4msMZnU14wv 3UhcnLj103JjCli+G1vFZLjfhB+DV4k3vnNOk= MIME-Version: 1.0 Received: by 10.227.137.15 with SMTP id u15mr5885391wbt.129.1286021952810; Sat, 02 Oct 2010 05:19:12 -0700 (PDT) Received: by 10.227.142.194 with HTTP; Sat, 2 Oct 2010 05:19:12 -0700 (PDT) In-Reply-To: References: Date: Sat, 2 Oct 2010 19:19:12 +0700 Message-ID: From: Phan Quoc Hien To: Ronald Klop Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: Data loss when hard shutdown! X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2010 12:20:06 -0000 Thanks for your respond.! Yes. I pulled the power plug . I edited rc.conf and save it then pulling the power plug. And system boot next time rc.conf is a blank file...! On Sat, Oct 2, 2010 at 7:02 PM, Ronald Klop wrote: > On Sat, 02 Oct 2010 13:28:59 +0200, Phan Quoc Hien > wrote: > > hello everybody. >> I'm new to freebsd, When I hard shutdown my freebsd box..it caused lost >> some >> file. I used UFS2. How can prevent that? or recovery my file? >> Thanks! >> >> > By hard shutdown you mean pulling the power plug? > > UFS2 (and most other filesystems on other operating systems) guarantee > consistency of metadata (filenames, directory structures, etc.) after a > crash. However it is possible to loose the last X seconds of unwritten data. > That can be the complete contents of a new file. > > If it is really important you can mount your filesystem 'sync' see 'man > mount' in which case it will become slow, but more up-to-date. > > Ronald. > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > -- Best regards, Mr.Hien E-mail: phanquochien@gmail.com Website: www.mrhien.info