Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-30-2003, 03:50 AM   #1
Registered: Aug 2003
Posts: 78

Rep: Reputation: 15
Blocking Harddisk bad sector

Do anyone know how to block the harddisk bad sector. or put it aside without using it.
Old 09-30-2003, 11:28 AM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
What is your hardware? SCSI or IDE
What filesystem are you using?
Old 09-30-2003, 07:59 PM   #3
Registered: Aug 2003
Posts: 78

Original Poster
Rep: Reputation: 15
It is a Western Digital WD13200 IDE Hard Drive. I am using Fat32 system.
Old 10-01-2003, 06:01 AM   #4
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
Just run scandisk if you are using win9x, or use the checkdisk utility. It will mark out the bad sectors and they will not be used again. Also, you can try out tools like norton disk doctor, which can detect any problems in your disks and even fix up some of them. (What more can one ask?)
Old 10-01-2003, 10:37 PM   #5
Registered: Aug 2003
Posts: 78

Original Poster
Rep: Reputation: 15
How about if i format my harddisk again. Will it used the badsector again.
Old 10-01-2003, 11:17 PM   #6
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
Nopes bad sector will not be used when you full format the hard-disk

Last edited by SaTaN; 10-01-2003 at 11:18 PM.
Old 02-29-2004, 04:33 PM   #7
LQ Newbie
Registered: Feb 2004
Location: 002 prk. pioneer, tipaz tagum city, philippines
Posts: 1

Rep: Reputation: 0
how can i block badsector in my hard disk?
Old 03-29-2005, 07:24 PM   #8
LQ Newbie
Registered: Mar 2005
Distribution: Custom Debian and Slack
Posts: 16

Rep: Reputation: 0
I notice people always seem to answer "run scandisk" even on Linux forums. Does anyone know of all the best linux utilities? I can't beleive people recommend using windows to repair hard drives which are running linux.
Old 03-30-2005, 07:32 AM   #9
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
if you intend to do a format and still want to have Fat32 back on the disk,you may use MSDOS command : " format drive: /U "
with that "/U" switch ,bad sectors will be ?block?mark?re-allocate?remap?whatever we said?
best done is to boot into MSDOS with WIN98 boot disk
it's kind of a low-level format with that "/U" switch just to have a peace of mind after that
because bad sectors tend to "grow" after a while
do be aware that if your bad sectors are terrible,sometimes by doing a format may render your disk unusable.

Last edited by alred; 03-30-2005 at 07:44 AM.


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
how can i partition around a bad sector ? nephish Linux - Hardware 13 12-02-2005 08:45 AM
Bad sector woes :S kevingpo Fedora 4 07-07-2005 02:57 AM
bad sector in HDD ??? hitesh_linux Linux - General 2 06-20-2003 03:54 PM
how to check for bad sector nakkaya Linux - General 1 01-16-2003 07:24 PM
Bad Head/Cylinder/Sector? Half_Elf Linux - General 3 03-26-2002 08:28 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration