From owner-freebsd-alpha Thu Dec 6 15:36:25 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 4C83E37B417 for ; Thu, 6 Dec 2001 15:36:17 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20011206233608.TWDH5859.rwcrmhc51.attbi.com@peter3.wemm.org> for ; Thu, 6 Dec 2001 23:36:08 +0000 Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id fB6NaGs18098 for ; Thu, 6 Dec 2001 15:36:16 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 67D09380D; Thu, 6 Dec 2001 15:36:16 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Andrew Gallatin Cc: "Thomas P. Holmes [ Systems ]" , Wilko Bulte , freebsd-alpha@FreeBSD.ORG Subject: Re: disk slices In-Reply-To: <15374.34369.492419.52249@grasshopper.cs.duke.edu> Date: Thu, 06 Dec 2001 15:36:16 -0800 From: Peter Wemm Message-Id: <20011206233616.67D09380D@overcee.netplex.com.au> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andrew Gallatin wrote: > > Thomas P. Holmes [ Systems ] writes: > > Yes my box boots and I was able to recompile the kernel. > > > > The df through me when I saw > > > > da0a > > da0e > > > > and not > > > > da0s1a > > da0s1e > > > > > > The alpha port doesn't use slices (fdisk partitions) because the SRM > console doesn't understand them & it cannot boot from them. The alpha > port has never used slices. > > Drew SRM doesn't understand disklabel partitions either. All that SRM cares about is the bootblock checksum, and that is it. We really could implement fdisk partitions, but it would be in a fashion that is not compatable with i386. fdisk style partitions have block 0 being the fdisk / mbr sector, and the rest of the first track empty. The first partition starts at the next track boundary (cylinder 0, head 1). On FreeBSD we have block 0 used for boot1, block1 used for the disk label, and block 2 through 15 for boot2. partition a (root) starts at block 16. Alpha has a magic signature in the tail end of block 0. Bytes 480-487 contain the (long) size of boot code, bytes 488-495 = starting sector, and 496-503 = flags, and 504-511 = checksum of block 0. block 1 - 15 contain the "boot1" image, and the disklabel cohabitates block 0. (i386 has it in block 1 to make room for the boot code). We cant just fit a mbr into block 0, because the fdisk table is *also* at the end of the first block, and it would overlap with the boot info and checksum. We could read sliced disks on alpha, but not boot from them unless we arranged to move the fdisk sector to block 1 instead. It probably wouldn't be worth it though. The only real reason for doing it might be to get extra partitions beyond [a-h]. But we can just as easily have a machine dependent raised limit on the number of partitions in the disklabel. We can easily fit double that in i386 but I'm not sure how much room is left on the alpha with the 64 bit longs there. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message