From owner-freebsd-questions Thu Apr 9 12:59:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29551 for freebsd-questions-outgoing; Thu, 9 Apr 1998 12:59:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpha.xerox.com (firewall-user@alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA29543 for ; Thu, 9 Apr 1998 12:59:09 -0700 (PDT) (envelope-from leisner@sdsp.mc.xerox.com) Received: from gemini.sdsp.mc.xerox.com ([13.231.132.20]) by alpha.xerox.com with SMTP id <56402(3)>; Thu, 9 Apr 1998 10:12:12 PDT Received: from gnu.sdsp.mc.xerox.com (gnu [13.231.133.90]) by gemini.sdsp.mc.xerox.com (8.8.7/8.8.7) with SMTP id MAA18216 for ; Thu, 9 Apr 1998 12:49:42 -0400 (EDT) Received: from gnu (localhost) by gnu.sdsp.mc.xerox.com (4.1/client-1.3) id AA17011; Thu, 9 Apr 98 12:49:41 EDT Message-Id: <9804091649.AA17011@gnu.sdsp.mc.xerox.com> To: questions@FreeBSD.ORG Subject: booting freebsd (multiple slices on a disk) Date: Thu, 9 Apr 1998 09:49:40 PDT From: "Marty Leisner" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I tried to install the 2/22 snapshot on a PC (already running 2.2). My disk layout (from linux fdisk) is: : leisner@compudyne;bsdfdisk -l Disk /dev/hda: 64 heads, 63 sectors, 826 cylinders Units = cylinders of 4032 * 512 bytes Device Boot Begin Start End Blocks Id System /dev/hda1 1 1 127 256000+ 6 DOS 16-bit >=32M /dev/hda2 * 128 128 534 820512 5 Extended /dev/hda3 825 825 825 2016 a OS/2 Boot Manager /dev/hda4 535 535 686 306432 b5 Unknown /dev/hda5 * 128 128 254 256000+ 7 OS2 20.0 /dev/hda6 * 255 255 381 256000+ 7 OS2 20.0 /dev/hda7 * 382 382 407 52384+ 83 Linux native /dev/hda8 408 408 509 205600+ 83 Linux native /dev/hda9 510 510 534 50368+ 6 DOS 16-bit >=32M NO NAME Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders Units = cylinders of 4032 * 512 bytes Device Boot Begin Start End Blocks Id System /dev/hdb1 1 1 152 306400+ b5 Unknown /dev/hdb2 153 153 254 205632 6 DOS 16-bit >=32M /dev/hdb3 255 255 431 356832 b5 Unknown Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite) Disk /dev/hdd: 64 heads, 63 sectors, 621 cylinders Units = cylinders of 4032 * 512 bytes I'm using system commander (it changes the a5 ID to b5 [don't ask me why...freebsd still boots] When I tried to install on /dev/hda, it complained: This region cannot be used for your root partition as the FreeBSD boot code cannot deal with a root partition created in that location. Is this because it began at a cylinder > 512? (On the other hand, OS/2 Bootmanager doesn't have a problem). So I tried to put it on another slice on /dev/hdb (/dev/hdb3). The install went OK (it would help enormously to give some indication of the sizes when you install a system, instead of crunching for an hour before running out of space). I can boot either /dev/hdb1 or /dev/hdb3 in system commander, but the system where is installed is always /dev/hdb1 (2.2). I don't see support in there for multiple slices (did I miss something?) It seems like if disk.c:devopen() got a parameter indicating the disk slice, it would only look there (can it identify its disk slice its running from?) The alternative is to write a cheezy program which munges the disk label magic number on the partition I don't want to boot... marty leisner@sdsp.mc.xerox.com Don't confuse education with schooling. Milton Friedman to Yogi Berra To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message