Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2016 22:11:09 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Eric van Gyzen <vangyzen@FreeBSD.org>
Cc:        =?ISO-8859-15?Q?Fernando_Herrero_Carr=F3n?= <elferdo@gmail.com>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
Message-ID:  <alpine.BSF.2.20.1612172209330.79210@wonkity.com>
In-Reply-To: <71c128ef-8ad0-3cd8-9c34-8fc349d61447@FreeBSD.org>
References:  <CAMwkeZznenmN1RkUaKZ7i12F0FA185ZH%2BcHPXUp56S8j3SrubQ@mail.gmail.com> <71c128ef-8ad0-3cd8-9c34-8fc349d61447@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Dec 2016, Eric van Gyzen wrote:

> On 12/16/2016 11:08, Fernando Herrero Carrón wrote:
>> Hi everyone,
>>
>> A few months ago I got myself a new box and I have been happily running
>> FreeBSD on it ever since. I noticed that the boot was not as fast as I had
>> expected and I've realized that, while my disk is GPT partitioned, the boot
>> process is still BIOS based:
>>
>> % gpart show
>> =>       34  976773101  ada0  GPT  (466G)
>>          34          6        - free -  (3.0K)
>>          40       1024     1  freebsd-boot  (512K)
>>        1064        984        - free -  (492K)
>>        2048   67108864     2  freebsd-swap  (32G)
>>    67110912  909662208     3  freebsd-zfs  (434G)
>>   976773120         15        - free -  (7.5K)
>>
>> I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot
>> using UEFI straight into ZFS, so I am thinking of converting that
>> freebsd-boot partition to an EFI partition, creating a FAT filesystem and
>> copying /boot/boot.efi there.
>>
>> How good of an idea is that? Would it really be that simple or am I missing
>> something? My only reason for wanting to boot with UEFI is faster boot,
>> everything is working fine otherwise.
>
> I would recommend creating another partition for EFI instead of replacing your
> freebsd-boot partition, in order to have a working fallback in case EFI boot
> doesn't work.  You would need to steal some space from your swap partition.

Be aware that some newer Dells really don't like to have both and will 
refuse to boot in either mode with such a setup.
From owner-freebsd-stable@freebsd.org  Sun Dec 18 05:12:35 2016
Return-Path: <owner-freebsd-stable@freebsd.org>
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 DF69FC86834
 for <freebsd-stable@mailman.ysv.freebsd.org>;
 Sun, 18 Dec 2016 05:12:35 +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 960BF16A4;
 Sun, 18 Dec 2016 05:12:35 +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 uBI5CXoB086956
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Sat, 17 Dec 2016 22:12:33 -0700 (MST)
 (envelope-from wblock@wonkity.com)
Received: from localhost (wblock@localhost)
 by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id uBI5CXvp086953;
 Sat, 17 Dec 2016 22:12:33 -0700 (MST)
 (envelope-from wblock@wonkity.com)
Date: Sat, 17 Dec 2016 22:12:33 -0700 (MST)
From: Warren Block <wblock@wonkity.com>
To: Eric van Gyzen <vangyzen@FreeBSD.org>
cc: Slawa Olhovchenkov <slw@zxy.spb.ru>,
 =?ISO-8859-15?Q?Fernando_Herrero_Carr=F3n?= <elferdo@gmail.com>,
 freebsd-stable <freebsd-stable@freebsd.org>
Subject: Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
In-Reply-To: <b9ede396-2a86-8319-2f40-fe1c40cc6483@FreeBSD.org>
Message-ID: <alpine.BSF.2.20.1612172211420.79210@wonkity.com>
References: <CAMwkeZznenmN1RkUaKZ7i12F0FA185ZH+cHPXUp56S8j3SrubQ@mail.gmail.com>
 <20161216173930.GD90401@zxy.spb.ru>
 <b9ede396-2a86-8319-2f40-fe1c40cc6483@FreeBSD.org>
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.6.1
 (wonkity.com [127.0.0.1]); Sat, 17 Dec 2016 22:12:33 -0700 (MST)
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 18 Dec 2016 05:12:36 -0000

