From owner-freebsd-questions Fri Jun 16 10:43:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from thalvors.miralink.com (cust-120.dsl-only.net [216.36.30.120]) by hub.freebsd.org (Postfix) with ESMTP id 0A28137B920 for ; Fri, 16 Jun 2000 10:43:20 -0700 (PDT) (envelope-from campt@thalvors.miralink.com) Received: by thalvors.miralink.com (Postfix, from userid 1003) id D032FBB803; Fri, 16 Jun 2000 10:42:57 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by thalvors.miralink.com (Postfix) with ESMTP id C95784405D for ; Fri, 16 Jun 2000 10:42:57 -0700 (PDT) Date: Fri, 16 Jun 2000 10:42:57 -0700 (PDT) From: Tracy Camp To: freebsd-questions@freebsd.org Subject: linux loopback and freebsd disklabels (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For reasons to boring to long to explain I have need of mounting a freebsd disk image (created via the dd wonder) under linux and access a specific partion. Trouble is I can't see clearly how I can get linux to understand about the disklabel when using a loopback device. (I'm just doing something like : 'losetup /dev/loop0 freebsd.img') Now I think I can get around this problem if I pass a offset and length to losetup, the length I can figure out since I know the size of the partition, but I don't know exactly how to calculate the initial offset. Should I just use the first block of the partition (which appears to be 63, but linux says 'bad magic number' when I tried doing this...) Advice appreciated. thanks, Tracy Camp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message