Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 07:25:58 +0300 (MSK)
From:      "."@babolo.ru
To:        louie@TransSys.COM (Louis A. Mamakos)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: what slice did I boot from?
Message-ID:  <200201050425.HAA11703@aaz.links.ru>
In-Reply-To: <200201050231.g052Vt791486@whizzo.transsys.com> from "Louis A. Mamakos" at "Jan 4, 2 09:31:55 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201050425.HAA11703>