Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - OS corruption: (4 Items)
   
OS corruption  
I have a QNX 4 file system in CF in a partition. While working with it, if abruptly power is removed, is there a chance 
for OS to get corrupted and thus the system is prevented from booting?


Re: OS corruption  
> I have a QNX 4 file system in CF in a partition. While working with it, if 
> abruptly power is removed, is there a chance for OS to get corrupted and thus 
> the system is prevented from booting?
> 
> 


I wouldn't exclude this possibility.
Jeevan
RE: OS corruption  
Is there a way by which this can be avoided so that I can use CF with QNX4 file sytem and can turn the power off 
abruptly even every single time??
________________________________________
From: Jeevan Mathew [community-noreply@qnx.com]
Sent: Monday, June 29, 2009 8:20 PM
To: momentics-community
Subject: Re: OS corruption

> I have a QNX 4 file system in CF in a partition. While working with it, if
> abruptly power is removed, is there a chance for OS to get corrupted and thus
> the system is prevented from booting?
>
>


I wouldn't exclude this possibility.
Jeevan


_______________________________________________
QNX Momentics Community Support
http://community.qnx.com/sf/go/post32731
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
Re: RE: OS corruption  
> Is there a way by which this can be avoided so that I can use CF with QNX4 
> file sytem and can turn the power off abruptly even every single time??

If a write is occurring and the power is removed, corruption can happen.

There are some things that can be done to minimize the problem like:

mount filesytem read-only if/when possible (stops access time update)
open the files synch or use the "blk commit=high" option
umount the filesystem before the power is removed
decrease delayed write time with the "blk delwri" option
create a separate partition for writable files
do not put put writable files in the root directory
pre-grow files after creation
balance directory tree. ie limit directory levels and number of files
One other thing to note is that if power is removed during a write,
subsequent reads will fail until it is written.

Hope this helps.
Jeevan
For more info please post to the experts in the filesystem forum.