On Fri, 16 Dec 2016, Eric van Gyzen wrote:

> On 12/16/2016 11:39, Slawa Olhovchenkov wrote:
>> On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carrón wrote:
>>
>>> Hi everyone,
>>>
>>> A few months ago I got myself a new box and I have been happily running
>>> FreeBSD on it ever since. I noticed that the boot was not as fast as I had
>>> expected and I've realized that, while my disk is GPT partitioned, the boot
>>> process is still BIOS based:
>>>
>>> % gpart show
>>> =>       34  976773101  ada0  GPT  (466G)
>>>          34          6        - free -  (3.0K)
>>>          40       1024     1  freebsd-boot  (512K)
>>>        1064        984        - free -  (492K)
>>>        2048   67108864     2  freebsd-swap  (32G)
>>>    67110912  909662208     3  freebsd-zfs  (434G)
>>>   976773120         15        - free -  (7.5K)
>>>
>>> I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot
>>> using UEFI straight into ZFS, so I am thinking of converting that
>>> freebsd-boot partition to an EFI partition, creating a FAT filesystem and
>>> copying /boot/boot.efi there.
>>>
>>> How good of an idea is that? Would it really be that simple or am I missing
>>> something? My only reason for wanting to boot with UEFI is faster boot,
>>> everything is working fine otherwise.
>>>
>>> Thanks in advance for your help.
>>
>> I am also interesting by this case.
>> I think expand freebsd-boot to about 1M (size of /boot/boot1.efifat),
>> dding /boot/boot1.efifat and set to type to 'efi' may be enough. I am
>> never tried this.
>
> I expect that would work.  It's slightly risky, though, since it doesn't let you
> fall back to BIOS boot if EFI doesn't work.

The fallback in that case would just be changing that partition back to 
freebsd-boot and rewriting the bootcode to it.
From owner-freebsd-stable@freebsd.org  Sun Dec 18 08:37:50 2016
Return-Path: <owner-freebsd-stable@freebsd.org>
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 46C81C86CCB
 for <freebsd-stable@mailman.ysv.freebsd.org>;
 Sun, 18 Dec 2016 08:37:50 +0000 (UTC)
 (envelope-from david.marec@davenulle.org)
Received: from smtp.smtpout.orange.fr (smtp13.smtpout.orange.fr
 [80.12.242.135]) by mx1.freebsd.org (Postfix) with ESMTP id B72F61D04
 for <freebsd-stable@freebsd.org>; Sun, 18 Dec 2016 08:37:48 +0000 (UTC)
 (envelope-from david.marec@davenulle.org)
Received: from dmarec.local ([109.214.21.61]) by mwinf5d76 with ME
 id MLW91u0021K4e8l03LW9dC; Sun, 18 Dec 2016 09:30:10 +0100
X-ME-Helo: dmarec.local
X-ME-Date: Sun, 18 Dec 2016 09:30:10 +0100
X-ME-IP: 109.214.21.61
Subject: Re: [ZFS] files in a weird situtation
References: <914db6e5-2d8d-15b4-ee96-bc267ce1dbda@davenulle.org>
 <CA+tpaK230dnOkEQS9rFm=xVBkgOZv+E6yEiZEGJGSN_jPCwq1Q@mail.gmail.com>
To: freebsd-stable <freebsd-stable@freebsd.org>
From: David Marec <david.marec@davenulle.org>
Message-ID: <61624b8e-9917-1129-113a-4398077005f7@davenulle.org>
Date: Sun, 18 Dec 2016 09:30:08 +0100
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CA+tpaK230dnOkEQS9rFm=xVBkgOZv+E6yEiZEGJGSN_jPCwq1Q@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 18 Dec 2016 08:37:50 -0000

On 18.12.2016 01:38, Adam Vande More wrote:
>
> I am unable to understand what your intent is here.  If you wish to 
> delete it, you can do:
>
> find . -inum 10552574 -exec rm {} \;

It fails on «No such file or directory».

This file missing, not much works.
I have installed a copy into `/usr/lib` to make the system run again.

So, I can't install a new world: `install -C` fails in the same way.



-- 
David Marec
https://lapinbilly.eu




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