Date: Sat, 02 Oct 2010 14:42:08 +0200 From: "Ronald Klop" <ronald-freebsd8@klop.yi.org> To: freebsd-fs@freebsd.org Subject: Re: Data loss when hard shutdown! Message-ID: <op.vjx78i0i8527sy@212-123-145-58.ip.telfort.nl> In-Reply-To: <AANLkTik53kP7K-EcHy=uO2QdAJe5r7MvJxmbsCQ_b0Ye@mail.gmail.com> References: <AANLkTi=eib81J1zUT_HmPcXOBFiLDFmyA8Q-KZV5HikE@mail.gmail.com> <op.vjx6e4o08527sy@212-123-145-58.ip.telfort.nl> <AANLkTik53kP7K-EcHy=uO2QdAJe5r7MvJxmbsCQ_b0Ye@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 02 Oct 2010 14:19:12 +0200, Phan Quoc Hien =20 <phanquochien@gmail.com> wrote: > Thanks for your respond.! > Yes. I pulled the power plug . > I edited rc.conf and save it then pulling the power plug. And system bo= ot > next time rc.conf is a blank file...! Don't pull the power plug if you don't have to. The command to reboot is = =20 'shutdown -r now' and than all pending data will be saved safely. Ronald. > On Sat, Oct 2, 2010 at 7:02 PM, Ronald Klop =20 > <ronald-freebsd8@klop.yi.org>wrote: > >> On Sat, 02 Oct 2010 13:28:59 +0200, Phan Quoc Hien =20 >> <phanquochien@gmail.com> >> wrote: >> >> hello everybody. >>> I'm new to freebsd, When I hard shutdown my freebsd box..it caused lo= st >>> 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= =20 >> data. >> That can be the complete contents of a new file. >> >> If it is really important you can mount your filesystem 'sync' see 'ma= n >> 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" >> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vjx78i0i8527sy>