From owner-freebsd-fs@FreeBSD.ORG Mon Feb 21 00:35:43 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07BFC16A4CE; Mon, 21 Feb 2005 00:35:43 +0000 (GMT) Received: from i528C1A8D.versanet.de (i528C1A8D.versanet.de [82.140.26.141]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D9E343D1D; Mon, 21 Feb 2005 00:35:38 +0000 (GMT) (envelope-from 738oijzksk@coldwellbanker.com) Received: from mail77.kmqq.mminternet.com (134.203.64.28) by d3-sr9.mminternet.com with Microsoft SMTPSVC(5.0.2195.6824); Sun, 20 Feb 2005 21:32:27 -0300 Received: from SRESB262 (pi128.148.208.104.wpxgj4.p.mminternet.com 117.192.152.228)var720PP4Byv24536; Mon, 21 Feb 2005 01:30:27 +0100 Message-ID: <19ak85zav672gys21ba$ug945r0yzl345$knq196z56@G900> From: "Low..cost..Super..v1agkra Guaranteed.." <738oijzksk@coldwellbanker.com> To: "Freebsd-fs" References: Date: Mon, 21 Feb 2005 01:27:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: OnlinePharmacy Cheap X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 00:35:43 -0000 Locate your prescription immediately! We have all tablets you could possibly need! http://detergentheterocyclic.tehexpertz.com/a/haddad/209121/ You name it! We have them all! http://detergentheterocyclic.tehexpertz.com/a/haddad/209121/ Stop receiving promotional material now http://bfijdeacghkl.comcities.info/go.php?egjkbdxyclzafhim I laid down on my tummy and cried into my pillow until I fell asleep. I wo= ke up much later, must have been the middle of the night cause it was dark= out. My clothes and bed were soaked as usuall, and only served to remind = me of the diapers that were to come. I started to cry as I stripped off my= wet things and also my bed. I put the spare sheets on the bed and went to= take the wet stuff to the laundry room.I had to push the dresser out of t= he way to gt out of the room, and when I steped out I stumbled over someth= ing. I landed on the floor my face pressed into my wet smelly sheets. I lo= oked back to see what I tripped on. The bag of diapers and other stuff.I g= ot to my feet and took the laundry downstairs. Quietly I walked back upsta= irs, not wanting to wake mom, mainly becuase I was still naked. I sighed w= hen I saw the stuff at my door again. But stooped down and picked them up.= I sat the diapers by my nightstand and the rest of the stuff on my dresse= r.I was still very tired, so I didn't bother to get dresse my From owner-freebsd-fs@FreeBSD.ORG Mon Feb 21 17:58:20 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E862A16A4CE for ; Mon, 21 Feb 2005 17:58:20 +0000 (GMT) Received: from web41204.mail.yahoo.com (web41204.mail.yahoo.com [66.218.93.37]) by mx1.FreeBSD.org (Postfix) with SMTP id B0AAC43D5A for ; Mon, 21 Feb 2005 17:58:20 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 20333 invoked by uid 60001); 21 Feb 2005 17:58:20 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=z6BD02PSetNu+O9cCE8Qa56EeMDLSfKppuKqonj0uQq32qH502eP+PlV5RD1jos6sgvucNLm5MdmphnwutO1YAYnKFwHf3LRy6GjDPrci95fEi1BHVaUBowM6DlUkPFa9BuufgRYNCyXfY8fF60DNG9YZIYd1Z80Lv1LGqkRZx8= ; Message-ID: <20050221175820.20331.qmail@web41204.mail.yahoo.com> Received: from [83.129.190.166] by web41204.mail.yahoo.com via HTTP; Mon, 21 Feb 2005 09:58:20 PST Date: Mon, 21 Feb 2005 09:58:20 -0800 (PST) From: Arne "Wörner" To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: UFS2 Recovery Questions X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 17:58:21 -0000 > I recently was rearranging my web server content and accidentally > removed a symbolic link recursively >root@host # rm -rf music > The music link pointed to a directory that existed on a > spserate drive mounted as /storage >music -> /storage/Music/Mp3s I just tried to remove a directory via a sym link that points to that directory: #mkdir a #ln -s a b #touch a/c #rm -rf b #ls a c It did not work like you decribed it. Maybe I did not understand you description correctly. That could explain your disapearing success, when u used autopsy and such tools... ? -Arne __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 16:47:57 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C8F316A4CE for ; Thu, 24 Feb 2005 16:47:57 +0000 (GMT) Received: from sina.sharif.ir (Homa.Sharif.EDU [81.31.160.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E07443D5A for ; Thu, 24 Feb 2005 16:47:53 +0000 (GMT) (envelope-from falaki@ce.sharif.edu) Received: from ce.sharif.edu (ce.sharif.ac.ir [81.31.164.3]) by sina.sharif.ir (8.12.8/8.12.8) with ESMTP id j1OGlgkN023021 for ; Thu, 24 Feb 2005 20:17:42 +0330 Received: from ce.sharif.edu (localhost [127.0.0.1]) by ce.sharif.edu (8.12.10/8.12.10) with SMTP id j1OGqWYv021474 for ; Thu, 24 Feb 2005 20:22:32 +0330 Received: from 194.225.42.20 (SquirrelMail authenticated user falaki) by ce.sharif.edu with HTTP; Thu, 24 Feb 2005 20:22:32 +0330 (IRST) Message-ID: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> Date: Thu, 24 Feb 2005 20:22:32 +0330 (IRST) From: falaki@ce.sharif.edu To: freebsd-fs@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: ClamAV 0.83/723/Thu Feb 24 15:24:24 2005 on ce.sharif.edu X-Virus-Status: Clean X-sina.sharif.edu-MailScanner-Information: Please contact the ISP for more information X-sina.sharif.edu-MailScanner: Found to be clean Subject: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 16:47:57 -0000 Hello; I have a hard disk that seems to have some limitted number of bad sectors. I want to use badsect to avoid these errors. ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=27546816 ad0: FAILURE - READ_DMA timed out I tried this: #badsect /mnt/data 27546816 and got: block 27546816 out of range of file system don't forget to run fsck ... What should I do? Thanks in advance, MHF. From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:04:06 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D5016A4CE for ; Thu, 24 Feb 2005 17:04:06 +0000 (GMT) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4030C43D31 for ; Thu, 24 Feb 2005 17:04:06 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.alpha-tierchen.de (port-212-202-38-15.dynamic.qsc.de [212.202.38.15]) by mail.efacilitas.de (Postfix) with ESMTP id 878D91239C4; Thu, 24 Feb 2005 18:03:29 +0100 (CET) Received: from localhost (localhost.local [127.0.0.1]) by mail.alpha-tierchen.de (Postfix) with ESMTP id 6C077CCE743; Thu, 24 Feb 2005 18:03:35 +0100 (CET) Received: from mail.alpha-tierchen.de ([127.0.0.1]) by localhost (alpha-tierchen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56311-05; Thu, 24 Feb 2005 18:03:31 +0100 (CET) Received: from [192.168.1.2] (alpha.local [192.168.1.2]) by mail.alpha-tierchen.de (Postfix) with ESMTP id 77F87CCE73B; Thu, 24 Feb 2005 18:03:31 +0100 (CET) Message-ID: <421E090E.1030306@cs.tu-berlin.de> Date: Thu, 24 Feb 2005 18:04:14 +0100 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla Thunderbird 1.0 (X11/20050125) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: falaki@ce.sharif.edu References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> In-Reply-To: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at alpha-tierchen.de cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:04:06 -0000 falaki@ce.sharif.edu schrieb: > [Bad sectors.] What should I do? Check cables, exchange them. Buy a new hard disk drive. Regards Björn From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:40:00 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB76016A4CE for ; Thu, 24 Feb 2005 17:40:00 +0000 (GMT) Received: from sina.sharif.ir (Homa.Sharif.EDU [81.31.160.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A9543D49 for ; Thu, 24 Feb 2005 17:39:58 +0000 (GMT) (envelope-from falaki@ce.sharif.edu) Received: from ce.sharif.edu (ce.sharif.ac.ir [81.31.164.3]) by sina.sharif.ir (8.12.8/8.12.8) with ESMTP id j1OHdYkN028703; Thu, 24 Feb 2005 21:09:35 +0330 Received: from ce.sharif.edu (localhost [127.0.0.1]) by ce.sharif.edu (8.12.10/8.12.10) with SMTP id j1OHiKYv022518; Thu, 24 Feb 2005 21:14:20 +0330 Received: from 194.225.42.20 (SquirrelMail authenticated user falaki) by ce.sharif.edu with HTTP; Thu, 24 Feb 2005 21:14:24 +0330 (IRST) Message-ID: <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> In-Reply-To: <421E090E.1030306@cs.tu-berlin.de> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> Date: Thu, 24 Feb 2005 21:14:24 +0330 (IRST) From: falaki@ce.sharif.edu To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: ClamAV 0.83/723/Thu Feb 24 15:24:24 2005 on ce.sharif.edu X-Virus-Status: Clean X-sina.sharif.edu-MailScanner-Information: Please contact the ISP for more information X-sina.sharif.edu-MailScanner: Found to be clean cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:40:01 -0000 >> [Bad sectors.] What should I do? > > Check cables, exchange them. Buy a new hard disk drive. This is the last choice. Do you know how I can find the bad sector number? MHF. From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:48:51 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7079F16A4CE for ; Thu, 24 Feb 2005 17:48:51 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB5CD43D5D for ; Thu, 24 Feb 2005 17:48:50 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j1OGnbNY008880; Thu, 24 Feb 2005 17:49:37 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: falaki@ce.sharif.edu From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 24 Feb 2005 20:22:32 +0330." <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> Date: Thu, 24 Feb 2005 17:49:37 +0100 Message-ID: <8879.1109263777@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:48:51 -0000 In message <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu>, falaki@ce.s harif.edu writes: >Hello; > >I have a hard disk that seems to have some limitted number of bad sectors. >I want to use badsect to avoid these errors. > > ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=27546816 > ad0: FAILURE - READ_DMA timed out > >I tried this: > > #badsect /mnt/data 27546816 > >and got: > > block 27546816 out of range of file system > don't forget to run fsck ... > >What should I do? You should let your disk deal with it. Try booting single user and: dd if=/dev/ad0 of=/dev/null bs=1m and see how much damage there actually is. If there is much damage, you may want to use src/tools/tools/recoverdisk instead -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:55:55 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0079516A4CE for ; Thu, 24 Feb 2005 17:55:55 +0000 (GMT) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C2EC43D2F for ; Thu, 24 Feb 2005 17:55:54 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j1OHt5PY094642; Thu, 24 Feb 2005 12:55:05 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j1OHt04P094635; Thu, 24 Feb 2005 12:55:00 -0500 (EST) (envelope-from bv) Date: Thu, 24 Feb 2005 12:54:59 -0500 From: Bill Vermillion To: falaki@ce.sharif.edu Message-ID: <20050224175459.GA94585@wjv.com> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on bilver.wjv.com cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:55:55 -0000 falaki@ce.sharif.edu, the prominent pundit, on Thu, Feb 24, 2005 at 21:14 while half mumbling, half-witicized: > >> [Bad sectors.] What should I do? > > > > Check cables, exchange them. Buy a new hard disk drive. > This is the last choice. Do you know how I can find the bad > sector number? Reading your first message and the man page for badsect makes me wonder if you did things correctly. The first argument to badsect is supposed to be the directory you created to hold the bad sectors. You're argument [as I recall it] was /mnt/data. Antime I've had anything under /mnt it has always been another file system and not the root file system. Getting the error that you did, not finding the block number you passed to it, makes me think you may have not done things correctly. Is 'data' another file system that is mounted upon /mnt. If so you need to make a directory to hold the bad sectors on the filesystem with the problem, and then run badsect on that filesystem, and then run fsck on that filesystem. Your first posting did not have enough details to indicate just how your system was set up. Is my assumption [ assuming is a bad thing to do whit computers ] correct in that /mnt/data is another filesystem? Bill -- Bill Vermillion - bv @ wjv . com From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:56:11 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C8FE16A4CE for ; Thu, 24 Feb 2005 17:56:11 +0000 (GMT) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 275A143D1D for ; Thu, 24 Feb 2005 17:56:11 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.alpha-tierchen.de (port-212-202-38-15.dynamic.qsc.de [212.202.38.15]) by mail.efacilitas.de (Postfix) with ESMTP id 6F05F1239C4; Thu, 24 Feb 2005 18:55:34 +0100 (CET) Received: from localhost (localhost.local [127.0.0.1]) by mail.alpha-tierchen.de (Postfix) with ESMTP id 795B0CCD838; Thu, 24 Feb 2005 18:55:40 +0100 (CET) Received: from mail.alpha-tierchen.de ([127.0.0.1]) by localhost (alpha-tierchen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27791-01; Thu, 24 Feb 2005 18:55:39 +0100 (CET) Received: from [192.168.1.2] (alpha.local [192.168.1.2]) by mail.alpha-tierchen.de (Postfix) with ESMTP id 8D5DCCCD837; Thu, 24 Feb 2005 18:55:39 +0100 (CET) Message-ID: <421E1546.1050908@cs.tu-berlin.de> Date: Thu, 24 Feb 2005 18:56:22 +0100 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla Thunderbird 1.0 (X11/20050125) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: falaki@ce.sharif.edu References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> In-Reply-To: <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at alpha-tierchen.de cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:56:11 -0000 Is this an older hard disk? Did it work well in past with this controller? Do these errors occur spontaneously? When do they occur? What is the model of this drive? Regards Björn From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 18:31:54 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D12916A4CE for ; Thu, 24 Feb 2005 18:31:54 +0000 (GMT) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A31C43D2D for ; Thu, 24 Feb 2005 18:31:54 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j1OIUDRW095054; Thu, 24 Feb 2005 13:30:14 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j1OIU8U7095053; Thu, 24 Feb 2005 13:30:08 -0500 (EST) (envelope-from bv) Date: Thu, 24 Feb 2005 13:30:03 -0500 From: Bill Vermillion To: falaki@ce.sharif.edu Message-ID: <20050224183003.GA95003@wjv.com> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> <20050224175459.GA94585@wjv.com> <60190.194.225.42.20.1109269416.squirrel@ce.sharif.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60190.194.225.42.20.1109269416.squirrel@ce.sharif.edu> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on bilver.wjv.com cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 18:31:54 -0000 On Thu, Feb 24, 2005 at 21:53 , falaki@ce.sharif.edu exclaimed "Las Cucarachas entran, Pero no pueden salir", and then rambled on saying with: > > If so you need to make a directory to hold the bad sectors > > on the filesystem with the problem, and then run badsect on > > that filesystem, and then run fsck on that filesystem. > In fact I made a mistake while writing the mail. What I did was > #badsect /mnt/data/.BAD 27546816 > > Is my assumption [ assuming is a bad thing to do whit computers ] > > correct in that /mnt/data is another filesystem? > Yes it is another file system for data Then you need to change to the root of the data drive. When on data make a directory to hold the bad sectors. >From that filesystem root run the badsect utility. When done, unmount that filesystem and then run fsck and THAT filesystem. I suspect the error you got with the number basically being out of range is that the data filesystem is larger than the root filesystem, where it appears that you ran the program from. Bill -- Bill Vermillion - bv @ wjv . com -- Bill Vermillion - bv @ wjv . com From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 20:19:56 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A29B716A4CE for ; Thu, 24 Feb 2005 20:19:56 +0000 (GMT) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 109B743D55 for ; Thu, 24 Feb 2005 20:19:56 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])j1OKJIA6002607; Fri, 25 Feb 2005 07:19:18 +1100 Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) j1OKJFS5005141; Fri, 25 Feb 2005 07:19:17 +1100 Date: Fri, 25 Feb 2005 07:19:14 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: falaki@ce.sharif.edu In-Reply-To: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> Message-ID: <20050225065121.U251@delplex.bde.org> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-fs@FreeBSD.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 20:19:56 -0000 On Thu, 24 Feb 2005 falaki@ce.sharif.edu wrote: > I have a hard disk that seems to have some limitted number of bad sectors. > I want to use badsect to avoid these errors. > > ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=27546816 > ad0: FAILURE - READ_DMA timed out > > I tried this: > > #badsect /mnt/data 27546816 > > and got: > > block 27546816 out of range of file system > don't forget to run fsck ... > > What should I do? The usual answer is to replace the disk. If you want to try to use badsect, be aware of bugs. Accordng to badsect(1): ... (The sector numbers must be relative to the beginning of the file system, but this is not hard as the system reports relative sector numbers in its console error messages.) ... This never worked for all disk drivers in FreeBSD, and only worked for a short time in the ATA driver. Drivers were supposed to call diskerr() to report the disk block number in a uniform way that includes the subdevice and relative block number. The ATA driver used to call diskerr(), but about a year the call was replaced by a printf() that just gives the absolute LBA as above. The ATA driver still calls diskerr() in RELENG_4, but it passes a wrong block number so that the actual failing block number is even harder to untangle than for an absolute one (the result is the relative block number doubled for single 512-block accesses and sometimes a bit less than doubled for larger accesses). badsect also has a fairly fundamental limitation to sector numbers less than 2^31-1, so it will be even less useful when 1TB is a small disk. Bruce From owner-freebsd-fs@FreeBSD.ORG Fri Feb 25 00:31:18 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDEB316A4CE for ; Fri, 25 Feb 2005 00:31:18 +0000 (GMT) Received: from S2.cableone.net (smtp2.cableone.net [24.116.0.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C5EA43D1F for ; Fri, 25 Feb 2005 00:31:18 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.local.lan (unverified [24.119.123.70]) by S2.cableone.net (CableOne SMTP Service S2) with ESMTP id 11526121 for multiple; Thu, 24 Feb 2005 17:39:29 -0700 Date: Thu, 24 Feb 2005 18:30:29 -0600 From: Vulpes Velox To: "Poul-Henning Kamp" Message-ID: <20050224183029.4617e852@vixen42.local.lan> In-Reply-To: <8879.1109263777@critter.freebsd.dk> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <8879.1109263777@critter.freebsd.dk> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IP-stats: Incoming Last 2, First 53, in=8, out=0, spam=0 X-External-IP: 24.119.123.70 X-Abuse-Info: Send abuse complaints to abuse@cableone.net cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 00:31:19 -0000 On Thu, 24 Feb 2005 17:49:37 +0100 "Poul-Henning Kamp" wrote: > In message <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu>, > falaki@ce.s harif.edu writes: > >Hello; > > > >I have a hard disk that seems to have some limitted number of bad > >sectors. I want to use badsect to avoid these errors. > > > > ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=27546816 > > ad0: FAILURE - READ_DMA timed out > > > >I tried this: > > > > #badsect /mnt/data 27546816 > > > >and got: > > > > block 27546816 out of range of file system > > don't forget to run fsck ... > > > >What should I do? > > You should let your disk deal with it. > > Try booting single user and: > > dd if=/dev/ad0 of=/dev/null bs=1m > > and see how much damage there actually is. > > If there is much damage, you may want to use > src/tools/tools/recoverdisk > instead Hmm, when might this make it into releng_5?