From owner-freebsd-stable@freebsd.org Thu Jan 12 00:32:54 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 5A836CABF9A for ; Thu, 12 Jan 2017 00:32:54 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wj0-x22f.google.com (mail-wj0-x22f.google.com [IPv6:2a00:1450:400c:c01::22f]) (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 DB6A314A4 for ; Thu, 12 Jan 2017 00:32:53 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wj0-x22f.google.com with SMTP id tn15so2284797wjb.1 for ; Wed, 11 Jan 2017 16:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=4iQ02s4+b+ygrL5d0jSHK7yIk5GO4OCpqKXaZz3qH+s=; b=SvBeJMNfPeJmSSvGUXiPek0OKYkbrh6ORskG9fjCx56tDuQgMCDQoE3sHbAl5MPkUG RGqLYCIYR0/UKSNNpv/ku7W2F75fs0cxTts9NGwSC6vmohSG33Jhxu4RnvxbWi1N6c4W y7uV4xlk/gqVsmLFVi+4O1BFweVGeRIl7ucQkr1n6WGjKIl+iUJ4ysnzBy1GhltiV+nl 2l0PWva/tMUHslPZ/GIbpZGCObeZhX2tDo3JwKFhfv5ZbWy14RksLYLx6ljKdheyonGx kN0cZC6Qh4bSfRmBEy4ZblaCammRn8XMoLWYXPnePOEvOyrp5ZsaP0JkXUFaWgEc42VJ 2B2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=4iQ02s4+b+ygrL5d0jSHK7yIk5GO4OCpqKXaZz3qH+s=; b=KJxxGWgIXfC7RcIM5mgJPuphgLA9xA9T3p55pWbk6MzGcR/d7vOGTuXRF07qmBkLpO kNVoxCsxpIkGMZj1XyoCoISKUVbL2Ax3T3RDByZon36QvnCugkxLZyCjwmqjLO43sadZ zGZP06JKIfdVUSi1keIg8tVa79Qsqww2ge4ZLdQLl45DbVT4perBwOZ3yLKBsTyWgZH3 NkOxWsvLaPczcyijS4rurt+zuRcWOPQ4WyLCfab3voZCnJpaReBorWd/Lj3liQm/Lu/q sRI3sOpnCQP8L400D0WuR7vKuurINenpC0FA4eSEeGlsz38nwOCmQDgra+HA9kS85cuI 3hHQ== X-Gm-Message-State: AIkVDXIyTcnj4+KYvcAPMihw88EdyaV3ADhZLzSNgvylAFtJgIsF5zAeXO6Fe4c8NEP7e9Xm X-Received: by 10.194.179.198 with SMTP id di6mr8274245wjc.148.1484181172295; Wed, 11 Jan 2017 16:32:52 -0800 (PST) Received: from [10.10.1.58] ([185.97.61.26]) by smtp.gmail.com with ESMTPSA id a13sm473783wma.0.2017.01.11.16.32.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 16:32:51 -0800 (PST) Subject: Re: Can't boot on ZFS -- /boot/zfsloader not found To: Jeremie Le Hen , freebsd-stable@freebsd.org References: From: Steven Hartland Message-ID: Date: Thu, 12 Jan 2017 00:32:57 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 12 Jan 2017 00:32:54 -0000 On 11/01/2017 22:58, Jeremie Le Hen wrote: > (Sorry I had to copy-paste this email from the archives to a new > thread, because I'm not subscribed to -stable@. Would you mind cc:ing > me next time please?) > >> As your not at the boot loader stage yet for keyboard enabling legacy >> USB keyboard / mouse support in BIOS may help. > That worked, thanks for the tip. > > >> If you see issues with keyboard after the kernel takes over setting >> hint.ehci.0.disabled=1 may help. >> >> If your installing 11.x then the guides boot partition size is out of >> date and you should use 512K for your freebsd-boot partition. > Oh, really? I'll update it once I'll have figure it all out. That's > weird though because /boot/gptzfsboot is less than 90 KB. 11.x du -h /boot/gptzfsboot 97K /boot/gptzfsboot 12.x du -h /boot/gptzfsboot 113K /boot/gptzfsboot The reason I'd recommend 512k for boot is to provide room for expansion moving forward, as repartitioning to upgrade is a scary / hard thing to do. Remember it wasn't long ago when it was well under 64k and that's what was recommend, its not like with disk sizes these days you'll miss the extra 384k ;-) > > >> For the GPT version (I've never used MBR one) what actual error do you get? > When I just start up the NUC, I get: > """ > \Can't find /boot/zfsloader > > FreeBSD/x86 boot > Default: zroot:/boot/kernel/kernel > boot: > \ > Can't find /boot/kernel/kernel > """ > > I though it was the first stage boot loader, but it may be the second stage. Boot to a live cd, I'd recommend mfsbsd, and make sure the boot loader was written to ALL boot disks correctly e.g. if you have a mirrored pool with ada0 and ada1: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 If this doesn't help the output from gpart show, uname -a and zpool status would also be helpful. This is all assuming standard BIOS mode and not UEFI which is done differently. > > -jlh > >> On 11/01/2017 19:22, Jeremie Le Hen wrote: >>> Hi, >>> >>> I'm in the process of transferring my home server to an Intel NUC. I've zfs >>> send/receive'd the whole pool to the new drive and first followed >>> [ZfsOnGpt] but it fails in the first stage boot loader. The USB keyboard >>> doesn't seem to be recognized so I can't really debug anything. >>> >>> Then I tried both [ZfsInMbrSlice] >>> but it complains that it can't find /boot/zfsloader. Again USB keyboard >>> doesn't work. >>> >>> Both times I've been very careful to install the bootcodes at the right >>> place. >>> >>> 1. Any idea why the USB keyboard doesn't work? >>> 2. Any idea what can be wrong in the setups I tried? How can I debug this? >>> >>> [ZfsOnGpt] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot >>> [ZfsInMbrSlice] https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition >>> >>> -jlh >>> _______________________________________________ >>> freebsd-stable at freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-stable >>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" >