> > Did you try the -l or -L options to fsck.ext3?  You need to add the
> > badblocks to the filesystem so that it won't use them 
> again.  I have to do
> > this every once in a while on my old 2 GB disk running 7.0 ;o)
> I am having a similar problem with my 2.5Gig disk running 
> RH7.1, I have
> never used fsck before in fact this is the first I have heard 
> of it.  What
> is the command I need to run to mark off these bad sectors?
> 
> Andre

man badblocks (especially the -o option)
man e2fsck (especially the -c, the -l and/or the -L option)

I usually do something like this:

# badblocks -o badblocks.hda1 /dev/hda1
# badblocks -o badblocks.hda5 /dev/hda5
# badblocks -o badblocks.hda6 /dev/hda6
etc.

You can then look at those files and see if they have anything in them.  If
so, you need to add them to the filesystem using e2fsck.  You can either
create the list from scratch (-L), or add to the list (-l).  It doesn't hurt
to add a bad block more than once, so I usually use -l.

# e2fsck -l badblocks.hda1 /dev/hda1

You can use e2fsck -c /dev/hda1 to check for badblocks and add them to the
list, but I like to keep a list of badblocks around just in case.

Forrest



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to