From owner-freebsd-stable Fri Oct 6 18:53: 0 2000 Delivered-To: freebsd-stable@freebsd.org Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200]) by hub.freebsd.org (Postfix) with ESMTP id AD5A337B502 for ; Fri, 6 Oct 2000 18:52:57 -0700 (PDT) Received: from libr.scitec.kobe-u.ac.jp (skai0713.ppp.infoweb.ne.jp [202.248.10.221]) by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id KAA55607; Sat, 7 Oct 2000 10:51:14 +0900 (JST) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Received: from shidahara1.planet.kobe-u.ac.jp (localhost [127.0.0.1]) by libr.scitec.kobe-u.ac.jp (8.9.1/3.5Wpl7) with ESMTP id JAA07069; Sat, 7 Oct 2000 09:43:25 +0900 (JST) From: takawata@shidahara1.planet.sci.kobe-u.ac.jp Message-Id: <200010070043.JAA07069@libr.scitec.kobe-u.ac.jp> To: dest@syd.eastlink.ca, dkelly@mail.hiwaay.net Cc: freebsd-stable@freebsd.org Subject: Re: Bad IDE Drive In-reply-to: Your message of "Fri, 06 Oct 2000 14:19:21 EST." <200010061919.e96JJLR20684@mail.hiwaay.net> Date: Sat, 07 Oct 2000 09:43:24 +0900 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200010061919.e96JJLR20684@mail.hiwaay.net>, David Kelly wrote: >man badsect: > >BADSECT(8) FreeBSD System Manager's Manual BADSECT(8) > >NAME > badsect - create files to contain bad sectors > >SYNOPSIS > badsect bbdir sector ... > >DESCRIPTION > Badsect makes a file to contain a bad sector.... >[...] > >A better solution would be to contact the manufacturer of the IDE drive >for a utility to internally remap the bad blocks. This kind of thing >is standardized on SCSI disks but apparently not on IDE. This tool is broken after block device is disappeared from FreeBSD. I corrected it,but I don't have code for now.(It is at my desktop computer, 50km far from here.) To use this tool, # dd if=/dev/${DEV} of=/dev/null (${DEV} is the device where the bad sector exiist) and if bad secter exist, it stops at the block count of the bad sector. ${AAAA}+0 records in ${AAAA}+0 records out ${BBBB} bytes transferred in ${XX} secs (${YY} bytes/sec) then use # badsect /${FS}/BAD ${AAAA} in singule user mode with the ${FS} mounted. Then unmount the ${FS} and use fsck. Takanori Watanabe Public Key Key fingerprint = 2C 51 E2 78 2C E1 C5 2D 0F F1 20 A3 11 3A 62 2A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message