RedHat 9: Swap not mounting


I have a RedHat 9 machine (Intel) and everything seems to funcion fine, except the swap partition is not mounting which is slowing the machine way down.  I am wondering if it is because everything in fstab is mounting with "LABEL"?  If so, what do I need to correct?


# swapon -s
Filename                        Type            Size    Used    Priority
(nothing listed here)

# swapon -a
swapon: /dev/hda2: Invalid argument

#cat /etc/fstab
LABEL=/               /                       ext3     defaults        1 1
LABEL=/boot        /boot                 ext3     defaults        1 2
none                    /dev/pts             devpts  gid=5,mode=620  0 0
LABEL=/home      /home                ext3     defaults        1 2
none                    /proc                  proc     defaults        0 0
none                    /dev/shm            tmpfs   defaults        0 0
/dev/hda2            swap                   swap   defaults        0 0

Mike R.Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if the /dev/hda2 is really swap (verify it with: fdisk -l /dev/hda)
then propably swap got corrupted and needs to be rebuild: mkswap /dev/hda2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your fstab seems good to me, so I guess that ravenpl is right. You need to format your swap.
If that doesnt work, I would do an fdisk to delete and create the swap partition from scratch (luckily it is easy to be done in your case)
Mike R.Author Commented:
The mkswap /dev/hda2 worked.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.