Bad Sector tools?

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
Judah
Posts: 18
Joined: Tue Mar 14, 2006 12:10 pm

Bad Sector tools?

Post by Judah » Wed Oct 11, 2006 11:52 am

Is there a tool/program/command that can scan your hard drive
and block out bad sectors for linux? I think my hard-drive has
a few. The only way I would have guessed this is I have one of
those Hard-Drive "in-use" lights and when my system locks-up,
the hard-drive light is on and stays on ...

Any Suggestions?

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Wed Oct 11, 2006 12:08 pm

I personally use Steve Gibson's SpinRite, I know this is a shameless plug, but this thing actually does work quite well.
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
Wally Balljacker
Posts: 1227
Joined: Fri Jul 29, 2005 3:32 am
Location: University of Massachusetts - Lowell
Contact:

Post by Wally Balljacker » Wed Oct 11, 2006 12:10 pm

Tsuroerusu wrote:I personally use Steve Gibson's SpinRite, I know this is a shameless plug, but this thing actually does work quite well.
Just out of curiosity, does SpinRite require Windows at all?
Last edited by Wally Balljacker on Wed Oct 11, 2006 12:13 pm, edited 1 time in total.

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Wed Oct 11, 2006 12:12 pm

Wally Balljacker wrote:
Tsuroerusu wrote:I personally use Steve Gibson's SpinRite, I know this is a shameless plug, but this thing actually does work quite well.
Just out of curiousity, does SpinRite require Windows at all?
No it does not, you make a bootable CD, floppy or even USB thumbdrive with it and it boots up FreeDOS and runs SpinRite.

The boot-media-maker is a Windows program, but it runs perfect under Wine.

SpinRite is not free-of-charge, it costs 89 bucks, but there are ways around that ...
Especially since it only takes up like 197kbs (All written in Assembly) :P
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
Gomer_X
Posts: 901
Joined: Fri Jun 03, 2005 1:31 pm
Location: Cincinnati, Ohio, USA
Contact:

Re: Bad Sector tools?

Post by Gomer_X » Thu Oct 12, 2006 8:07 am

Judah wrote:Is there a tool/program/command that can scan your hard drive
and block out bad sectors for linux? I think my hard-drive has
a few. The only way I would have guessed this is I have one of
those Hard-Drive "in-use" lights and when my system locks-up,
the hard-drive light is on and stays on ...

Any Suggestions?
IDE disk drives have spare sectors on each track (this includes SATA). They will mark bad sectors and move the data to a spare sector on the fly. This happens in the controller (on the dirve), and you won't see it happening.

If you see bad sectors, that means the drive has used up all it's spares and doesn't know what to do. This is a sign that you should get a backup and swap out the drive if you have anything important there.

I believe mkfs (and mke2fs and friends) will do a complete scan looking for bad sectors, but I don't know if it can do it without destroying data. I don't have a Linux system at hand, and can't check the man page.

Judah
Posts: 18
Joined: Tue Mar 14, 2006 12:10 pm

Post by Judah » Sat Oct 14, 2006 1:39 pm

Maybe my extra sectors are filled up. This is a pretty old system.
This is a dual-boot system and when it actually started locking up on
the linux side, I knew it was probably a hardware issue.

Hmm, now I really wanna do a scan of some sort, just to see if I do get
bad sectors. I didn't know that was how IDE drives dealt with bad
sectors by shifting them over to a spare sector automatically..

Thanks for the info Gomer.. :wink:

Post Reply