From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 16:44:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31DA71065676 for ; Tue, 2 Dec 2008 16:44:30 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D9C7E8FC28 for ; Tue, 2 Dec 2008 16:44:29 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id mB2GdKTV090334; Tue, 2 Dec 2008 11:39:20 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id mB2GdKIt090333; Tue, 2 Dec 2008 11:39:20 -0500 (EST) (envelope-from jerrymc) Date: Tue, 2 Dec 2008 11:39:20 -0500 From: Jerry McAllister To: Polytropon Message-ID: <20081202163920.GE90039@gizmo.acns.msu.edu> References: <20081202111740.96805018.freebsd@edvax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20081202111740.96805018.freebsd@edvax.de> User-Agent: Mutt/1.4.2.2i Cc: Pieter Donche , "mail.list freebsd-questions" Subject: Re: UFS partitioning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2008 16:44:30 -0000 On Tue, Dec 02, 2008 at 11:17:40AM +0100, Polytropon wrote: > On Tue, 2 Dec 2008 10:56:44 +0100 (CET), Pieter Donche wrote: > > If FreeBSD is to put on the system as only operating system (Fdisk: > > "A = Use Entire disk"), then will the BSD-partitions will show up as > > ad0a (/), ad0b (swap), ad0d (/var) etc... correct or not (then what)? > > You're mixing terminology here. :-) The "use entire disk" will > create a slice for FreeBSD covering the complete disk. A slice > is what MICROS~1 calls "primary partition". > > Now the conclusion: Let's say you create a slice on ad0, it will > be ad0s1. Now you can create partitions inside this slice as you > mentioned it, e. g. ad0s1a = /, ad0s1b = swap, ad0s1d = /tmp, > ad0s1e = /var, ad0s1f = /usr and ad0s1g = /home. True. Too bad MS had to use the same terminology for slices as FreeBSD uses for subdivisions of slices. But, it won't be undone now, so the confusion will continue. > But if you're > refering to ad0a, ad0b, ad0d etc. you're stating that there's > no slice, implying that (if I see this correctly) it isn't possible > to boot from that disk. It is correct that this would imply no slice being created. But it is not correct that it could not be bootable. You can use bsdlabel to write the boot sector to ad0 instead of ad0s1 and it would be bootable - but would be what someone has enjoyed describing as a 'dangerously dedicated' disk. FreeBSD can deal with it, but other systems cannot. I don't know if you can do this from sysinstall though. I have never tried. But, it can be done by running bsdlabel by hand. > Of couse, if you would intend to use > a (physical) second disk for only the home partition, you could > omit the slice and the partition and simply newfs ad1 - but > that wasn't your question. Probably the 'dangerously dedicated' disk is more often used this way as an additional (second) drive that is not made bootable. In that case, it is unlikely that one would mount any of the partitions on '/' making it the root filesystem. That may be a problem. But, otherwise this looks probable or more likely it would have some swap to add to the first disk and all the rest in either the a or d partitions mounted as something like '/work' or /scratch'. > > ad0 |-----------------------------------------------| the whole disk > ad0s1 \----------------------------------------------/ one slice > ad0s1X \--/\---/\-----/\-----/\-------/\------------/ partitions > a b d e f g > / swap /tmp /var /usr /home mount point Have fun, ////jerry > > In case of "dual booting", you usually have more than one slice > on your disk, but what happens inside the FreeBSD slice is mostly > the same. > > > > Page 427 of the FreeBSD handbook states that due to the use of 32-bit > > integers to store the number of sectors is limited to 2^32 -1 > > sectors/disk = 2 TB. A layout could be See my other message about this part. > > a / 1Gb, > > b swap, > > d /root 20 Gb, (a /root partition is from an example of someone who > > claims that at boot FreeBSD checks the partions in background except > > for the / partition, by keeping / as small as possible, the time to > > boot can be mimimized .. correct? but will /root ever be something > > big ??) > > No no, / refers to "the root partition". One way of setting > up püartitions is just to have one partition (one root parttion) > and put everything on it, including /tmp, /var, /usr and /home. > Another philosophy is to create partitions designated to their > further use, just as I mentioned it above. > > For /, you would hardly need more than 1 GB. It just contains > the kernel, basal system binaries, the configuration files and > the directories that are mount points for all the other file > systems. Even a 256 MB / partition should be enoung. > > > > e /tmp 20 Gb, > > f /var 20 Gb, > > g /usr 20 Gb > > this leaves 2420 Gb which is more than 2 Tb, so you can't put all > > that in 1 filesystem h /home, you will need to split that in 2 > > BSD-paritions, but since you can't have more that 8 BSD-partitions > > (highest BSD-partition letter is h), you need to give up at least > > one of d, e, f, g. ... correct or not (then what)? > > I quite doubt that FreeBSD's UFS 2 cannot handle a 2 TB partition > as a whole, but because I don't have sch large disks with UFS > (I have ZFS for them), I cannot tell. > > > > > > PS. Corrected subject (was missing). > > -- > Polytropon > >From Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >