From owner-freebsd-stable@freebsd.org Sat Oct 7 16:27:18 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 AC9EDE3BB61 for ; Sat, 7 Oct 2017 16:27:18 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 25D5581A8E for ; Sat, 7 Oct 2017 16:27:18 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id n195so8549524itg.2 for ; Sat, 07 Oct 2017 09:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fO+pKLmBikuFJtkrC/c/WTR8ouMrWu8vPhgu3Qt5ZfY=; b=I8ghopSI8rfdNtTLKLFu2ePJ+r0OQg+/XWfg6t19g7SvuNpddFlhy1yqWbH7kM4eBB h51yOHrjgIMst2Pz41kI72sF7fpnyOPAvuJ7E+WeiWnU2JC/TeBa2z9zbzSlHPVtu8f0 QMfC4JOCYZ6xiRK9qZ0mKUg3w9EmNfl3Ea3NHSZERtuq3ox8DIlSf1YSvJ7YkF5xoBa8 hEYYBdwuluXPDLx8XlPQANABtUQJXkg55I9Tggv4Hj8mz/ujm6pdphy3NY5AmuWIN0Wa qzN9WoqOb1vTrHZHMCKefvvKQHgVhL7CZZ7IDQHQa7hFfM7cJRX3Cc51b4mlW3FdbGD6 t2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fO+pKLmBikuFJtkrC/c/WTR8ouMrWu8vPhgu3Qt5ZfY=; b=aAo+2oDxUU6zBavNzpWk9h3nW6KB7w0e8tLIdl/J7fo2HM2EdVGOD5cLZLtg2ey7k/ /GhNHed5Stob0tWfUhgFszMr8Cv6Bi+lOrj0WWNmm0Jh3cnBpnN69+Sj5f9Zg6wKtEsT x1kAGumHdidAeil3PgrkIyWFCGQvsASBzAwYweRCqfg+CHOiIwMvpWl5dO95XmydHQ+n VF7wDqmjAF3kbAHDltzketeuxyVeglX1q8ZfJQoKJtWae9Y/Yhz0BxEV3qcDGjG4JOSk 5bxI7aGRYmGxuxyYLkwyf+b1nJKqfZmbf9THK94NBSz2PzQ35IUtHVlZXXV/BZ03Xdcp tdnw== X-Gm-Message-State: AMCzsaXlXwxKMdUpFLNesdP8efGkABUJi3zw1+9ZvDYJJFZwpa7Rsq82 d7XYJCmEqWx/PxVFCfIm8bBqqcnjLGKyALdBhZu6sA== X-Google-Smtp-Source: AOwi7QBPDU/ahn/lb/I3bvbJZicr9W8+33NptcMgPFNgET6xe4ZOULDdCjsm0ZGHUbFXdv7eOL+f/BnzC94E+m7wkew= X-Received: by 10.36.104.75 with SMTP id v72mr7039483itb.81.1507393637510; Sat, 07 Oct 2017 09:27:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.154.203 with HTTP; Sat, 7 Oct 2017 09:27:17 -0700 (PDT) In-Reply-To: References: <59D7BE53.5050409@grosbein.net> From: Rostislav Krasny Date: Sat, 7 Oct 2017 19:27:17 +0300 Message-ID: Subject: Re: Installing amd64 FreeBSD 11.1 in dual-boot with Windows 7 on an MBR partitioned disk To: Warner Losh Cc: Eugene Grosbein , freebsd-stable Content-Type: text/plain; charset="UTF-8" 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: Sat, 07 Oct 2017 16:27:18 -0000 On Sat, Oct 7, 2017 at 6:26 PM, Warner Losh wrote: > Sorry for top posting. Sounds like your BIOS will read the botox64.efi from > the removable USB drive, but won't from the hard drive. Force BIOS booting > instead of UEFI and it will install correctly. However, it may not boot > Windows, which I think requires UEFI these days. > > The root of the problem is that we have no way to setup the EFI boot > variables in the installer that we need to properly installed under UEFI. > I'm working on that, so you'll need to be patient... > > Warner My computer doesn't have any EFI partition and this explains why the installed FreeBSD boots in the BIOS mode on it. The installation media probably has the EFI partition (with the bootx64.efi) and then BIOS probably boots the installation media in the UEFI mode instead of the BIOS mode. So the "machdep.bootmethod" sysctl doesn't represent the BIOS boot mode configuration but a boot method the currently running system was booted in. If this is true then the "machdep.bootmethod" sysctl should not be used in bsdinstall. At least not for the bootability check. Something else should be used for the bootability check or the bsdinstall should trust the user choice. BTW this is how the EFI partition looks like in someone's Windows 7 disk manager: https://www.easyuefi.com/wintousb/images/en_US/efi-system-partition.png and this how it looks without any EFI partition in my system (with Windows 7 / FreeBSD dual-boot) http://i68.tinypic.com/9u19b8.png I think even that NTFS System Reserved partition is not mandatory for Windows installation. It just used to keep Windows boot files in a safe, place preventing accidental deletion by a user. It's being created if Windows is installed on an empty disk but if you create just one big NTFS partition prior to the Windows installation and install it on that single partition it will be ok. There will be just more Windows system files on the C disk, for example ntldr, NTDETECT.COM. It can be checked on VM, for example on VirtualBox.