LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-12-2008, 11:05 AM   #1
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
How to know if hard drive is dying?


I'm having very strange problems these days.I could not install 10 diffrenet Linux distros and the errors were everything just not the same.One of them was segmentation fault,then that root fs doesn't exist,then that it can't copy files to partition.The only one I was able to install was Backtrack,but apps just keep crashing and I can't mount any other partition,sometimes it doesn't make it to the login screen,it stops on different lines,like ACPI or eth1 etc.
Could all of this be just because hard drive is dying(because I think that's what's happening)or is more then that?
And I forgot something,on this drive I have XP(just because of my brother,I want to make that clear)and guess what,it's working better then ever.

Last edited by alan_ri; 05-12-2008 at 11:19 AM. Reason: adding info
 
Old 05-12-2008, 11:15 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Golly, hard to say.. It does look like the problem is drive related at first glance, but.... What about bad memory, or a failing IDE controller? Even a failing power supply can lead to numerous (very weird seeming) problems.

What make & model is the drive, and more importantly, how much mileage is on it?
Same for the motherboard-- what is it, and how old is it? How old is the power supply?

If the drive is SMART enabled, perhaps running the SMART self diagnosis tests (the LONG test) on the drive will give you a better idea if the drive is having issues. Under Linux, the SMART command is 'smartctl', and it has a man page. It is part of 'smartmon_tools' or something similar. You will have no trouble locating the package if you don't have it, using Google. It is hosted on Sourceforge.

Good luck, do let us know if/what you learn, or where this leads.

Sasha
 
Old 05-12-2008, 11:30 AM   #3
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733

Original Poster
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Thanks for the quick reply,Sasha.
I did a memory test,and it was ok.I have three slots,and pc came with 256 of RAM and I added 2x256 not so long ago,and I'm sure models are as they should be.The drive is serial ATA IDE and it's about 5 years old,same as motherboard which is VIA P4VT8.Power supply that came with original pc died two weeks ago,so one I'm having now is new.I will check your suggestions.Thanks again!

Last edited by alan_ri; 05-12-2008 at 11:33 AM.
 
Old 05-12-2008, 08:04 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

What was the original PSU size? What did you replace the original with?
 
Old 05-13-2008, 04:42 AM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733

Original Poster
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Hi,onebuck,
The original was ATX 2.03(P4) model 300PA CODEGEN 300W,230V,12V and new one is ATX 1.3/ver.2.03 12V,230V,550W compliant for all kind of CPU and Mainboard.
Today when I booted into Backtrack it said that fs was corrupted and it tried to fix that,and eventually it did.So far things are working and I can mount other partitions,but one thing is strange,it's showing that my root partition is not mounted.Here's the output when I try to mount it;
Quote:
A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
I am root,so I need to check this.I have to give a credit to the people of Backtrack,because without it I don't know how would I be able to fix something.These are the distros that failed to install:
Debian Etch,Debian Lenny,Fedora 8,Ubuntu 8.04,sidux,Absolute Linux,PCLinuxOS 2007,Mandriva 2008.1,and I tried with Slackware 12,but I think that cd1 is corrupted,so it just failed to start,I need to check that too.

Last edited by alan_ri; 05-13-2008 at 05:11 AM.
 
Old 05-13-2008, 04:57 AM   #6
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
Quote:
Originally Posted by GrapefruiTgirl View Post
Golly, hard to say.. It does look like the problem is drive related at first glance, but.... What about bad memory, or a failing IDE controller? Even a failing power supply can lead to numerous (very weird seeming) problems.
Don't forget the possibility of a bad IDE cable, that one made me feel stupid.
 
Old 05-13-2008, 10:23 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by alan_ri View Post
Hi,onebuck,
The original was ATX 2.03(P4) model 300PA CODEGEN 300W,230V,12V and new one is ATX 1.3/ver.2.03 12V,230V,550W compliant for all kind of CPU and Mainboard.
I would check all the supply rails with the PSU loaded. If you have access to a DVM or voltmeter, just make certain all peripheral and system devices are connected at the time of measurement.

Quote:
Originally Posted by alan_ri View Post
<snip> I tried with Slackware 12,but I think that cd1 is corrupted,so it just failed to start,I need to check that too.
You should check the md5sum for the downloaded iso file(s), be sure to get the '.md5' file for each iso. Don't depend on the burn application to check.
 
Old 05-13-2008, 11:17 AM   #8
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
That an XP installation on the same drive is working without issue would cause me to look first at things other than the drive.

Since you cannot install a distro, I would look at the CDROM device first; if it is failing that could be a problem. I have seen instances where a corrupted file on a CD/DVD was NOT caught and led me into all kinds of merry problems.

If not the CDROM device, then possibly the IDE cables, as someone else suggested.

It is also possible (though unusual) that a thermal problem in the HD is causing malfunctions over time with long writes (which an installation certainly is). I would not look for this until I had ruled out a lot of other things though.

