Data loss when hard shutdown!

Phan Quoc Hien phanquochien at gmail.com
Sat Oct 2 12:20:06 UTC 2010


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 <ronald-freebsd8 at klop.yi.org>wrote:

> On Sat, 02 Oct 2010 13:28:59 +0200, Phan Quoc Hien <phanquochien at gmail.com>
> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>



-- 
Best regards,
Mr.Hien
E-mail: phanquochien at gmail.com
Website: www.mrhien.info


More information about the freebsd-fs mailing list