From owner-freebsd-small Sun Feb 24 2:46:11 2002 Delivered-To: freebsd-small@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id A5CE437B402 for ; Sun, 24 Feb 2002 02:46:09 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g1OAk9Y81261; Sun, 24 Feb 2002 02:46:09 -0800 (PST) (envelope-from rizzo) Date: Sun, 24 Feb 2002 02:46:09 -0800 From: Luigi Rizzo To: small@freebsd.org Subject: dependencies between filesystem and location on disk Message-ID: <20020224024609.A80268@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am trying to copy a picobsd image into a slice in a compactflash device. I thought that after creating an appropriate FreeBSD slice with fdisk, it would suffice to 'dd' the image into /dev/ad0s2, but apparently the system complains with "%s: rejecting BSD label: raw partition offset != slice offset\n", (from kern/subr_diskslice.c) when trying to fdisk the partition, if (pp->p_offset != start) { and also the secondary bootloader (boot2) complains with a "Not ufs", presumably for the same reason. Two questions here: * it looks like the label should know about the absolute location of the slice on the disk. Why is this necessary ? * in case, what places should I patch in the image with the actual offset of the partition ? thanks luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message