From owner-freebsd-questions@FreeBSD.ORG Mon Mar 4 13:18:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 04111AD1 for ; Mon, 4 Mar 2013 13:18:18 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8BF2A17D9 for ; Mon, 4 Mar 2013 13:18:17 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id gg6so3836882lbb.41 for ; Mon, 04 Mar 2013 05:18:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=Szb6d0977bxFQyXiYY2lA9Qd4vUNB91yzYV18iD1jQc=; b=KWIB+CVs5OTucOPoaVRzfH1CRzbgH2JaRlg2NX3RYjoTfhLA4utgO1sTMDk4lFfLeA dm3cBUIldDEdSusXKWsY0m5TRfVww3pyfffGN8qInkmYWuZTTe5cSRMsGb9sXBj1LnXB EZHrU8dMEZkc6ZeXQucr1kCmODC9feBVNkgSHQWueGgL85dO/mPLX25fuNVHPDsMzajh nNpmgXqnu/GuJueoEkgG6u0nqhw38lTjHqkAC7bgDbG4bBkmNkhK3nlLPnIDM3OnUGxD vR14rqkv89cv82eun1MIS2hUJhG+ZDim2vMR4QxXt1lJjtsRlHmo2X7BQZ6Gq3BugHfz ZNZw== MIME-Version: 1.0 X-Received: by 10.112.103.168 with SMTP id fx8mr4527806lbb.32.1362403089530; Mon, 04 Mar 2013 05:18:09 -0800 (PST) Received: by 10.112.8.40 with HTTP; Mon, 4 Mar 2013 05:18:09 -0800 (PST) X-Originating-IP: [93.221.178.250] In-Reply-To: <20130304013608.7981e8a9.freebsd@edvax.de> References: <20130304013608.7981e8a9.freebsd@edvax.de> Date: Mon, 4 Mar 2013 14:18:09 +0100 Message-ID: Subject: Re: Grepping though a disk From: "C. P. Ghost" To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmUHQWll8FWMLZgPNCalR9jS0WHYFt+Cbc6/Sjr0BG8WuxITjbFMqKb918KtvHzHxAJlWAz Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2013 13:18:18 -0000 On Mon, Mar 4, 2013 at 1:36 AM, Polytropon wrote: > Any suggestion is welcome! How about crawling the metadata, locating each block that is already allocated, and skip those blocks when you scan the disk? That could reduce the searching space significantly. blkls(1) et al. from the Sleuth Kit are your friends. Good luck, -cpghost. -- Cordula's Web. http://www.cordula.ws/