Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2002 06:07:15 -0600
From:      D J Hawkey Jr <hawkeyd@visi.com>
To:        Michael Lucas <mwlucas@blackhelicopters.org>
Cc:        questions at FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Two FBSD slices on one disk - losing mountpoints?
Message-ID:  <20020202060715.A9390@sheol.localdomain>
In-Reply-To: <20020202063656.A26864@blackhelicopters.org>; from mwlucas@blackhelicopters.org on Sat, Feb 02, 2002 at 06:36:56AM -0500
References:  <20020201071356.A482@sheol.localdomain> <20020202063656.A26864@blackhelicopters.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Michael,

On Feb 02, at 06:36 AM, Michael Lucas wrote:
> 
> Dave,
> 
> ad0s1 should be different than ad0s2.  If you run "disklabel -r ad0s1"
> and "disklabel -r ad0s2", you should see the offsets on your disks.

Right now, no. ad0s1 is a Windozw(tm) ME slice that will be FBSD 4.5-REL
as soon as I'm comfortable getting it on there.

> You cannot have two mount points of the same name at the same time.  Try this:
> 
> unmount ad0s2a /
> remount ad0s2a / as oldroot
> 
> unmount ad0s2f /usr
> remount ad0s2f /oldusr
> 
> umount ad0s2e /var
> remount ad0s2e /oldvar

You mean while running FBSD in ad0s2, or while in 'sysinstall' on booting
the 4.5-REL install CD?

Were I to do this while running FBSD in ad0s2, I'd have to drop into single-
user mode ("shutdown -r now", "boot -s"), then re-boot with the 4.5-REL
install CD.

> This will give you the necessary warm fuzzies to know you aren't
> blowing up your system.

Then, after installation in ad0s1 is done and it's running, re-'disklabel'
the partitions in ad0s2 to their proper names?

I just had this thought, but it's early, and I've only had one coffee so
far: Boot the 4.5-REL install CD, and while in its 'fdisk' change the
slice type of the FBSD in ad0s2 to something else, say 77 (QNX), then re-
allocate ad0s1 to FBSD, and preceed on to 'disklabel'. After installation
is complete, go back to 'fdisk' while running FBSD in ad0s1, and change
ad0s2's partition type back to 165 (FBSD)?

Whether I fool 'sysintall' by jimmying the slice type, or the partition
mountpoints, of ad0s2, this would be enough to guarantee that 'sysinstall'
works only in ad0s1?

When all is done, it's a 'sysinstall disklabel' mechanics thang that won't
allow two like-named partitions, right? They can exist on a disk, but you
just can't get there through 'sysinstall'?

> Then you can create a new ad0s1a /, and so on.  Plus, you can recycle
> ad0s2b as swap for your new install.  :)

Actually, I'll be doing it the other way around, 'cuz I've added RAM, and
ad0s2b is now too small, but yes, I'll be cross-mounting the swap partition.

> I did something similar when I had a dual-boot Linux-BSD laptop.
> 
> Michael Lucas		mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org

Thanks for the reply; I'm getting edgy on a time-constraint here!
Dave

-- 
  ______________________                         ______________________
  \__________________   \    D. J. HAWKEY JR.   /   __________________/
     \________________/\     hawkeyd@visi.com    /\________________/
                      http://www.visi.com/~hawkeyd/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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