*BSD News Article 45815


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!simtel!noc.netcom.net!news.sprintlink.net!EU.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Running multiple versions of FreeBSD
Date: 21 Jun 1995 11:16:29 +0200
Organization: Private U**x site, Dresden.
Lines: 39
Message-ID: <3s8o1d$lu4@bonnie.tcd-dresden.de>
References: <3s1d39$piq@news.millcomm.com> <3s3r5a$5r2@bonnie.tcd-dresden.de> <3s5g46$5ba@uwm.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Mark Chapman <chapman@miller.cs.uwm.edu> wrote:

[Multiple FreeBSD slices (FDISK partitions)]

>How can I create a new FreeBSD partition without affecting any other
>partitions?  I am running 2.0.5 or later.

Read the documentation about disk slicing.  It should be possible for
you to get what you want, since you're apparently not intending to
boot from it.  (As the docs are telling, the boot sectors are not yet
slice-aware.)


>The data for partition 0 is:
...
>The data for partition 2 is:
>sysid 23,(unknown)
>    start 409600, size 1024000 (500 Meg), flag 80
>        beg: cyl 200/ sector 1/ head 0;
>        end: cyl 699/ sector 32/ head 63
>The data for partition 3 is:
>sysid 165,(FreeBSD/NetBSD/386BSD)
>    start 1913760, size 1501920 (733 Meg), flag 0
>        beg: cyl 934/ sector 1/ head 29;
>        end: cyl 1023/ sector 32/ head 63
>
>
>The "unknown" 500 Meg partition is the one I want to take over.

Hmm, the FreeBSD slices will be /dev/sd0s2 and /dev/sd0s3 then.  I
assume you will have to swap the physical location of entries 2 and 3
in the partition table then, so the boot code will find your current
FreeBSD slice first and boot from it.  Properly done, shuffling the
partition table entries around should not lose any data.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)