From owner-freebsd-questions Mon Nov 15 21:40:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from melchett.gofast.net (melchett.gofast.net [206.147.230.51]) by hub.freebsd.org (Postfix) with ESMTP id 470F914E5B for ; Mon, 15 Nov 1999 21:40:19 -0800 (PST) (envelope-from hrp@melchett.gofast.net) Received: (from hrp@localhost) by melchett.gofast.net (8.9.1/8.9.1) id XAA00862; Mon, 15 Nov 1999 23:40:25 -0600 (CST) (envelope-from hrp) From: Hal Peterson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 15 Nov 1999 23:40:25 -0600 (CST) To: freebsd-questions@freebsd.org Subject: Selecting the boot slice X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14384.59584.964973.326245@melchett.gofast.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For historical reasons, I've configured my drive with four slices: slice one for DOS; two FreeBSD slices (two and four) with swap, root, and /var partitions; and a big slice, three, for the FreeBSD /usr filesystem. (My FreeBSD software is: FreeBSD 3.0-RELEASE #11: Sun Aug 1 22:26:51 CDT 1999 hrp@melchett.gofast.net:/usr/src/sys/compile/MELCHETT ) I can boot DOS from slice one and FreeBSD from slice two, but I haven't found a way to boot from FreeBSD in slice four. Both BootEasy and OS-BS prompt correctly for slice four. I ask to boot from slice four. Every time, I wind up getting the other FreeBSD from slice two. I poked around in /usr/src/sys/boot/i386/boot2/boot2.c and found that where it parses the specification for the kernel file, there is an undocumented parameter for the slice number. The documented syntax in boot.help is: Usage: bios_drive:interface(unit,partition)kernel_name options but boot2 actually parses this: Usage: bios_drive:interface(unit,slice,partition)kernel_name options ^^^^^ There's at least one additional trick with the slice, which is biased by BASE_SLICE (2). I tried to specify my slice-four kernel: 0:wd(0,5,a)kernel and, just in case: 0:wd(0,6,a)kernel and none of it worked: I always wound up with the system from /dev/wd0s2a. So, what's the trick? Is it possible to boot from slice 4? Has anybody ever tried this? It *ought* to work. -- Hal Peterson Bloomington, MN, USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message