LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2012, 02:56 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
error enabling swap device


My box is scientific linux 6.0 and I got an error message when I try to uprade.


"error enabling swap device"

I attatched two pictures showing error message and "/etc/fstab".

Please let me know hot to resolve this error.

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	20120808_swaperror_1.jpg
Views:	14
Size:	50.8 KB
ID:	10302   Click image for larger version

Name:	20120808_swaperror_2.jpg
Views:	17
Size:	123.8 KB
ID:	10303  
 
Old 08-08-2012, 03:27 AM   #2
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by windstory View Post
My box is scientific linux 6.0 and I got an error message when I try to uprade.


"error enabling swap device"

I attatched two pictures showing error message and "/etc/fstab".

Please let me know hot to resolve this error.

Thanks in advance.
try
swapon -a
 
1 members found this post helpful.
Old 08-08-2012, 03:34 AM   #3
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sharadchhetri View Post
try
swapon -a
check is uuid correct.
swapon -s
you will get in which partition swap is there

then

use blkid , by this you will get uuid
 
1 members found this post helpful.
Old 08-08-2012, 04:17 AM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
sharadchhetri/

Ths result is this picture.

And I restarted my box, but I got black screen.
Attached Thumbnails
Click image for larger version

Name:	20120808_swaperror_3.jpg
Views:	20
Size:	148.2 KB
ID:	10304  
 
Old 08-08-2012, 08:26 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you x-ref the UUIDs from the fstab and the last output, you'll see the one for swap is missing & there's a new partition sda4 with a new UUID starting 22...
Looks like you've overwritten the swap partition to be a std Linux one.
Try
Code:
fdisk -l
lowercase 'L' switch there.
 
  


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
Write-error on swap-device error on package install slack 12.2 chickenlinux Slackware 11 01-25-2009 09:14 PM
Read-error on swap-device(9:0:8) andyknvs Linux - Newbie 2 02-27-2008 03:29 AM
swap device error l0rddarkf0rce Slackware 4 07-27-2007 09:12 AM
Error enabling swap device hda3 Eileen Linux - Software 3 03-06-2006 07:26 PM
error enabling swap space endezeichen Linux - General 3 11-20-2003 10:05 PM


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