From owner-freebsd-questions Sat Nov 11 21:45:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 66FE537B4CF for ; Sat, 11 Nov 2000 21:45:06 -0800 (PST) Received: (from grog@localhost) by wantadilla.lemis.com (8.11.0/8.9.3) id eAC5i6J02654; Sun, 12 Nov 2000 16:14:06 +1030 (CST) (envelope-from grog) Date: Sun, 12 Nov 2000 16:14:06 +1030 From: Greg Lehey To: Mathias Koerber Cc: freebsd-questions@FreeBSD.ORG Subject: Re: More partitions on a single slice? Message-ID: <20001112161406.J802@wantadilla.lemis.com> References: <00fd01c04c64$b127f3c0$f4db7fcb@dean.koerber.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <00fd01c04c64$b127f3c0$f4db7fcb@dean.koerber.org>; from mathias@koerber.org on Sun, Nov 12, 2000 at 12:54:50PM +0800 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 12 November 2000 at 12:54:50 +0800, Mathias Koerber wrote: > Hi, > > I am familiar with Linux, and just trying to install FreeBSD on my new > notebook. Is that the Vaio you were showing around on Friday evening? You could have asked me then :-) > The FreeBSD Manual on one hand explains that it is better having > separate filesystems for /var, /tmp etc. And the "Complete FreeBSD" on the other hand recommends as few as possible. > But on the other hand there seems to be severe restriction on > partitions available in the one FreeBSD slice on my harddisk. Well, there are 8. That's ample. > (The manual also claims that disklabel prefers the 'e' partition for > non-root filesystems. The preference for 'e' is for historical reasons ('a' is for a root file system, 'b' for swap, 'c' for the whole disk, 'd' used to be special, as I believe it still is in NetBSD), so the first partition you could use is 'e'. But it really doesn't make any difference which partition you use. > There seems to be a basic assumption here that everything non-root > goes into a single partition, or that additional physical disks (or > slices) are available). I'd consider that a good assumption. > I want to create: > / (ro) > /usr (ro) If these are both ro, you should combine them. > /var > /home > /tmp This can be mfs, which doesn't use a partition. > /usr/local Is there a reason why this can't be a symlink to /home/local? > swap If you have a separate Microsoft partition for your Linux swap, you should be able to use it for FreeBSD swap as well. Note that FreeBSD trades swap space for performance, so you may need swap more than you would for Linux--I'm currently recommending 512 MB, though this would be probably more than you'd need on a laptop. > /u0 What's this for? > and potentially more. I'd be interested in why. All this does is give you the opportunity to fill up one file system while having plenty of space in the others. Symlinks are a workaround when you get to this situation, but not a solution. In your particular case, I can see a case for: / (ro, including /usr) /tmp (mfs) /home, including /usr/local, /var and /u0 swap That's three partitions. If you want to address directories like /u0, you can make them symlinks. > However, disk partitions only seem to go up to ad0s1h. Well, in fact they go up to ad0s4h. > When I use the disklabel editor, it lets me devine additional > partitions, but names the devive /dev/dsk/X? I've never seen that. > Later mount complains that that does not exist. An example here would be useful. > And no, I do not want to scarifice another slice (BIOS partition) as > I need that for Linux. Ah. You can't have your cake and eat it. I suppose one way round this "problem" would be to use vinum, which allows you to define an arbitrary number of volumes. But I still suspect that you're basing your requirements on incorrect assumptions. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message