From owner-freebsd-questions@FreeBSD.ORG Sat Nov 3 16:04:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FC8B16A420 for ; Sat, 3 Nov 2007 16:04:15 +0000 (UTC) (envelope-from jdrukman@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 1FC9013C4B7 for ; Sat, 3 Nov 2007 16:04:14 +0000 (UTC) (envelope-from jdrukman@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1252730fka for ; Sat, 03 Nov 2007 09:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xRTMLySzExykef5OkMX0+gB4PH9wsUlfTJ+u9AmjrMI=; b=PRIGUxbB9wi7zyBzdJHRFq1JT00zulkyMQBJ017dNGDRhXut68UVTQoGKFbq/Tax5pzybXSPc5OIYAP/6eiptpv3lHv98ANMUUu/ALYs99pbzNSX14RM1XkESb06P/yBS0j3jTLiZkGqIvpT8kLUPsUeAVPT+XBcFeU3GpCN29Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YCRIm+4em8qVWkanzHV1KInvcHFAWgHrviOGzQyvqAqUskWZWZOpQnYCgnH8w01z0KOkrCIsJzsxxlMPEF1EvPST53QzDQ40mb3XRh/WxhLsV9wk5bzdUh+0Fd/he4FFOUxWXtd5zPPvVtOfTFfkOsoDNkLv1HeRy67Fcxux9PI= Received: by 10.82.162.14 with SMTP id k14mr5797636bue.1194105826249; Sat, 03 Nov 2007 09:03:46 -0700 (PDT) Received: by 10.82.166.7 with HTTP; Sat, 3 Nov 2007 09:03:46 -0700 (PDT) Message-ID: Date: Sat, 3 Nov 2007 09:03:46 -0700 From: "Jon Drukman" To: "John Nielsen" In-Reply-To: <200711030122.17441.lists@jnielsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711030122.17441.lists@jnielsen.net> Cc: freebsd-questions@freebsd.org Subject: Re: Mounting/examining dd image? 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: Sat, 03 Nov 2007 16:04:15 -0000 Hm, anything that works in Freebsd 4.9? I've never been able to install 5.0 or higher on this machine, it always freezes when booting. On Nov 2, 2007 10:22 PM, John Nielsen wrote: > > On Friday 02 November 2007, Jon Drukman wrote: > > I was trying to transplant my system from a small, old drive to a big, > > new one. I made a dd dump of the entire small drive, but then I > > accidentally destroyed the drive (be careful with bare drives and > > metal PC cases...) > > > > Anyway, I have the dd file but I don't have a spare drive onto which > > to copy it. Is there a way to read its contents/mount it/explore > > it/hopefully extract files from it on a running system? > > Yes there is: > > mdconfig -a -t vnode -f "/path/to/dd/image/file" > > That will cause the file to be treated as an md device. See also man > mdconfig. The output of that command is the newly created /dev/md? device > node. Depending on whether you dumped the whole disk, a slice, or a > partition there may be additional devices. If you dd'ed the whole disk your > former root partition might show up as /dev/md0s1a, for example. > > Once you've identified the device node(s) that contain(s) the filesystem(s) > you're interested in, just mount it/them like you would any other device, > e.g. > mount /dev/md0s1a /mnt > > JN >