I need help recovering from a stupid mistake. I was using an old laptop hard drive to evaluate a Linux distro (PCLinuxOS), and have invested some time in customizing it or I would just start over.
It was connected via an IDE/USB adapter cable and was in the middle of a session with the laptop asleep. Without thinking, I decided that was a good time to stick the drive in an enclosure. I disconnected it from the laptop, mounted it in an enclosure, and plugged it into another computer to verify that it was working.
The other computer threw a message that the drive was locked. I disconnected it and plugged it back into the sleeping laptop. The laptop then didn't like the drive either and wouldn't wake from sleep (I forget what the error message was), so I rebooted.
At that time, it booted but didn't accept a login. I tried looking at the drive after booting another Linux distro, but the file manager wouldn't open anything. I used dmesg to check the log and it reported recovery failed, error loading journal.
I tried booting into the recovery option. That reached the point where it tried to mount the drive and failed (message about kernel panic). I tried rebooting normally again (the previous time, it offered to let me start a new session but I didn't understand the options). This time it never got to the login. After the initial loading, it went directly to the same kernel panic message.
Is there a way to bypass these protections to clean out the previous session (contains nothing important), and clear the journal, or do I need to reinstall Linux on the drive?
Update: This problem had two unexpected twists. First, I diagnosed a concurrent hardware issue. However, the actual Linux issue turned out to be non-trivial. Removing the drive (and perhaps accessing it on another system and/or running the Linux recovery?), caused corruption that fsck did not completely fix, and which caused problems but no error messages. So it's a cautionary warning not to blindly trust a tool like fsck to perfectly recover from known corruption. You need to remain vigilant for what may seem like unrelated problems that manifest after the recovery.