Re: [CentOS] SCSI bad block table display
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. Regards, Lec ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SCSI bad block table display
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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] SCSI bad block table display
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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] SCSI bad block table display
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 -- Hugh E Cruickshank, Forward Software, www.forward-software.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos