[CentOS] SCSI bad block table display

Fri Dec 21 13:26:22 UTC 2007
William L. Maltby <CentOS4Bill at triad.rr.com>

On Fri, 2007-12-21 at 14:02 +0200, Alexandru Chiscan wrote:
> Hugh E Cruickshank wrote:
> > Hi All:
> >
> > Is there a utility available that will allow for the dump/display of
> > the bad track table of a SCSI drive. We had this capability on SCO
> > OSR5 but I have not been able to locate anything similar for Linux.
> > The closest I have found is the badblocks utility that is part of the
> > e2fsprogs package but this appears to only test for bad blocks not
> > display the current bad block table contents.
> >
> > I have done quite a bit of searching with Google but either it does
> > not exist or (more than likely) I am using the wrong search parameters.
> >
> > TIA
> >
> > Regards, Hugh
> >
> >   
> Hello,
> 
> If you are looking for the table which badblocks builds then you should 
> use dumpe2fs (for ext2/3 filesystem).
> man dumpe2fs
> DUMPE2FS(8) DUMPE2FS(8)
> NAME
> dumpe2fs - dump ext2/ext3 filesystem information
> SYNOPSIS
> dumpe2fs [ -bfhixV ] [ -ob superblock ] [ -oB blocksize ] device
> DESCRIPTION
> dumpe2fs prints the super block and blocks group information for the 
> filesystem present on device.
> dumpe2fs is similar to Berkeley’s dumpfs program for the BSD Fast File 
> System.
> OPTIONS
> -b print the blocks which are reserved as bad in the filesystem.

I doubt that will work. Most drives now (and SCSI even longer) have
automatically remapped bad blocks so the fs manager never sees them.
Utilities from the manufacturer are usually needed to do this. Search
the list for threads (recent) related to this for more discussion.

> 
> 
> Regards,
> Lec
> <snip sig stuff>

-- 
Bill