Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to handle a broken harddrive
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
janlaur
n00b
n00b


Joined: 14 Jun 2003
Posts: 57
Location: Denmark, Århus

PostPosted: Sun Feb 06, 2005 11:21 pm    Post subject: How to handle a broken harddrive Reply with quote

Hi
I have a external 250G usb harddrive, connected using USB2.
It's a few years old, and it's become 'a little broken', which means that once a process touches certain files it breaks down.

By break down, I mean that the process hangs forever, and cannot be killed in any way i know (kill -9 dosn't work). The same goes for every other process that in any way access the mount.
That means that i cannot quit X if some X-process accessed the mount, i cant shutdown and so on.
So whenever my drive breaks down, my only sollution now i to pull the plug.

I am using ext3, with a 2.6.10 kernel.

The perfect sollution for me, would be that whenever the kernel cannot read something, the reading software gets an error, and perhaps breaks down if it cant handle it. I just don't like having un-killable processes.

Another sollution could be to have a tool detect defects, reserve the defect space with a file, and then do a chmod 000 on it. (I wouldn't know how to do that).
And i know the final sollution is to buy a new one, just dont like throwing something out that works 99%. And i dont like that windows actually does a perfect job here, when linux dosn't
_________________
Det var mig der omsmeltede guldhornene
Back to top
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Sun Feb 06, 2005 11:42 pm    Post subject: Re: How to handle a broken harddrive Reply with quote

If you get an unkillable process, find the parent of that process and kill that. Do a 'man ps' and it'll explain all about this and how to deal with it.

As to Windows dealing better with a broken HDD, that's just Windows covering up what Linux/Unix lets you know about NOW. Believe me, when a drive starts to go bad, you want to know about it immediately, and then get rid of the thing even faster than immediately!
Back to top
View user's profile Send private message
GungHo
Apprentice
Apprentice


Joined: 27 Aug 2004
Posts: 254

PostPosted: Thu Feb 10, 2005 9:51 am    Post subject: Reply with quote

do yourself a favour and buy a new one 8)

If you intend to format it with reiser, you can work around defect sectors, see here http://www.namesys.com/bad-block-handling.html

But there is also the recommendation to buy a new one.

Good luck
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