From owner-freebsd-stable@freebsd.org Fri Oct 6 17:33:24 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4844DE3CCF5 for ; Fri, 6 Oct 2017 17:33:24 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B344C67A82 for ; Fri, 6 Oct 2017 17:33:22 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id v96HXEPF045914 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Oct 2017 19:33:15 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: rosti.bsd@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id v96HXBE2041814 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 7 Oct 2017 00:33:11 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Installing amd64 FreeBSD 11.1 in dual-boot with Windows 7 on an MBR partitioned disk To: Rostislav Krasny , freebsd-stable References: From: Eugene Grosbein Message-ID: <59D7BE53.5050409@grosbein.net> Date: Sat, 7 Oct 2017 00:33:07 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 17:33:24 -0000 06.10.2017 22:17, Rostislav Krasny wrote: > I consider this as a critical bug. But maybe there is some workaround > that allows me to install the FreeBSD 11.1 as a second OS without > repartitioning the entire disk? > > My hardware is an Intel Core i7 4790 3.6GHz based machine with 16GB > RAM. The ada0 disk is 238GB SanDisk SD8SBAT256G1122 (SSD). bsdinstall (current installer) is seriously flawed comparing with sysinstall (previous one) when we talk about installing FreeBSD to a slice within MBR. You still can install FreeBSD by invoking a shell from bsdinstall and using gpart: gpart add -t freebsd -a 4096 ada0 # dedicate all unallocated space for ada0s3 gpart create -s BSD -n 20 ada0s3 # create BSD label able to contain upto 20 partitions gpart bootcode -b /boot/boot0 ada0 # install menu-driven boot manager BootEasy to MBR gpart bootcode -b /boot/boot ada0s3 # install FreeBSD-specific UFS boot code to its slice gpart set -a active -i 1 ada0 # make sure MBR has exactly one active partition gpart add -t freebsd-swap -s 4G -i 2 # allocate 4G for a swap ada0s3b (choose size of your like) gpart add -t freebsd-ufs -s 2G # allocate 2G for root partition ada0s3a newfs -L root /dev/ada0s3a gpart add -t freebsd-ufs -s 1G # allocate 1G for read-only /usr partition ada0s3d newfs -L usr /dev/ada0s3d gpart add -t freebsd-ufs -s 4G # allocate 4G for /var ada0s3e newfs -L var /dev/ada0s3e gpart add -t freebsd-ufs -s 10G # allocate 10G /usr/local: future installed ports & packages newfs -L usrl /dev/ada0s3f gpart add -t freebsd-ufs # allocate all other space for /home newfs -L home /dev/ada0s3g Then you will have mount new ada0s3a, create mount points for other partitions there, create etc/fstab, extract *.txz from distibution media and it will boot just fine.