From owner-freebsd-questions@FreeBSD.ORG Fri May 11 09:18:19 2012 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 3D819106564A for ; Fri, 11 May 2012 09:18:19 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id A8DF58FC19 for ; Fri, 11 May 2012 09:18:18 +0000 (UTC) Received: by ggnm2 with SMTP id m2so2054506ggn.13 for ; Fri, 11 May 2012 02:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=fqp5cVM5U2aXNJEK60if31Bq7SE52jCS84szMPy2Uik=; b=ESj/n/szw9cfMvxnbAflmIrkwd7Lyb70MPHZE71Sqb78rprED8q3w53BgoSySOh5ih ROafPejp1xCv5BxlfdyGZEfZbAxlGMDILTifZGvzj88B3jix8QjfoijviPVQ6OTI+KhL wWiM85nVNABmObdvZoiqXEWidNUvPJZ/ejWj2DkaHHcIN+zS4VIoHG5VLlAqriQ0LFmk DfTccOTJBXe274AwdfP1iNi3NhWZ+mQwH9R98vvOI5pNYD7SOwPEXz6KfsRJAib2VnI/ vWXCW0THL4tWNj3lYHvPDtLm9U4VllTRr6hlwmggK56sDsTjXkftpRvUNei6oFCgXMaU 5qQQ== MIME-Version: 1.0 Received: by 10.42.142.71 with SMTP id r7mr3914035icu.7.1336727897184; Fri, 11 May 2012 02:18:17 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.231.74.138 with HTTP; Fri, 11 May 2012 02:18:16 -0700 (PDT) In-Reply-To: <20120509154807.b6e9ee4e.freebsd@edvax.de> References: <201205091953.28091.erich@alogreentechnologies.com> <20120509154807.b6e9ee4e.freebsd@edvax.de> Date: Fri, 11 May 2012 05:18:16 -0400 X-Google-Sender-Auth: I3Bv_YWp-ZvQO0tdeP6B0jNHKM0 Message-ID: From: Alejandro Imass To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlgYYAq3srKST5byDU5G5flWdw9mqlpDF5UOkeyUbjG0dMHZBBbW+BetyRMqgil5iivce5r 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2012 09:18:19 -0000 On Wed, May 9, 2012 at 9:48 AM, Polytropon wrote: > 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 differe= nt units which have to be mounted independent of each other, it all does no= t 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 =A0 =A0 =A0 =A0-> the disk > /dev/ad0s1 =A0 =A0 =A0-> 1st slice > /dev/ad0s1a =A0 =A0 -> 1st partition on 1st slice > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 THIS is something you can mount. > -or- > /dev/ad0a =A0 =A0 =A0 -> 1st partition on disk ("dedicated") > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 THIS can also be mounted. > -or- > /dev/ad0 =A0 =A0 =A0 =A0-> the whole disk (equals /dev/ad0c) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Even THIS can be mounted. > > In case I'm misunderstanding your question, could you alter the > expression? > Thanks. The question was more advantages of a single slice + single partition versus a slice and multiple partitions, for mounting the EzJail basejail in RO mode.