Power Down

David Woodhouse dwmw2 at infradead.org
Wed Dec 8 10:04:41 EST 1999

rcanup at go2fax.com said:
>  Vipin's original post said that he saw bad sectors about once in
> every 250 power down cycles. Oran is telling us that can't occur.

At the block device level, that definitely shouldn't occur. The ext2 may of 
course get confused, but that's why you should be using ext3 on it if you ever 
expect it to lose power.

> Of course if my analysis is correct then you are safe to erase the bad
> sector - it was the last one being written; the file system would then
> be left in a state in which e2fsck could hopefully repair it. 

With NFTL, that's definitely the way it's designed. You write the data, write
the ECC checksum, and then mark it valid. The old version of that block remains
on the media until it's later reclaimed.

If you are interrupted during a write, it's obvious and can be fixed.


To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org

More information about the linux-mtd mailing list