LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 04:42 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 87

Rep: Reputation: 18
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, 05: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, 05:56 PM   #3
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 87

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, 06:02 PM   #4
MS3FGX
Guru
 
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:

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 06:03 PM.
 
Old 07-27-2007, 09:12 AM   #5
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 87

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


Reply


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 06:45 PM
fsck.ext2Posibbly non-existent or swap device? aerojazz Linux - Newbie 2 06-22-2006 12:18 AM
Error enabling swap device hda3 Eileen Linux - Software 3 03-06-2006 07:26 PM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 10:48 AM
label swap device equinox Linux - General 2 02-17-2005 01:41 AM


All times are GMT -5. The time now is 03:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration