From owner-freebsd-questions@FreeBSD.ORG Mon Aug 6 07:21:32 2012 Return-Path: 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 BA5D6106566B for ; Mon, 6 Aug 2012 07:21:32 +0000 (UTC) (envelope-from navarre.matthew@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8A9C38FC0C for ; Mon, 6 Aug 2012 07:21:32 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so836200pbb.13 for ; Mon, 06 Aug 2012 00:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pVcCBlQSGhK0lTjm48/ebcoAwPAEePXYEu5oaZdzphM=; b=h3aqIo8s7+EEorRFg+p7Y3h3eGus6KSth5w+mdPoH4WkKIuTZ4eAo1wJS5xQGRT5ec iHNrSV/eBFDS7vxzd+S0Sc7g/9iN7giiI66AN3AG4fIWEEFn0ub5YxzCXcYCN5gVFsov 7sWF7WVoCjhTO3QCGSQglbXTUVuwww/MMENb4D3lEcmlbmFAqr5U1UsvJwW0mrZSf+h5 /YTcDUspIbAysnVp0GMArzUkvWcdkfhfOEQZg/D8GNFuJjemrdR9d0QaXFBYnbks1QdR 6TWqjT8CtEeRfI7Sc/GpBlzrHklnq2ALKRn4iIkWM+roVjWs5sEKv5uHDGtnd+2lTRbH Q1Og== MIME-Version: 1.0 Received: by 10.68.231.168 with SMTP id th8mr17041435pbc.14.1344237692143; Mon, 06 Aug 2012 00:21:32 -0700 (PDT) Received: by 10.68.52.197 with HTTP; Mon, 6 Aug 2012 00:21:32 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Aug 2012 00:21:32 -0700 Message-ID: From: Matthew Navarre To: Michael Sierchio Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Mounting raw disk backup file. 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: Mon, 06 Aug 2012 07:21:32 -0000 On Sun, Aug 5, 2012 at 11:28 PM, Michael Sierchio wrote: > > > On Sun, Aug 5, 2012 at 11:12 PM, Matthew Navarre < > navarre.matthew@gmail.com> wrote: > > >> >> >> Here's what file says about the file: >> mnavarre@pcbsd-1810] /# file /mnt/ada1_backup >> /mnt/ada1_backup: x86 boot sector; partition 1: ID=0xa5, active, starthead >> 1, startsector 63, 167766732 sectors; partition 2: ID=0xa5, starthead 254, >> startsector 167766795, 144809910 sectors, code offset 0x3c, BSD disklabel >> >> > Why did you put it in /mnt? That's customarily used for mounting > fileystems. Move it ;-) > Heh, the BSD drive with the backup file in on /mnt, the mdconfig node is md1. > > mdconfig -a -t vnode -f /new-path/ada1_backup > > note the device that's created (probably md0) > > you can then operate on /dev/md0 as if it were a disk. In particular, you > might want to fix the partition map, the label info, etc. You can then > fsck the filesystem (presumably something like /dev/md0s1a or /dev/md0a > etc). > > You'll probably need to tell fsck that it's ufs (i.e. fsck -t ufs > /dev/md0a ) > > you can then mount the fs (mount -t ufs /dev/md0a /mnt ) > Thanks, didn't realize that I could use that device node to operate on it like a block device. Of course, the fact that mdconfig makes the system think a file is a block device should have been a clue ;) Now I just need to get the partitions and disklabel figured out. > > - M > OK, MCN