From owner-freebsd-questions@FreeBSD.ORG Tue Nov 7 17:11:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A3F616A416 for ; Tue, 7 Nov 2006 17:11:52 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90F4643D66 for ; Tue, 7 Nov 2006 17:11:51 +0000 (GMT) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1086885uge for ; Tue, 07 Nov 2006 09:11:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=X+uWi96RquUKVolLCNegsUdmSk7nNM5JUFSDU0DPsCRS0M8Fjb7uyugoCP34vEV2mg/YSGLfPp8J39QiEF5BDakNX8UPw6rBbzhrlWsCP6H3EpUhrSl/MOpD1HYGqx9oyc7v5KgCXw4j0E0Ls1zF4J+Slb6gOdlfsKoN3/AS9eQ= Received: by 10.82.106.14 with SMTP id e14mr1557186buc.1162919510071; Tue, 07 Nov 2006 09:11:50 -0800 (PST) Received: by 10.82.175.1 with HTTP; Tue, 7 Nov 2006 09:11:49 -0800 (PST) Message-ID: Date: Tue, 7 Nov 2006 11:11:49 -0600 From: "illoai@gmail.com" To: "Olivier Nicole" In-Reply-To: <200611060153.kA61rLNt026020@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200611060153.kA61rLNt026020@banyan.cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: Reading crashed SCSI disk 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: Tue, 07 Nov 2006 17:11:52 -0000 On 11/5/06, Olivier Nicole wrote: > I am wondering if there is a way to read the physical blocks (those > that are readable) and save the data, from that I could be able to > rebuild some of the mailboxes. dd if=/scsi_drive of=/some/file/name Should read anything readable, though without bs=xxx it may be quite slow. You can usually then mount the file via mdconfig(8). If the partition table is intact you can specify that instead of the whole disk. This can make the fiddly bit with trying to figure out exactly what part will mount under md(4). If you have an idea of how full the drive was you can save reading all of the empty blocks with bs=xxx count=xxx which may speed things up considerably. -- --