How do you add a bad block to e2fs bad block list?

How do you add a bad block to e2fs bad block list?

Post by d.. » Sun, 06 Jun 1993 03:12:09



I got a hard disk I/O error and subsequent kernal panic yesterday.
Running e2fsck -c finds a bad block on my 270 meg esdi partition,
it's towared the end of the partition so I've been running a while
before running into it.  I'm using e2fs and e2fsck 0.3.  I followed the
advice of some recent posts to boot from a floppy and run e2fsck -ca on
the unmounted partition and the bad block would be added to the bad
block list.  This does not appear to be happening, the bad block list
that is displayed by e2fsck is not altered and I still get a kernal
panic when the block is encountered by a program.  

Is there a way to manually alter the list or force e2fsck to do it?
I can't backup and then rerun mke2fs and dump everything back on
because tar hangs when it runs into the bad block.

Any advice will be greatly appreciated.

Dave Campbell
Hughes Aircraft
602-887-4783

 
 
 

How do you add a bad block to e2fs bad block list?

Post by Stephen Tweed » Mon, 07 Jun 1993 05:29:20



Quote:> I got a hard disk I/O error and subsequent kernal panic yesterday.
> Running e2fsck -c finds a bad block on my 270 meg esdi partition,
> it's towared the end of the partition so I've been running a while
> before running into it.  I'm using e2fs and e2fsck 0.3.  I followed the
> advice of some recent posts to boot from a floppy and run e2fsck -ca on
> the unmounted partition and the bad block would be added to the bad
> block list.  This does not appear to be happening, the bad block list
> that is displayed by e2fsck is not altered and I still get a kernal
> panic when the block is encountered by a program.  

OK, a couple of things here.  The latest SLS-1.0.2 comes with the
linux kernel 0.99pl9, which includes the 0.3 ext2fs filesystem.
However, the e2fsck program in SLS is still an older version, so I'd
appreciate it if you could double-check the version you were using.

Could you possibly repeat the e2fsck procedure twice, and tell me if
the same error is reported both times?  This would be a sure
indication that e2fsck is correctly marking the block as bad.

Do you really get a kernel panic?  A kernel error message is normal,
but not a panic.  Please mail me with as many details as you can
provide if this is in fact happening.  An HD I/O error report,
resulting in the "EIO" system call error code, should be the result.

This applies to anybody with suspected problems with the ext2fs
filesystem; let me know and if I can identify a real problem with
ext2fs I will try to help.

Cheers,
 Stephen.
---

Department of Computer Science, Edinburgh University, Scotland.

 
 
 

1. Finding out if there are bad blocks in the bad blocks list

Hi

I'm trying to find out whether there are any bad blocks in the ext2fs
bad block list. I think there might be, because I had a whole lot of
ext2fs error messages popping up during a compile, and when I removed
the directory I was working with and ran e2fsck -cf /dev/hdc6, it told
me the filesystem was modified, even though none of the regular checks
had failed (I'd previously run e2fsck -f /dev/hdc6, so all the duplicate
blocks and unattached inodes and stuff had been sorted out). I think the
drive might still be under warranty, so if there are bad blocks I'll
take it back.

TIA
Bruce
--
Please remove the ".nospam" from my address before replying
/--------------------------------------------------------------------\
| Bruce Merry (Entropy)            | bmerry at iafrica dot com       |
| Proud user of Linux!             | http://www.cs.uct.ac.za/~bmerry |
|               When you make your mark on the world,                |
|                 watch out for people with erasers.                 |
\--------------------------------------------------------------------/

2. Default gateway

3. Bad blocks in e2fs partition?

4. cdrw/cdrecord problems S9 12/02 x86

5. Bad block problem on e2fs

6. Call to power?

7. My bad blocks aren't getting marked bad ...

8. Software for house alarm-system....

9. Bad magic number in super-block / Group descriptors look bad

10. UFS bad block list

11. Creating bad blocks list

12. Bad Block List ?

13. Adding a entry to the bad block table