Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Eng-Tips
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Your information in this site is absolutely WONDERFUL. It is the most useful site on the web to me right now. Thank You Thank You..."

Geography

Where in the world do Eng-Tips members come from?
monkeysolder (Electrical)
5 Oct 06 18:56
I have a question about a Linux (EXT3) drive that we are using in a 3rd party embedded application, concerning how the 'bad sector' table is stored.

1) I remove the HD from the embedded Linux hardware, remove the Linux partition, run chkdsk and repair bad sectors. I do this because I have no way of checking or repairing bad sectors in the embedded OS.

2) When I reinstall the HDD into the embedded OS hardware and it reformats (quick-type) to ext3, is the bad sector table "lost"? I.e., is that 'bad sector' table somehow preserved even after the HDD format?

I am not familiar with this topic, so apologies for any confusing descriptions.

Thanks,

MikeHalloran (Mechanical)
6 Oct 06 0:10
So far as I know, DOS does not use a special table to mark bad sectors.  It uses a special entry in its FAT; for 16 bit FATs, hex FFF7 says the associated cluster contains at least one bad sector.  Erase the FAT, and you don't know where the bad sectors are.

Perhaps you need to implement a slow Linux format, or reformat the drives slowly on a Linux box.







Mike Halloran
Pembroke Pines, FL, USA

Helpful Member!  richs (Computer)
6 Oct 06 10:58
Hiya-

During the "typical" linux installation you can check for
bad sectors during the format of the drive.  I assume
that if you do the following:

I use Red Hat.  YMMV.  But I *DO* know that you have the
option for checking for bad sectors during the format
phase.

1. Try a "fresh" install of the linux with the typical
   partitions.  Doing it this way, you should be able
   to do the bad sector checking by checking the prompting.
   Partition the drive as you wish it to be for the
   target system.

2. Mount the drive as a second drive (i.e. /dev/hdb with
   the appropriate jumpers set for secondary drive, etc.)

3. Erase all of the files on the freshly formatted/
   installed drive.

This should leave you an ext3 filesystem format without
any data on it.  You can then transfer the oem software
to this "empty" drive.  Don't forget to load the boot
image on it!

4. Rejumper the "new" HD and install in the target system.

I'm *SURE* that there is a way to easily format the
HD drive, however, I can't give you a high degree of
certianty on HOW.  I usually find that sparing out the
bad sectors during installation is sufficient for my
needs.  Sorry this is a kludgy way of doing it, but it's
got a high degree of success.

Best of luck!

  Cheers,

   Rich S.
monkeysolder (Electrical)
6 Oct 06 15:31
Thanks!
balaku (Computer)
20 Feb 07 16:57
I found something at http://www.fix-hdd-bad-sectors.com Good luck I hope you will resolve your problem.
dpc (Electrical)
25 Feb 07 15:54
Maybe man badblocks would help.

If not, you might try posting this at www.tek-tips.com in the Linux forum.  

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close