Swap File Partition and Disk Drive Light

I installed a quite old version of Red Hat Linux about 6 months ago. I noticed that the Hard Disk Light was always on, but since there did not seem to be any actual access of the Disk I did not worry about it too much. I also heard
various explanations, the most plausible of which seemed to be that there was a bug in the Disk Controller Software.

Anyway, I upgraded to Red hat ver 5 a couple of days ago. I still have the disk light problem but when I run XWindows, (i.e. the version that came with Red Hat 5) there is a Control Panel Program which has an option called "System Configuration". When that is activated it reports "Partition /dev/hda2 seems to have been deleted. Shall I remove it from
etc/fstab ?"

Regardless of whether I say Yes or No to this prompt. If I then close the System Configuration Application, the hard Disk Light always goes out and stays out for the duration of the session (except for when the system needs to legitimately read something from the hard disk).

Note also that if I edit fstab to take out the /dev/hda2 i.e the swap partition, it always reappears in fstab.

Does anyone have any ideas/suggestions/comments as to what is happening and more importantly, can they tell me how
to fix the problem permanentlyand correctly?
grsshpperAsked:
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.

spjuverCommented:
Which kind of harddisk is it??
Which kind of IDE interface is it?
Which verion of kernel??
What drivers is compiled in the kernel??
What's in the BIOS for tha harddisk??
Do you have more harddisks on the same IDE-cable??
If you have what is tha for kind of harddisk??

I know that there can be problems with old IDE harddisks on E-IDE controllers. A combination of the BOIS-settings, kernel driver settings and BIOS with an old harddisk can cause problems.

If the HDD light lit when you have halt the machine DO NOT SWITCH THE POWER OFF!!!
I did and it was just to kiss thee HDD's good bye...


0
grsshpperAuthor Commented:
The Hard Disk is a Seagate 1 Gigabyte Drive.
I will get the answers to the other questions, and post them here. However, I suspect the problem is related to the swap
partition rather than the hardware.
Also, I can solve the problem by running the System Configuration Application in X-Windows. What I really want to be able to do is to fix it without running X-Windows.
0
spjuverCommented:
OK,

What you say is that the fstab is showing an unexisting hda2 which is tied as swap.

That means you have done swapon on this partition, right??
Then you could find hda2 in mtab as well.

What shows swapon -s??

Try a swapoff before edit fstab.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

grsshpperAuthor Commented:
I took out the reference to the /dev/hda2 swap file from fstab and it has stayed out, but the light still stays on.

I ran swapon and swapoff - they both give the same message :
/proc/swaps : no such file or directory




0
spjuverCommented:
You don't have /proc/swaps.

Do you have /proc mounted??

Otherwise this is a very strange thing...
0
jlmsCommented:
Most probably your hard disk led is not properly connected, this could be particularly true if your machine is hime made...
0
wreackCommented:
Use fdisk and verify that the swap pertation is indeed there ,,if not vreat one...If it is delete and remake the swap.
I had something liek that on a ATT-486 computer with RH 4.1
0

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
grsshpperAuthor Commented:
wreack, if I follow your procedure, does that mean I have to
compltely reinstall Linux and the Win 3.1 stuff I have on another
partition on the same HDD ?

When you answer this question I will give your answer a rating
0
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
Linux Distributions

From novice to tech pro — start learning today.