Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2002 23:53:15 -0500 (EST)
From:      Chris BeHanna <behanna@zbzoom.net>
To:        FreeBSD-Stable <stable@freebsd.org>
Subject:   Re: Two FBSD slices on one disk - losing mountpoints?
Message-ID:  <20020204234854.L77182-100000@topperwein.dyndns.org>
In-Reply-To: <20020202050938.A9135@sheol.localdomain>

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




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