Solved

Swap File Partition and Disk Drive Light

Posted on 1998-02-18
8
225 Views
Last Modified: 2013-12-06
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?
0
Comment
Question by:grsshpper
8 Comments
 

Expert Comment

by:spjuver
ID: 1636148
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
 

Author Comment

by:grsshpper
ID: 1636149
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
 

Expert Comment

by:spjuver
ID: 1636150
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:grsshpper
ID: 1636151
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
 

Expert Comment

by:spjuver
ID: 1636152
You don't have /proc/swaps.

Do you have /proc mounted??

Otherwise this is a very strange thing...
0
 
LVL 4

Expert Comment

by:jlms
ID: 1636153
Most probably your hard disk led is not properly connected, this could be particularly true if your machine is hime made...
0
 

Accepted Solution

by:
wreack earned 100 total points
ID: 1636154
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
 

Author Comment

by:grsshpper
ID: 1636155
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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question