Date: Fri, 11 May 2012 05:18:16 -0400 From: Alejandro Imass <ait@p2ee.org> To: Polytropon <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: UFS Crash and directories now missing Message-ID: <CAHieY7S8Xz1KUCfFnt8s3EnqAwGLPc4Bh%2BaDoRp0j0SNVodcLg@mail.gmail.com> In-Reply-To: <20120509154807.b6e9ee4e.freebsd@edvax.de> References: <CAHieY7SWCE4KWFsDKy64tzQwhsnMTcuxLs07hoc9D2s4Y%2BmRFg@mail.gmail.com> <CAHieY7QeLP2QZXW7EGJ5Pb7MnES0cgzJrn%2BhB_6q0oyLy94HZw@mail.gmail.com> <CAHieY7TaW7pxrdd_bXgvcgYaQZN_Ju3rVpx5PRoTbxY3wWA1yQ@mail.gmail.com> <201205091953.28091.erich@alogreentechnologies.com> <CAHieY7Rgh81kXts_n2uEMyr-in4hVw1LpvVABB70gap7PpLMsQ@mail.gmail.com> <20120509154807.b6e9ee4e.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 9, 2012 at 9:48 AM, Polytropon <freebsd@edvax.de> wrote: > On Wed, 9 May 2012 09:30:37 -0400, Alejandro Imass wrote: >> On Wed, May 9, 2012 at 8:53 AM, Erich Dollansky >> <erich@alogreentechnologies.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHieY7S8Xz1KUCfFnt8s3EnqAwGLPc4Bh%2BaDoRp0j0SNVodcLg>