LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error enabling swap device (https://www.linuxquestions.org/questions/linux-newbie-8/error-enabling-swap-device-4175420947/)

windstory 08-08-2012 01:56 AM

error enabling swap device
 
2 Attachment(s)
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.

sharadchhetri 08-08-2012 02:27 AM

Quote:

Originally Posted by windstory (Post 4748679)
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

sharadchhetri 08-08-2012 02:34 AM

Quote:

Originally Posted by sharadchhetri (Post 4748698)
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

windstory 08-08-2012 03:17 AM

1 Attachment(s)
sharadchhetri/

Ths result is this picture.

And I restarted my box, but I got black screen.

chrism01 08-08-2012 07:26 PM

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.


All times are GMT -5. The time now is 02:18 PM.