From owner-freebsd-alpha@FreeBSD.ORG Thu Nov 11 16:13:29 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EC3D16A4CE for ; Thu, 11 Nov 2004 16:13:29 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9BC843D45 for ; Thu, 11 Nov 2004 16:13:28 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 13283 invoked from network); 11 Nov 2004 16:13:28 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 11 Nov 2004 16:13:28 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iABGDLDa044012; Thu, 11 Nov 2004 11:13:24 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Wed, 10 Nov 2004 08:21:22 -0500 User-Agent: KMail/1.6.2 References: <20041110082702.GE65475@ip.net.ua> In-Reply-To: <20041110082702.GE65475@ip.net.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411100821.22374.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: alpha@FreeBSD.org cc: Ruslan Ermilov cc: Poul-Henning Kamp Subject: Re: Standard bsdlabel(8) layout not understood by Alpha bootblocks? X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 16:13:29 -0000 On Wednesday 10 November 2004 03:27 am, Ruslan Ermilov wrote: > Hi, > > When migrating to a larger disk on my AlphaPC 164SX yesterday, > I've found that the standard bsdlabel(8) layout is not understood > by the Alpha bootblocks. By "standard" I mean that the `a' > partition holding the root file system starts at offset 16. > > I did "bsdlabel -B -w da1 auto", then split the auto-created > `a' partition (that starts from offset 16) to /, /usr, /tmp, > and /var, then used newfs/mount/dump/restore to copy file > systems to a new location. > > After a reboot, bootblocks complained that /boot/loader was > not found. > > I re-edited the label, and changed the partition `a' to start > from offset 0, doing another newfs/mount/dump/restore cycle, > this resulted in a mountable disk. > > This is with 6.0-CURRENT... Yes, there is no standard. See sys/disklabel.h and note that there are different offsets for different archs. #if defined(__i386__) || defined(__amd64__) || defined(__ia64__) #define LABELSECTOR 1 /* sector containing label */ #define LABELOFFSET 0 /* offset of label in sector */ #endif #ifdef __alpha__ #define LABELSECTOR 0 #define LABELOFFSET 64 #endif -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org