From owner-freebsd-questions@freebsd.org Tue Apr 5 04:39:42 2016 Return-Path: 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 D416CB033C3 for ; Tue, 5 Apr 2016 04:39:42 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A4CE51627 for ; Tue, 5 Apr 2016 04:39:42 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u354dfjM033428 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 4 Apr 2016 22:39:41 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u354dfuj033425; Mon, 4 Apr 2016 22:39:41 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 4 Apr 2016 22:39:41 -0600 (MDT) From: Warren Block To: Martin Paredes cc: freebsd-questions@freebsd.org Subject: Re: bsdinstall no detecting existing EFI partition In-Reply-To: <20160404144523.14fd7bec@morena.maps.net> Message-ID: References: <20160403232956.22ded633@morena.maps.net> <20160404144523.14fd7bec@morena.maps.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 04 Apr 2016 22:39:41 -0600 (MDT) Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2016 04:39:42 -0000 On Mon, 4 Apr 2016, Martin Paredes wrote: > El Mon, 04 Apr 2016 08:26:19 +0100 > krad 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 >>> >>> 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: 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 ; 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 ; 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 ; 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: References: <20160403232956.22ded633@morena.maps.net> <20160404144523.14fd7bec@morena.maps.net> Date: Tue, 5 Apr 2016 10:06:18 +0100 Message-ID: Subject: Re: bsdinstall no detecting existing EFI partition From: krad To: Warren Block Cc: Martin Paredes , FreeBSD Questions 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 wrote: > On Mon, 4 Apr 2016, Martin Paredes wrote: > > El Mon, 04 Apr 2016 08:26:19 +0100 >> krad 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 >>> >>>> >>>> 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" >