Date: Thu, 24 Oct 2002 15:02:08 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: pippo@bellnet.ca Cc: m.seaman@infracaninophile.co.uk (Matthew Seaman), freebsd-questions@FreeBSD.ORG Subject: Re: how to add space Message-ID: <200210241902.g9OJ28800999@clunix.cl.msu.edu> 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
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210241902.g9OJ28800999>