From owner-freebsd-questions Thu Feb 4 15:26:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10702 for freebsd-questions-outgoing; Thu, 4 Feb 1999 15:26:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from Gina.esfm.ipn.mx (Gina.esfm.ipn.mx [148.204.102.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10689 for ; Thu, 4 Feb 1999 15:26:43 -0800 (PST) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (localhost [[UNIX: localhost]]) by Gina.esfm.ipn.mx (8.9.2/) with SMTP id RAA05926; Thu, 4 Feb 1999 17:19:53 -0600 (CST) Date: Thu, 4 Feb 1999 17:19:53 -0600 (CST) From: Eduardo Viruena Silva To: Greg Lehey cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can two versions of FreeBSD coexist in a single disk? In-Reply-To: <19990204121122.Z1179@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 4 Feb 1999, Greg Lehey wrote: > > I have a hard disk with 2 slices in its partition table. In the first one > > I have FreeBSD 2.2.8 and I have not touched the second one for anything. > > > > I received my FreeBSD 3.0 and I thought I could installed it in the > > second slice... > > > > Everything worked ok during the installation. > > > > When the installation process rebooted my machine, the first slice > > had lost its disklabel entry... I could not boot from the first slice > > anymore... > > > > WHAT HAPPENED??? > > YOU OVERWROTE THE LABEL!!! > > > I did not make anything weird. I swear! Has anybody had the same > > problem? > > I suspect you allowed the partitions to overlap. On the whole, it's > better to avoid (Microsoft) partitions and just use a UNIX partition > table. For example, on my test machine I run 2.2-STABLE and > 4.0-CURRENT. I have divided the UNIX slice into the following > partitions (this is the output from disklabel -r sd0): I did not use FDISK or similar. It just happened. Partitions are not overlaped. > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 81920 344064 4.2BSD 0 0 0 # (Cyl. 240*- 297*) > b: 262144 81920 swap # (Cyl. 57*- 240*) > c: 4226725 0 unused 0 0 # (Cyl. 0 - 2955*) > e: 81920 0 4.2BSD 0 0 0 # (Cyl. 0 - 57*) > f: 1900000 425984 4.2BSD 0 0 0 # (Cyl. 297*- 1626*) > g: 1900741 2325984 4.2BSD 0 0 0 # (Cyl. 1626*- 2955*) > > Partition a is the root partition for panic, the -CURRENT machine > Partition b is the swap partition for both machines > Partition e is the root partition for daemon, the -STABLE machine > Partition f is the /usr partition for daemon, the -STABLE machine > Partition g is the /usr partition for panic, the -CURRENT machine > > To boot the machine, you just tell it which partition to load the > kernel from. > I think I understood what happened... it was because I used slice "a" of both partitions? do they overlap ALWAYS? can FreeBSD distinguish between them? > Greg > -- > When replying to this message, please copy the original recipients. > For more information, see http://www.lemis.com/questions.html > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > ______ _ * / /###\ / \ __ /\ /\ * / ./#### \ * \__|_/ | | / \/ \ | b#####| * _ | __ | | __ = .. \____ \ \_\#####/ / \| / \ | | /\_\/ = \_| * \___\###/ * \_/\_/\__/\__\/_/\__/ = \______/ _ | | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message