LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-26-2007, 03:42 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
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.
 
Old 07-26-2007, 04:34 PM   #2
nakedlunch
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
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
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
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

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

Last edited by MS3FGX; 07-26-2007 at 05:03 PM.
 
Old 07-27-2007, 08:12 AM   #5
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:30 AM.

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