On Tue, Dec 06, 2016 at 08:43:46PM +0100, Pau Amaro-Seoane wrote:
> Hello:
> 
> I am working on a thinkpad x220, running OpenBSD 6.0 amd64. I had just
> checked the battery status, which was about 230 minutes. I stood up,
> walked away from the laptop and then realised that it was rebooting.

If the OS needs to stop due to a severe problem, it will crash(8). 
(That's a great man page, by the way.)


This assumes that the hardware is working and there is enough
of the OS still running to be able to crash().

Random reboots without a crash() most commonly are caused by hardware
problems.  While it is possible to have a software root cause, the
odds of a hardware problem are much higher.

> This could lead to a mess in the filesystem, which, of course, I would
> like to avoid.

Ignoring any changed data being written due to the problem ...

The risk of a filesystem problem is low.  The filesystem inspection on 
reboot is an fsck(8) preen, which only makes simple, minor repairs. 

The risk of data loss can be lowered further by mounting FFS filesystems 
without using soft dependencies, as metadata changes will not be staged 
but written as they occur.  "nosoftdep" is the default on OpenBSD.  See 
mount(8) for more information.
_______________________________________________
Openbsd-newbies mailing list
Openbsd-newbies@sfobug.theapt.org
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to