From owner-freebsd-hackers Fri Jan 4 20:18:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id C01D637B405 for ; Fri, 4 Jan 2002 20:18:39 -0800 (PST) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id HAA11703; Sat, 5 Jan 2002 07:25:59 +0300 (MSK) Message-Id: <200201050425.HAA11703@aaz.links.ru> Subject: Re: what slice did I boot from? In-Reply-To: <200201050231.g052Vt791486@whizzo.transsys.com> from "Louis A. Mamakos" at "Jan 4, 2 09:31:55 pm" To: louie@TransSys.COM (Louis A. Mamakos) Date: Sat, 5 Jan 2002 07:25:58 +0300 (MSK) Cc: freebsd-hackers@FreeBSD.ORG From: "."@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Louis A. Mamakos writes: > > I dunno if this has come up before or not, but thought I would ask. > > I've got one of the litle soekris net4501 boards that I use as a > router/firewall/NAT box, and it works really good. I have a stripped > down FreeBSD system that I run in a 16MB partition on an 32MB Compact > Flash card plugged into the net4501. Actually, I have two 16MB > slices, and my goal is to be running from one, and installing > the "next" version into the second slice. That way, if the new one > distribution screws up, I can back-out to the older on on the other > partition. > > That problem is that I have to generate a distribution with the > right /etc/fstab to reflect which of the two slices it will > be installed into, which is ugly. What would be Really Nice is > a version of the "compatibility" disk devices which would be > associated with the "active" slice that was booted from, rather > than the first FreeBSD slice found on the disk. This seems like > one mechanism to get what I want. Unfortunately, this information > doesn't seem to get propagated up to the slice code from what I can > tell. > > Any suggestions on alternative mechanisms? I usually swap whole partitions. For example label: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 254016, size 254016 (124 Meg), flag 80 (active) The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 254016 (124 Meg), flag 0 and: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 254016 (124 Meg), flag 80 (active) The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 254016, size 254016 (124 Meg), flag 0 on the same disk. -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message