suspend corrupted my hard-disk (VERY BAD)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
linux-source-2.6.20 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
There's a key on my keyboard with a crescent-moon picture that, by default on Edgy, makes my system suspend to RAM. I tried it for the first time yesterday.
After suspending this way, my machine appeared to resume normally. However, the subsequent reboot failed, dumping me into an initramfs shell.
I booted from the live CD, choosing the rescue option. It tried to run a shell from my hard disk, but encountered some error executing sh (the error message didn't have any helpful details).
I booted from the live CD again, choosing the default option. From the live-CD environment, I tried mounting my data partition. Reinstalling the system is no big deal, as long as my data is okay.
The data partition wouldn't mount. Mount just hung.
Reiserfsck said the superblock was corrupted. After pondering my options, I did "reiserfsck --rebuild-sb", which succeeded, but suggested running again with "--rebuild-tree". I did "--rebuild-tree", which succeeded, but dumped many, many files into the "lost+found" directory on the partition. I don't have any way to check whether any files are permanently gone.
So my first question is:
* Is there a way to altogether disable suspend and hibernate?
My other questions are:
* Why would suspend overwrite the superblock of my data partition?
* Why would suspend write to a partition other than the swap partition?
* Since this is suspend to RAM, why would it touch the disk at all?
* Is there any chance that the superblock was the only thing overwritten, or did I (as I assume) lose some files as well?
* Why is a feature that is so potentially destructive the DEFAULT BEHAVIOR FOR A KEY ON THE KEYBOARD??
Notes:
* This is with the new Edgy release, on a machine with two dual-core opterons.
* The volume that got overwritten was a RAID1 volume. Both physical partitions of the RAID volume got overwritten.
I figured I would try suspend again now, since I have a fresh backup of my data (at least, as much as was recoverable after last time). Same thing happened:
* When I push the crescent-moon button, the screen fades to black, then the machine seems to turn off (power LED goes from steady-on to blinking).
* I push the machine's power button, and almost immediately get the screen I had before suspending. No BIOS-POST, no grub; just directly to the suspended state.
* Then the hard-disk LED comes on and stays on.
* From a terminal, I ran "sudo reboot". Got a dozen or so error "unrecognized command" error messages -- like the reboot executable is trying to be interpreted by a shell. Very weird. Halt does the same thing.
Any suggestions of things to try, while my system is already broken?