Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


Search this Thread
Old 07-26-2007, 03:42 PM   #1
Registered: Nov 2004
Posts: 83

Rep: Reputation: 18
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.
Old 07-26-2007, 04:34 PM   #2
LQ Newbie
Registered: May 2007
Location: Memphis
Distribution: Slackware 12.0
Posts: 18

Rep: Reputation: 0
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?
Old 07-26-2007, 04:56 PM   #3
Registered: Nov 2004
Posts: 83

Original Poster
Rep: Reputation: 18
Yes the system has been running without any problems for about 2 months now. what should i use to scan the partition?
Old 07-26-2007, 05:02 PM   #4
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.

Last edited by MS3FGX; 07-26-2007 at 05:03 PM.
Old 07-27-2007, 08:12 AM   #5
Registered: Nov 2004
Posts: 83

Original Poster
Rep: Reputation: 18
Thanks for the quick response.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 1 swap device does not start automatically upon restart Akhran Linux - Newbie 8 10-11-2006 05:45 PM
fsck.ext2Posibbly non-existent or swap device? aerojazz Linux - Newbie 2 06-21-2006 11:18 PM
Error enabling swap device hda3 Eileen Linux - Software 3 03-06-2006 06:26 PM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
label swap device equinox Linux - General 2 02-17-2005 12:41 AM

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration