Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Apr 2016 22:39:41 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Martin Paredes <mapsware@prodigy.net.mx>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bsdinstall no detecting existing EFI partition
Message-ID:  <alpine.BSF.2.20.1604042236590.39632@wonkity.com>
In-Reply-To: <20160404144523.14fd7bec@morena.maps.net>
References:  <20160403232956.22ded633@morena.maps.net> <CALfReyfOvDZv%2Bqg7mwSLCKSA1b=1eC8mvqY719c0B9jjApA_7g@mail.gmail.com> <20160404144523.14fd7bec@morena.maps.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Apr 2016, Martin Paredes wrote:

> El Mon, 04 Apr 2016 08:26:19 +0100
> krad <kraduk@gmail.com> escribió:
>> you dont need 2x efi partitions just put the freebsd bootx64.efi in a
>> different directory on the efi so you get something like this
>>
>> efi/boot/bootx64.efi (windows one)
>> efi/freebsd/bootx64.efi
>>
>> you should be able to choose which os from the UEFI (BIOS to some)
>> boot menu, usually invoked by F10 during boot
>
> The option appear, even if I left only 1 EFI partition without the
> bootx64.efi, something that the UEFI from the laptop does by it self
>
>>
>> On 4 April 2016 at 07:29, Martin Paredes <mapsware@prodigy.net.mx>
>>>
>>> Where can I see the code that create the partiotions and populate
>>> the second efi partition
>>>
>
> I found some programs in
>
> /usr/libexec/bsdinstall/
>
> But autopart is a binary file
>
> /usr/libexec/bsdinstall/autopart: ELF 32-bit LSB executable

The FreeBSD EFI loader is
   /boot/boot1.efi

The EFI partition can be mounted as msdosfs.  Details are shown here:
http://www.wonkity.com/~wblock/docs/html/disksetup.html#_booting_with_uefi
From owner-freebsd-questions@freebsd.org  Tue Apr  5 09:06:20 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@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 A2B85B03D28
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue,  5 Apr 2016 09:06:20 +0000 (UTC)
 (envelope-from kraduk@gmail.com)
Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com
 [IPv6:2a00:1450:400c:c09::235])
 (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 3AEF01159
 for <freebsd-questions@freebsd.org>; Tue,  5 Apr 2016 09:06:20 +0000 (UTC)
 (envelope-from kraduk@gmail.com)
Received: by mail-wm0-x235.google.com with SMTP id 20so12438759wmh.1
 for <freebsd-questions@freebsd.org>; Tue, 05 Apr 2016 02:06:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc; bh=EsZwZobL+bNFUsezVBbFfxN0Tb6iVcIlGO4O7zNyhOg=;
 b=yNgGjyi3JvKXNey3OIRnZJ8tiMByNrz6kxmQMRAdDKDdYN+Qbn7FHoenbYnl+0c1KC
 Sb4USYJO86H9uuokHjcAtZtpzuVVsNrbb4LUiS4aNMf9nzaqPo9UGuq7TMhNd5yAuon5
 RE/Ezg0iJh2T1lOpMYNpMYtNE6XgGEO/iNAxODH77Z3UWHmsc3oniNc+KUrWZqQv3iFF
 0aNQKaQ9vH9/EDhsAVJsdj2EmonCXLlbijRXEwp6aOY1etuILAYuj+qRzCJQGmejOYtS
 eIHukj0BEBR4JSl6FxE085+kJkXJZAxE8O7vtnO+3RfzAG/3EzzdIQeogF2lCV8H+Kgk
 7UWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc;
 bh=EsZwZobL+bNFUsezVBbFfxN0Tb6iVcIlGO4O7zNyhOg=;
 b=kwZS08V5acHrbh7WHHBYZsT7Mm8b16eoKUaHdMfbKzQLc763/+R7oApBb/IVhl9b+7
 V5wPBfeqvFRIymOaSf+n4w93Md8jHfrpvynXPYGrgWoQMmgRk3K3Eq/Mvq5YMUaQ07+n
 7EEYfViEWBp6AxHUlhKKI3vOWTgrJDkDxqXdhTPJQPNVuoqGCn8lDKDVjdbaZVY/WZgF
 19SAEkgZlXpp83rIXZ2cBLCmgI/EAbJ8wRqXIdhiGA9I/yCfIvGltcgbTBwHYhLHazsK
 07hi6+MYEflYTAqWi6bNClJyAuxe7GkRSzt8s6hMqgtnvCN/iyfSf2O8wiE1OPi+g14v
 U5VQ==
X-Gm-Message-State: AD7BkJLJb/cd+MIoKUFKsC6mqgEHCa+AxHM00sC30FiD61FxC3DNMbZ3zeBslkXw3FjlIAvTG/9Knqte3gj/aA==
MIME-Version: 1.0
X-Received: by 10.28.91.83 with SMTP id p80mr17056342wmb.48.1459847178742;
 Tue, 05 Apr 2016 02:06:18 -0700 (PDT)
Received: by 10.28.46.67 with HTTP; Tue, 5 Apr 2016 02:06:18 -0700 (PDT)
In-Reply-To: <alpine.BSF.2.20.1604042236590.39632@wonkity.com>
References: <20160403232956.22ded633@morena.maps.net>
 <CALfReyfOvDZv+qg7mwSLCKSA1b=1eC8mvqY719c0B9jjApA_7g@mail.gmail.com>
 <20160404144523.14fd7bec@morena.maps.net>
 <alpine.BSF.2.20.1604042236590.39632@wonkity.com>
Date: Tue, 5 Apr 2016 10:06:18 +0100
Message-ID: <CALfReyf0PeUWL_gHCNp4t06dyyO8fDbrKWRUOmDvVP2o9JrGdA@mail.gmail.com>
Subject: Re: bsdinstall no detecting existing EFI partition
From: krad <kraduk@gmail.com>
To: Warren Block <wblock@wonkity.com>
Cc: Martin Paredes <mapsware@prodigy.net.mx>, 
 FreeBSD Questions <freebsd-questions@freebsd.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Apr 2016 09:06:20 -0000

this is the layout of my working efi system

# df -h .
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2    767K    130K    637K    17%    /boot/efi
# mount | grep /dev/ada0p2
/dev/ada0p2 on /boot/efi (msdosfs, local)
# find .
.
./efi
./efi/boot
./efi/boot/bootx64.efi

# gpart show ada0
=3D>       34  117231341  ada0  GPT  (56G)
         34       1024     1  freebsd-boot  (512K)
       1058          6        - free -  (3.0K)
       1064     262144     2  efi  (128M)
     263208    3932154     4  freebsd-swap  (1.9G)
    4195362  113036013     3  freebsd-zfs  (54G)

the boot dir is the default efi boot but i can have other options by having
other directories with different bootx64.efi files in IIRC



On 5 April 2016 at 05:39, Warren Block <wblock@wonkity.com> wrote:

> On Mon, 4 Apr 2016, Martin Paredes wrote:
>
> El Mon, 04 Apr 2016 08:26:19 +0100
>> krad <kraduk@gmail.com> escribi=C3=B3:
>>
>>> you dont need 2x efi partitions just put the freebsd bootx64.efi in a
>>> different directory on the efi so you get something like this
>>>
>>> efi/boot/bootx64.efi (windows one)
>>> efi/freebsd/bootx64.efi
>>>
>>> you should be able to choose which os from the UEFI (BIOS to some)
>>> boot menu, usually invoked by F10 during boot
>>>
>>
>> The option appear, even if I left only 1 EFI partition without the
>> bootx64.efi, something that the UEFI from the laptop does by it self
>>
>>
>>> On 4 April 2016 at 07:29, Martin Paredes <mapsware@prodigy.net.mx>
>>>
>>>>
>>>> Where can I see the code that create the partiotions and populate
>>>> the second efi partition
>>>>
>>>>
>> I found some programs in
>>
>> /usr/libexec/bsdinstall/
>>
>> But autopart is a binary file
>>
>> /usr/libexec/bsdinstall/autopart: ELF 32-bit LSB executable
>>
>
> The FreeBSD EFI loader is
>   /boot/boot1.efi
>
> The EFI partition can be mounted as msdosfs.  Details are shown here:
> http://www.wonkity.com/~wblock/docs/html/disksetup.html#_booting_with_uef=
i
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1604042236590.39632>