Re: Interesting fs corruption story

From: Ettore Perazzoli (ettore@ximian.com)
Date: Tue Mar 06 2001 - 20:10:10 EST


On 06 Mar 2001 17:01:02 -0800, Tim Wright wrote:
> Hi Ettore,
> I have no idea if this is related to your problem since you didn't mention
> that key part, but with the same drive, I managed to trash my root partition
> incredibly badly by trying to use DMA and then do APM suspend or hibernate.
> On wakeup, I'd get an 'hda: lost interrupt' but then things would appear to
> carry on.
>
> The fix for me was to rebuild the kernel and make sure CONFIG_APM_ALLOW_INTS
> was enabled. So, do you ever use power management and is this similar, or do
> you have a completely different problem ?

  Wow, this sounds like this might be the problem. I just checked my
`.config' and indeed `CONFIG_APM_ALLOW_INTS' is not enabled. And indeed
I have been suspending/resuming the machine a few times before the
partition got corrupted.

  So, does DMA work correctly on your system after setting this option?
I have now disabled it completely as a safety measure (and as suggested
by somebody else on this list), and indeed I have not had any more
troubles for now. (I have been forcing a fsck every day before turning
the machine off.)

  Thanks a lot for the hint! I will now rebuild my kernel with that
option turned on.

-- 
Ettore
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:21 EST