From owner-freebsd-questions@freebsd.org Sat Jul 7 23:47:26 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C869103BF92 for ; Sat, 7 Jul 2018 23:47:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BABD872A84 for ; Sat, 7 Jul 2018 23:47:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.57.160]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPA (Nemesis) id 0MfDvq-1fRR6V0fiE-00OpKh; Sun, 08 Jul 2018 01:42:05 +0200 Date: Sun, 8 Jul 2018 01:42:04 +0200 From: Polytropon To: RW Cc: RW via freebsd-questions Subject: Re: A request for unnested UFS implementation in MBR Message-Id: <20180708014204.57b34879.freebsd@edvax.de> In-Reply-To: <20180708000437.2dd95933@gumby.homeunix.com> References: <98201d37-2d65-34c6-969e-c9649f1a3ab1@yandex.com> <20180707224648.5187be22@gumby.homeunix.com> <0753eec0-674f-842f-2dae-c8405b004dc1@yandex.com> <20180708000437.2dd95933@gumby.homeunix.com> Reply-To: Polytropon 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 X-Provags-ID: V03:K1:gg/h94iTbL071YyrQNliddiL+uprX10dx77LYrV+8bgcsk4cPBc 03Kxs3Q/6X0phPwUFOyihnM75OWuZQKOSVAaGwq20yO/dF0ZhOoJ7z2tKPbsFrx51x75hy3 C5XBxVUN1awyz75/8bs5dyYcQ5b1s+r1Oc7XcLwAW5wHbN2Xs7LUn4McVtKpoy85844yghO OiLcH8zizdOuR6LQhhLtg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8mELFMcDso0=:nhZwc9GoN5Ei4l8rdjYfl8 4JupVqoEYBMLUIxu7qu2zoNBxurnXpebi3cnH4LSPWZFiKsKPtb6D+jDlwgXTEWkcPkCfF493 S5ktuHGfD9GYTYMc9SDplkODIv2436eL+I/Aa5SKcORHxyhSaQVgryPp2ySlUoC2izkl9AUsx Dt4v4OFksOTJh/a1TsOuo2e6S5szoE3WnX5QAFp6gu7fQICSDWIMzSg6lKiB9zkvjoN4AoEkW O+16+RMe1hbrUXGmyUrONxFGNCP/VXfNDYeShCpPe5Ikcrt2c4HicIbmmhm1hh6U2ggwM3St5 6kaLu/SVQX7nWLRgjZiptzgivzRjd3/xU4Exr4f4qwQcBAiLAA0RNhZYfxrRUclKSchXr7oN9 Or6012KKnzRLpyuAFipCWhvRdQxXhWK1h+YaLNkNdYaiL83eXLtBfM1NlGxmVk5a5gavLkNGw o5LI806B0evKUBtFn6G+yHFAYW4snBtE7Bie692JQb8FjqMdPWNPHZbHM4t3REPrpykVIGpak CctqsAkqzhfO1xRvnu/b8Ppd0oW+tn8cviZ5GDfmqxyNaa9zrpqLyn7oxb5LxRyE7eLfuE6jY shl2g6QehifNmSgmBqmb7orCloS+6XHVq1F19EgrQsU2qUuS4vvh1w7px0xtoJaBTNaSM8+nr k+pdSamRyApZXBJdyBvGgy5OHUWBt1IYL7kTe/c1rSG0HR8hXJ2Tomy++LhttjEtiId+hD7Z2 xjAtDdDf/DldyD8F X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2018 23:47:26 -0000 On Sun, 8 Jul 2018 00:04:37 +0100, RW via freebsd-questions wrote: > On Sun, 8 Jul 2018 03:28:30 +0530 > Manish Jain wrote: > > > On 07/08/18 03:16, RW via freebsd-questions wrote: > > > On Sun, 8 Jul 2018 02:20:56 +0530 > > > Manish Jain wrote: > > > >> There is one request I wished to make for FreeBSD filesystems. > > >> While UFS implementation under GPT is unnested just as Ext2, the > > >> MBR implementation of UFS continues to piggyback on an unnecessary > > >> nest (in a BSD slice). > > > > You can put UFS on an MBR partition if you want to. > > > > How ? Can you give me the gpart command for that ? Remember, the > > command must put the UFS partition directly into the MBR. Not first > > into a BSD nest. > > If you create an MBR partition you can run newfs on it - I done this > for data partitions. Whether or not you can make that a bootable > partition I don't know, I've never tried. I don't think there's any > intrinsic reason why it can't be done, it's a matter of whether it's > supported by a tool. >From my understanding (and explained off-list), FreeBSD requires a 'a' BSD-labeled partition (inside a slice in case of MBR, or on a disk if "dedicated") to boot from. It doesn't seem to be possible to label a partition 'a' without using labels. The label 'c' for data partitions is implicit and will be synonymous for "the whole thing" (slice, disk), as it is generated by using newfs on a MBR slice directly (no matter if "DOS primary partition" or "logical volume inside DOS extended partition"). > If you just want to put a single FreeBSD install on a disk without the > slice you can use a "dangerously dedicated" install, the traditional > unix install. Dedicated seems to be out of scope here because a further intend it to use the FreeBSD boot manager in a multiboot environment. Reality has shown several times that MBR is a useful solution here if you want to use that boot manager exclusively. Linux and FreeBSD can coexist on GPT, too, but usually require grub for boot selection. GPT is much more convenient, but it has its limitations. MBR has limitations as well. And the dedicated approach should only be used if you exactly know what to expect. There is no "one size fits all" solution for partitioning, booting, and multi-booting. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...