From owner-freebsd-stable Thu Oct 24 9:40:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7C3737B401 for ; Thu, 24 Oct 2002 09:40:25 -0700 (PDT) Received: from boromir.vpop.net (dns1.vpop.net [207.178.248.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EA7B43E3B for ; Thu, 24 Oct 2002 09:40:25 -0700 (PDT) (envelope-from mreimer@vpop.net) Received: from vpop.net (bilbo.vpop.net [65.103.33.41]) by boromir.vpop.net (Postfix) with ESMTP id 664983A5FFB; Thu, 24 Oct 2002 09:40:23 -0700 (PDT) Message-ID: <3DB8228B.90203@vpop.net> Date: Thu, 24 Oct 2002 11:40:43 -0500 From: Matthew Reimer Organization: VPOP Technologies, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021023 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stable@freebsd.org Subject: Re: fsck lasting several hours (and then forever) after crash References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andreas Ntaflos wrote: > Is there anything else I could do to help solving this problem? > regards We had a problem like this when an ATA disk went bad--the kernel would seem to hang while trying to read the bad part of the disk. Try booting into single-user mode (boot -s) and then try reading all the disk's blocks. If it hangs doing this, then you know it's not fsck's fault: dd if=/dev/ad0s1c of=/dev/null bs=64k It turned out that our disk just needed a low-level format. Apparently, writing zeroes to (some) disks effects a low-level format, so I zeroed the entire bad disk (dd if=/dev/zero of=/dev/ad0s1c) and then I could read all the disks's blocks without problems. Of course zeroing the disk will destroy all your data. If you knew which blocks were bad you could try zeroing just those blocks; if they weren't holding real important information (like a superblock) then you might be able to save your files. Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message