From owner-freebsd-questions Thu Oct 24 12: 2:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4188E37B401 for ; Thu, 24 Oct 2002 12:02:22 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B28E43E6A for ; Thu, 24 Oct 2002 12:02:21 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g9OJ28800999; Thu, 24 Oct 2002 15:02:09 -0400 (EDT) From: Jerry McAllister Message-Id: <200210241902.g9OJ28800999@clunix.cl.msu.edu> Subject: Re: how to add space To: pippo@bellnet.ca Date: Thu, 24 Oct 2002 15:02:08 -0400 (EDT) Cc: m.seaman@infracaninophile.co.uk (Matthew Seaman), freebsd-questions@FreeBSD.ORG In-Reply-To: <5.1.0.14.2.20021024133055.00ab7270@pop51.bellnet.ca> from "pippo@bellnet.ca" at Oct 24, 2002 02:15:52 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > At 03:21 PM 10/24/2002 +0100, you wrote: > > >Assuming the disk partition where you have space is /dev/da2s2 > > How do I find out the label(/dev/????) for the partition I want to use? > For example, on one of my machines, fdisk shows partition 3 as "(unknown)" > which must mean that it is unused. So, how do I address this partition if I > want to use it as ufs? Well, if it is the same disk and it is DOS 'partition' 3 it should be FreeBSD slice 3. That would make it '/dev/ad0s3X' Where: s3 indicates slice-3 and is what fdisk would see. X is whichever FreeBSD partition within the slice it is a,b,e,f,g,h are the ones generally used with b typically reserved for swap. (c gets used to designate the whole slice and I don't know what happend to d, but it generally doesn't seem to get used, probably for some historical reason) Fdisk doesn't care or know about these 'partitions' only about slices. Disklabel handles these partitions with a slice. First, use 'fdisk -s ad0' or even a full 'fdisk ad0' to see what it thinks is there. 'Unknown' can be either an empty slice type that was once used for something, or it could be a slice with an unknown type code, or completely uninitialized disk. If it is there, but empty, I think it would say 'unused'. Use fdisk to set slice 3 to be a FreeBSD slice type. The fdisk man pages tell how to have it act only on the one slice and set type and make it active or not active, etc. Also, if you are dual booting, eg want slice 3 to be bootable as well as whatever is in slice 1 or 2, then you also want fdisk to install the boot manager. which allows you to select which slice (with which OS) to boot. If you are already dual booting slices 1 and 2, then the Boot Manager is alrady there and should just do it as is. Then use disklabel to break it up in to partitions - the a,b,c,d,e,f,g,h stuff. If you run disklabel interactively you can choose everything nicely and easily. Make mount points where needed and fix up /etc/fstab to tell the system about the new partitions and how to use them. I think this is still a little foggy, but I have to run to a meeting now. ////jerry > The current FBSD filesystem is mounted like this: > /dev/ad0s2a - / > /dev/ad0s2e - /tmp > /dev/ad0s2g - /usr > /dev/ad0s2f - /var > > PJ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message