LinuxQuestions.org
Visit Jeremy's Blog.
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 08-12-2007, 11:40 PM   #1
greenphreak
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Rep: Reputation: 15
hard drive inexplicably goes read-only after machine is on a couple of hours


Hello all:

I am using an old Athlon-600MHz that I built in 1999 and which has survived with a few RAM and HD upgrades throughout the years. I've been running Ubuntu Dapper Drake on it for the last 1.5 years to great success, however, a few months ago I started encountering hard drive issues. The hard drive started needing fsck to be run manually every few boots, and sometimes, the hard drive would inexplicably change to being read-only a few hours into a session. When I would reboot, things would be ok again, but this happened every few days.

I figured the HD was old and I just needed to replace it (Maxtor IDE 133 120Gb), so I just bought a cheap Seagate Barracuda IDE 100 160Gb and installed Ubuntu Feisty Fawn on it. Much to my dismay, I'm experiencing the *same* problem on the new drive--the system goes read-only after a while. The only thing that I can think might be wrong is bad RAM. Any other suggestions or tests I can do to confirm this, aside from buying new RAM or a new system altogether?

Thanks in advance!

Cameron
 
Old 08-12-2007, 11:45 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Run memtest for a while - should be on the Ubuntu CD I'd imagine.
 
Old 08-12-2007, 11:56 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What does 'dmesg' show after the drive goes read-only?
 
Old 08-17-2007, 01:18 PM   #4
greenphreak
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Run memtest for a while - should be on the Ubuntu CD I'd imagine.
Thanks for the suggestion. I'm going to run it for 24 hours to see what it finds. I'll keep you guys posted!
 
Old 08-17-2007, 01:19 PM   #5
greenphreak
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir View Post
What does 'dmesg' show after the drive goes read-only?
Well, now it hasn't gone read-only all week. But it has given me strange errors like SegFaults when I try to apt-get upgrade, of course, 2 hours later, apt-get works fine. It is very strange indeed. We'll see how this memtest comes out--my RAM is the only thing I can think of that would cause intermittent problems of this nature.
 
Old 08-18-2007, 09:37 PM   #6
greenphreak
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
So I ran memtest86+ on it (right off of the ubuntu CD), and it turns out that my RAM is rife with errors. I reported something like 50,000 errors in the battery of tests, in two particular spots. Fortunately, this machine is old and only has 384Mb of RAM, so I'm just going to invest and grab some cheap, new RAM rather than playing with the badRAM kernel that can just ignore the bad spots in bad ram.

Thanks for the help, everyone! I'll definitely be testing my RAM dimms in the future to look for errors. RAM errors are so sneaky because they look like other kinds of problems.
 
Old 08-22-2007, 01:28 PM   #7
greenphreak
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
I also figured out why the hard drive went readonly after a few hours, in case there is someone who reads this in the future.

By default, ubuntu sets up the main hard drive to be mounted with the following settings (found in /etc/fstab, or just type 'mount' at the prompt to show all mounted systems):

/dev/sda2 on / type ext3 (rw,errors=remount-ro)

Thus, when my drive encountered errors from the bad RAM, it would remount it as read-only. Hence things going awry after a few hours. Anyway, I hope this helps the perusing masses.
 
Old 08-22-2007, 02:30 PM   #8
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by greenphreak View Post
So I ran memtest86+ on it (right off of the ubuntu CD), and it turns out that my RAM is rife with errors. I reported something like 50,000 errors in the battery of tests, in two particular spots. Fortunately, this machine is old and only has 384Mb of RAM, so I'm just going to invest and grab some cheap, new RAM rather than playing with the badRAM kernel that can just ignore the bad spots in bad ram.

Thanks for the help, everyone! I'll definitely be testing my RAM dimms in the future to look for errors. RAM errors are so sneaky because they look like other kinds of problems.
---------------
Why not compile and use badRAM in the kernel and be absolutely sure that it is a RAM issue before you buy new? Besides, if it works and performance isn't an issue afterwards, you'ved saved enough money to take the little woman out on a cheap date.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
huge slowdown after a couple of hours j0ly Linux - Newbie 1 04-11-2007 01:37 PM
how do I wipe a couple of hard drive in an Ultra 60 scottie4442 Solaris / OpenSolaris 8 09-14-2006 01:02 PM
New mobo worked fine couple of hours then siwtches off after adding memory stick. rblampain Linux - Hardware 4 02-14-2006 08:17 AM
Drive cant be read after a few hours robdeweese Linux - Software 1 10-27-2005 06:29 PM
EZ-Drive Hard Drive -- Cannot Read Contents redhatman Linux - Newbie 3 09-02-2004 06:37 PM

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

All times are GMT -5. The time now is 07:13 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