-   Slackware (
-   -   swap device error (

l0rddarkf0rce 07-26-2007 03:42 PM

swap device error
My system just locked up and I got a message on the console that said


Read-error on swap device (8:0:152266141)
Any ideas of what this means, what caused it, and how to fix it.

nakedlunch 07-26-2007 04:34 PM

I take it this has been a functioning system for some time, up until now? This is only my best guess, but it sounds like it might be a bad block on your hard disk. Have you tried scanning that partition?

l0rddarkf0rce 07-26-2007 04:56 PM

Yes the system has been running without any problems for about 2 months now. what should i use to scan the partition?

MS3FGX 07-26-2007 05:02 PM

You can use the -c option of mkswap to check for bad blocks.

So the full process would look something like:


sudo swapoff -a
sudo mkswap -c /dev/hdaX
sudo swapon -a

Substituting whatever your swap device is on the system.

l0rddarkf0rce 07-27-2007 08:12 AM

Thanks for the quick response.

All times are GMT -5. The time now is 11:31 AM.