Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is /dev/hda hosed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Tue Dec 14, 2004 5:57 pm    Post subject: Is /dev/hda hosed? Reply with quote

A couple of weeks ago, I started getting errors like this in /var/log/messages.

Dec 2 07:42:37 littleboy hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Dec 2 07:42:37 littleboy hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=3707147, sector=3707146
Dec 2 07:42:37 littleboy end_request: I/O error, dev hda, sector 3707146

As time went on, I started having trouble shutting down. I would init 0 and the com would hang when tryng to remount hda ro. I would inevitably crash the machine, and then fsck.jfs -f with a knoppix disk. This usually produced a BUNCH of UncorrectableErrors as above. My laptop seems to still boot, but shutdown is always an adventure. My questions...

1) am I screwed? Is there some magic I can do to fix my hd?

2) What is te FS type that survives crashes the best? I am not impressed with JFS. I have a laptop with a battery with about 10 minutes of life. I inevitably drop the system occasionally, and I require a fstype that can take it.

3) If I have to get a new HD (which is not a problem - I am under warantee), what is the best way to backup and restore my gentoo system as is? I have put many hours into customizing my desktop environment, and don't want to lose any of my work.

As Always, thanks for the help. This is the best linux forum in the universe.

erich
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Tue Dec 14, 2004 6:01 pm    Post subject: Re: Is /dev/hda hosed? Reply with quote

ewtrowbr wrote:
I inevitably drop the system occasionally, and I require a fstype that can take it.


The hard drive is most likely failing. Possibly due to being dropped. If you treat your system like trash this will happen regardless of what filesystem you use..
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
stettler
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2004
Posts: 113
Location: Germany

PostPosted: Tue Dec 14, 2004 6:17 pm    Post subject: Reply with quote

smartctl probably tells you more about the HD problem. BTW, I would immediately backup my data.

Best regards,
stettler
_________________
Claiming that your operating system is the best in the world because more people use it, is like saying McDonalds makes the best food in the world.
Back to top
View user's profile Send private message
jschellhaass
Guru
Guru


Joined: 20 Jan 2004
Posts: 341

PostPosted: Tue Dec 14, 2004 6:19 pm    Post subject: Reply with quote

emerge smartmontools and configure.

At worst your hd is failing. It's also possible there are some bad sectors now that were originally marked as good. The SMART system of modern drives will try and correct for bad sectors.

If the data on the sector is readable (recoverable) the sector will be remapped automatically. If the data is not readable the sector will NOT be remapped by the SMART system. This avoids arbitrary data loss. If the system tries to write to a sector that was originally marked as good and has gone bad since, the sector will be remapped. i.e. if you were to try and rewrite the same data to the bad block it would be remapped, if the spares area is not already full.

jeff
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Tue Dec 14, 2004 7:36 pm    Post subject: Reply with quote

when I said "drop the system" I meant, unplanned shutdown. Not "spike it and do a dance in the endzone". Sorry about the confustion.

Thanks for smartmontools. I'm emerging now. I think it's gonna fix me.

erich
Back to top
View user's profile Send private message
freak4u
n00b
n00b


Joined: 04 Jul 2003
Posts: 69
Location: MA, USA

PostPosted: Fri Jan 07, 2005 3:29 pm    Post subject: Reply with quote

If you have another system, dd worked great for me.
Code:
dd if=/dev/fulldrive of=(either /dev/new hd *OR* /filename to dump to)
if you choose the file name, you then have to
Code:
dd if=/filename of=/dev/newdrive

_________________
Making computing a safer place...one less Windoze box at a time
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum