From owner-freebsd-stable@freebsd.org Sun Dec 18 05:11:17 2016 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 44B46C8674D for ; Sun, 18 Dec 2016 05:11:17 +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 E67881455; Sun, 18 Dec 2016 05:11:16 +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 uBI5B97l086689 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 17 Dec 2016 22:11:09 -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 uBI5B9uY086686; Sat, 17 Dec 2016 22:11:09 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 17 Dec 2016 22:11:09 -0700 (MST) From: Warren Block To: Eric van Gyzen cc: =?ISO-8859-15?Q?Fernando_Herrero_Carr=F3n?= , freebsd-stable Subject: Re: Upgrading boot from GPT(BIOS) to GPT(UEFI) In-Reply-To: <71c128ef-8ad0-3cd8-9c34-8fc349d61447@FreeBSD.org> Message-ID: References: <71c128ef-8ad0-3cd8-9c34-8fc349d61447@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:11:09 -0700 (MST) Content-Type: text/plain; charset=windows-1252; 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 05:11:17 -0000 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: 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 ; 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 To: Eric van Gyzen cc: Slawa Olhovchenkov , =?ISO-8859-15?Q?Fernando_Herrero_Carr=F3n?= , freebsd-stable Subject: Re: Upgrading boot from GPT(BIOS) to GPT(UEFI) In-Reply-To: Message-ID: References: <20161216173930.GD90401@zxy.spb.ru> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: 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 ; 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 ; 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> To: freebsd-stable From: David Marec 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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