From: Alexandru Chiscan Sent: December 21, 2007 04:03
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.
Hi Lec:
Thanks. That does seem match with what I was asking about and does match with the SCO OSR5 badtrk utility. However it turns out that what I was asking for was not precisely what I was actually looking for. What I wanted to do was to see the contents of the SCSI bad block table not the OS filesystem bad block table (as seen by the Linux dumde2fs -b or the SCO OSR5 badtrk utilities). It turns out that what I actually need was the sginfo command from the sg3_utils package.
Thanks again for your comments though.
Regards, Hugh
-- Hugh E Cruickshank, Forward Software, www.forward-software.com