Xref: utzoo comp.sys.att:10758 unix-pc.general:6375 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!emory!skeeve!ditka!kls From: kls@ditka.UUCP (Karl Swartz) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: Ascertaining file name given a HD bad block number on 3B1 Message-ID: <31146@ditka.UUCP> Date: 7 Nov 90 10:09:34 GMT References: <35622@cup.portal.com> Followup-To: comp.sys.att Organization: Inaction Central, San Jose, California Lines: 19 In article <35622@cup.portal.com> thad@cup.portal.com (Thad P Floryan) writes: >Does anyone know if there's a method (or program) to ascertain to which >file on a mounted file system a bad block belongs? The bad block could >be specified by any of physical sector, logical block, or cylinder/track/ >sector. The 'bf' utility should get you close. It only takes logical block numbers, and gives you inode numbers, but it's easy enough to convert from physical sectors or cyl/trk/sec, and once you have the inode it's a simple matter of using 'find -inum nnn' to get the filename. I believe I obtained this from ohio-state; the man page says it was written by Brant Cheikes so that seems likely. -- Karl Swartz |UUCP {uunet,decwrl}!daver!ditka!kls 1-408/223-1308 |INet kls@ditka.chicago.com "I never let my schooling get in |BIX kswartz the way of my education."(Twain) |Snail 1738 Deer Creek Ct., San Jose CA 95148