LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   swap device error (http://www.linuxquestions.org/questions/slackware-14/swap-device-error-572523/)

l0rddarkf0rce 07-26-2007 04:42 PM

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

Quote:

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 05: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 05: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 06:02 PM

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

So the full process would look something like:

Code:

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

Substituting whatever your swap device is on the system.

l0rddarkf0rce 07-27-2007 09:12 AM

Thanks for the quick response.


All times are GMT -5. The time now is 04:42 PM.