From owner-freebsd-questions Mon Oct 28 12:22: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07C7037B401 for ; Mon, 28 Oct 2002 12:21:58 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4550143E42 for ; Mon, 28 Oct 2002 12:21:57 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021028202151.FJZA3104.sccrmhc02.attbi.com@localhost.localdomain>; Mon, 28 Oct 2002 20:21:51 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.5) with ESMTP id g9SKNPUW046325; Mon, 28 Oct 2002 12:23:26 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.5/Submit) id g9SKNJTJ046322; Mon, 28 Oct 2002 12:23:19 -0800 (PST) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: Lowell Gilbert Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Install FreeBSD 4.4 into EXTENDED Partition References: <3DBACDE0.000002.21871@soapbox.yandex.ru> <00d801c27d15$4d22d9b0$1200a8c0@gsicomp.on.ca> <20021026174208.GA5720@scottro11.homeunix.net> <44d6pxt562.fsf@be-well.ilk.org> <447kg2cxq5.fsf@be-well.ilk.org> From: swear@attbi.com (Gary W. Swearingen) Date: 28 Oct 2002 12:23:19 -0800 In-Reply-To: <447kg2cxq5.fsf@be-well.ilk.org> Message-ID: Lines: 58 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lowell Gilbert writes: > swear@attbi.com (Gary W. Swearingen) writes: > > > > Just to be clear: the BIOS can boot from them, as it does in many > > people's Linux setups. > > My use of terminology was a little imprecise, but this statement is > even more so. On no PC-class machine does the BIOS boot *anything* > except the MBR. Linux systems (for example) that boot from extended > partitions do so by using a boot manager that lives on the disk, > somewhere beyond the 512-byte boot sector, but the BIOS knows nothing > about those partitions. The BIOS doesn't need to know about the partitions to boot from them. When I last used Linux, it's boot code made BIOS calls to access the boot code and kernel on those partitions. (I'm not sure how more recent versions handle it; IIRC, they have disk-aware boot code stored in additional boot records in the first track of the disk which most extant software reserves for boot software.) I agree about the imprecise language; I was, for once, trying to avoid additional pedantry and explanation. I gave people the benefit of the doubt in assuming that they knew that a BIOS does not know about partitions but can still boot from partitions. Rather like how "dd" can copy a filesystem without knowing about filesystems. I also let slide the misuse of "extended partition" (for "secondary partition" or "logical partition"), because I knew what was meant, even though I'm quite sure that the term should only be used for a primary partition which starts with a boot record and some kind of secondary (AKA extended, AKA logical) partitioning scheme, so that, in IBM (or was it MSFT?) jargon, one can have more than four "logical drives". If anyone has a URL for some old IBM or MSFT documents on the subject, I'd like to have it. Or maybe some hard drive standard. > > (FreeBSD would either have to be able (like Linux) to use the same > > secondary-partitioning scheme as IBM did or FreeBSD would have to be > > able to shoehorn its slices in, supporting a tertiary-partitioning > > scheme.) > > That's not really the problem. The boot manager has to know how to > invoke the FreeBSD loader. With the root filesystem in its own > extended partition, and the right set of boot blocks in that > partition, you can boot FreeBSD from an extended partition, without > changing any of FreeBSD's filesystem or slice support. [A number of > people have done it; the only tricky part is that, as I mentioned in > my earlier message, the FreeBSD installer can't do it for you.] So FreeBSD *is* able to use the same scheme as IBM did, as long as you install it with something besides the OS installer; I didn't know that or that FreeBSD would be so easy to "fix". That makes it even harder to explain why it hasn't been done. So could "/" be "s2a" or would it be "s5" or "s5a" or what? Could the extended (primary) partition be "s3c" or would it be "s5c" or what? How would the second secondary partition, say swap, be labeled? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message