Date: Thu, 9 Apr 1998 09:49:40 PDT From: "Marty Leisner" <leisner@sdsp.mc.xerox.com> To: questions@FreeBSD.ORG Subject: booting freebsd (multiple slices on a disk) Message-ID: <9804091649.AA17011@gnu.sdsp.mc.xerox.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9804091649.AA17011>