From owner-freebsd-stable Mon Feb 4 20:53:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from topperwein.dyndns.org (acs-24-154-28-168.zoominternet.net [24.154.28.168]) by hub.freebsd.org (Postfix) with ESMTP id 43F9637B423 for ; Mon, 4 Feb 2002 20:53:23 -0800 (PST) Received: from topperwein (topperwein [192.168.168.10]) by topperwein.dyndns.org (8.11.6/8.11.6) with ESMTP id g154rKG78122 for ; Mon, 4 Feb 2002 23:53:20 -0500 (EST) (envelope-from behanna@zbzoom.net) Date: Mon, 4 Feb 2002 23:53:15 -0500 (EST) From: Chris BeHanna Reply-To: Chris BeHanna To: FreeBSD-Stable Subject: Re: Two FBSD slices on one disk - losing mountpoints? In-Reply-To: <20020202050938.A9135@sheol.localdomain> Message-ID: <20020204234854.L77182-100000@topperwein.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2 Feb 2002, D J Hawkey Jr wrote: > > After reading the 4.5 Handbook, and searching with Google and FBSD's own > engines, I cannot find anything to soothe my apprehension about what I see: > > I have FBSD on ad0s2. I want FBSD 4.5-REL on ad0s1. 'fdisk' is no problem, > and neither is 'disklabel', EXCEPT that as I create the [FBSD] partitions > in ad0s1, the mountpoints in the existing ad0s2 disappear, and 'disklabel' > tells me I already have such-and-such mountpoint when I try to re-mount > the partitions in ad0s2. > > I'm talking about using 'sysinstall' on a booted 4.5-REL install CD, not > the command-line 'disklabel'. > > My question is: By creating new partitions in ad0s1, am I really losing > the existing mountpoints in ad0s2? If so, how do I restore 'em? Or am I > missing something fundamental here? The partitions should still be there, but you'll have trouble mounting a partition of the same name on top of an already-mounted partition. Try this: When you boot from ad0s1, mount the ad0s2 partitions under /disk2. When you boot from ad0s2, mount the ad0s1 partitions under /disk1. This implies differing fstabs in ad0s1 and ad0s2. No biggie. It's been awhile since I used sysinstall's disklabel. If you can mark a partition to not be mounted automatically, do it on the partition you're not about to boot. Then you can edit /etc/fstab by hand in ad0s1, mkdir /disk2, and mount the ad0s2 partitions under /disk2. Then edit /disk2/etc/fstab and do the same for ad0s1 and /disk1, as suggested above. Worst case, boot from the live filesystem and fix the stuff by hand on-the-fly (bitter PITA when moving your boot device from the onboard controller to a Promise card, let me tell you!). -- Chris BeHanna Software Engineer (Remove "bogus" before responding.) behanna@bogus.zbzoom.net I was raised by a pack of wild corn dogs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message