From owner-freebsd-questions@FreeBSD.ORG Wed May 9 13:48:09 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90BC41065670 for ; Wed, 9 May 2012 13:48:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9E68FC0A for ; Wed, 9 May 2012 13:48:09 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx01.qsc.de (Postfix) with ESMTP id 9BD2211; Wed, 9 May 2012 15:48:07 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q49Dm7Kt001918; Wed, 9 May 2012 15:48:07 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 9 May 2012 15:48:07 +0200 From: Polytropon To: Alejandro Imass Message-Id: <20120509154807.b6e9ee4e.freebsd@edvax.de> In-Reply-To: References: <201205091953.28091.erich@alogreentechnologies.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: UFS Crash and directories now missing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2012 13:48:09 -0000 On Wed, 9 May 2012 09:30:37 -0400, Alejandro Imass wrote: > On Wed, May 9, 2012 at 8:53 AM, Erich Dollansky > wrote: > >> For your recommendation above, what are the advantages or differences > >> of slicing the disk versus partitioning on a single slice? > >> > > it could be a misunderstanding. What is a partition? What is a slice. I have to look always into the handbook. Anyway, as long the OS see different units which have to be mounted independent of each other, it all does not matter what is what. > > > > I meant in Unix terms of course. Slice is slice (partition in other > OS) and partition a thru h > > The question is if it has any advantage of using a slice to mount the > basejail in RO as opposed to doing the same thing on a partition. The answer is: It it not possible. :-) You cannot mount a slice. Given the BSD terminology: A slice _has_ to contain partitions. You cannot format a slice, you can only format partitions. A formatted partition carries a UFS file system. (However, it's possible to omit the slice, and partition the whole disk instead, this is called "dedicated mode"). A third method is formatting the whole disk ("the 'c' device"), in that case the 'c' is omitted. The _only_ time you can mount a slice is when it is used in its common meaning, being a "DOS primary partition"; in this case, a FAT or NTFS file system will be placed directly into a slice, as those do not support any (BSD-style) partitioning. /dev/ad0 -> the disk /dev/ad0s1 -> 1st slice /dev/ad0s1a -> 1st partition on 1st slice THIS is something you can mount. -or- /dev/ad0a -> 1st partition on disk ("dedicated") THIS can also be mounted. -or- /dev/ad0 -> the whole disk (equals /dev/ad0c) Even THIS can be mounted. In case I'm misunderstanding your question, could you alter the expression? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...