From owner-freebsd-questions@FreeBSD.ORG Wed Feb 7 02:06:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C797616A410 for ; Wed, 7 Feb 2007 02:06:06 +0000 (UTC) (envelope-from martster@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id 8BFB413C4A6 for ; Wed, 7 Feb 2007 02:06:06 +0000 (UTC) (envelope-from martster@gmail.com) Received: by nz-out-0506.google.com with SMTP id i11so70348nzh for ; Tue, 06 Feb 2007 18:06:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TfxpK2+qSWEjeTu2M61ynOTAw/kEZy0NnZ2GAUQEkHHhrjE4YoJ+kJKqFXfbR5LRwd8udiG9wCmnL0xfjX0Lo3QcYIuBhOzRVcK0unXlezvWuZRvlo+9IdfXUNGxuj6U0Zo+VSgIe/kQX7hLIl8tNHNGMFUnGNfiHK7y6mDt1dY= Received: by 10.64.131.4 with SMTP id e4mr14147707qbd.1170813965646; Tue, 06 Feb 2007 18:06:05 -0800 (PST) Received: by 10.65.138.16 with HTTP; Tue, 6 Feb 2007 18:06:05 -0800 (PST) Message-ID: <70063950702061806s281130c4labc112a018c2a19e@mail.gmail.com> Date: Tue, 6 Feb 2007 21:06:05 -0500 From: "Marty Landman" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: recovery after power outage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 02:06:08 -0000 Jerry McAllister wrote: > Well, do as it says - choose a shell and run fsck manually. Heh, for starters I assumed (always a bad thing) that fsck wasn't available because I did a 'which fsck' and got 'which not found' as a response. But fsck itself is there. > Just run /sbin/fsck /dev/ad1s1c. Actually that would be a somewhat > unusual address - what they call a 'dangerously dedicated' disk. Can you explain or point me to more info on why that was a poor choice on my part? To explain more this is a 250 GB hard drive which is the primary slave and is mostly used as a data repository and shared via samba on my home office lan. > But I think fsck should be able to work through it. snip > It the manual fscks don't work, then you may have to try some > extreme tactics to recover things on that partition or abandon snip > If you end up rebuilding the drive, then the next time make a > FreeBSD slice and then make a partition within that slice to > avoid that 'dangerously dedicated' config. I am not getting past this error with fsck. Get 16 lines saying: ad1: FAILURE - READ_DMA status=51 error=40 LBA=xxx for xxx in [191..206] then a msg listing disk sectors that can't be read 128 through 143 and finally: /dev/ad1s1c: NOT LABELED AS A BSD FILE SYSTEM (unused) If I can recover the disk which has about 60GB's used out of 250GB and lose a few sectors it's really not a bad deal probably, but how do I go about trying at this point? Also it won't reboot now, although I've run fsck complete including on ads0. Do I have to edit /etc/fstab so ads1 isn't mounted to get a good boot? Unfortunately /usr isn't getting mounted and I have not editor available afaik. Marty