Date: Sun, 24 Feb 2002 02:46:09 -0800 From: Luigi Rizzo <rizzo@icir.org> To: small@freebsd.org Subject: dependencies between filesystem and location on disk Message-ID: <20020224024609.A80268@iguana.icir.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020224024609.A80268>