Corrupted fs on the drive does suggest a HD problem, so maybe trying to keep the drive (and the mobo disk controller) cooler when doing the installation will gain you something.

If you can get your hands on a copy of Spinrite, you should try that. It will tell you pretty definitively what kind of shape your HD is in, and might even go a long way toward making it useable again if in fact it has a problem.

You might also take a look at the linux command badblocks and see what it tells you.
 
Old 05-13-2008, 11:29 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Dirty CDROM lens?

Quote:
Originally Posted by jiml8 View Post
...CD/DVD was NOT caught and led me into all kinds of merry problems.
Speaking of 'merry problems', I have experienced MANY caused by not defective hardware or corrupted CDs, but dirty lenses in the CD-ROM and/or DVD-ROM drives. OS's wouldn't install, even the IDE controller would sometimes hang because the optical drives were confused, thereby confusing the controller.

I almost resorted to purchasing new optical drive(s) about a year ago, to replace my several-year-old units, but finally it occurred to me to open up the units and clean the lenses with Isopropyl alcohol and a cotton swab.

The grime on the swab was visible, and once removed, the drives have worked like a charm ever since.

Last edited by GrapefruiTgirl; 05-13-2008 at 11:30 AM.
 
Old 05-13-2008, 02:29 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by GrapefruiTgirl
;<snip>

I almost resorted to purchasing new optical drive(s) about a year ago, to replace my several-year-old units, but finally it occurred to me to open up the units and clean the lenses with Isopropyl alcohol and a cotton swab.

The grime on the swab was visible, and once removed, the drives have worked like a charm ever since.
I would suggest denatured alcohol vs isopropyl alcohol/rubbing alcohol. The denatured alcohol will not leave a film on the lense.

BTW, how often do you perform maintenance on your system(s)?
 
Old 05-13-2008, 02:59 PM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by onebuck View Post
Hi,
I would suggest .. The denatured alcohol will not leave a film on the lense.

BTW, how often do you perform maintenance on your system(s)?
Good point re: the denatured stuff. I suppose it would be that which should be in a proper head cleaning kit?

And re: maintenance-- was that question directed at me?
If so, I would say my machine is in a somewhat constant state of maintenance as far as cleaning out the case, sometimes rearranging wires & cables inside, etc (it's rather spartan inside). However, maintenance (the regular kind) doesn't usually include disassembling individual pieces of hardware like the optical drives for lens cleaning.

I have the case open often (like right now as we speak), to make note of chip ID numbers, pinouts to stuff, motherboard connectors, replacing fans with better ones, cleaning the CPU cooler, that kind of stuff.

When my optical drive began acting up, it was almost 4 years old, having been exposed to 4 years of fireplaces nearby, cooking fumes, cigarette fumes and whatever else. That was the first time I decided to take them apart, and since then (that was about a year ago) I have probably done 2-3 more times whether they needed it or not.
 
Old 05-13-2008, 03:18 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You want to use 100% Isopropyl alcohol which does not contain the perfume and oil additives. Other good cleaners if you can find them are Freon-TF or 100% grain alcohol.
 
Old 05-13-2008, 09:12 PM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by michaelk View Post
You want to use 100% Isopropyl alcohol which does not contain the perfume and oil additives. Other good cleaners if you can find them are Freon-TF or 100% grain alcohol.
Denatured alcohol is a ethyl alcohol with either acetone or methanol added to make the alcohol unfit for consumption. If you choose high purity isopropal alcohol (91%) then that would be usable with electronics.

A lot of people get the 71% and use it for electronics. These drug store varieties are not the best to use. To choose 100% grain alcohol for cleaning and consumption would solve a lot of the problems. I would prefer mine with a coke and not straight up an neat.
 
Old 05-21-2008, 11:15 AM   #14
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733

Original Poster
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Thank you all for your replies and thoughts.The pc we were talking about is now in the hands of tehnicians,and I don't know how much more will be,but until now they only know that hard drive is bad.Anyway,9 days without computer,it wasn't easy,so after considering all the facts,I can say that now I'm the owner of the brand new beast with AMD Athlon processor,nvidia grafic etc.etc.Since I always had Intel and ATI and not so powerfull computers you can imagine what I'm going thrue now.This AMD thing is amazing.I will inform you about old pc.
 
Old 05-21-2008, 02:53 PM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Awesome! A new machine is always fun and exciting, like a new car :-)

Have fun!!

Sasha
 
  


Reply



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
Hard drive dying? Lindy Linux - Hardware 2 11-25-2006 03:03 AM
My hard drive is dying... what to do? terence8888 Linux - Software 6 11-23-2006 03:58 PM
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 02:46 PM
Hard drive dying, good backup method cadj Linux - Software 3 12-14-2004 07:28 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:20 PM.

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
Open Source Consulting | Domain Registration