From owner-freebsd-questions@FreeBSD.ORG Wed Apr 22 07:05:49 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3C68172C for ; Wed, 22 Apr 2015 07:05:49 +0000 (UTC) Received: from mail.kulturflatrate.net (mail.kulturflatrate.net [46.163.119.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C21821845 for ; Wed, 22 Apr 2015 07:05:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.kulturflatrate.net (Postfix) with ESMTP id 9D75CF5AC0AC for ; Wed, 22 Apr 2015 08:59:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at kulturflatrate.net X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham Received: from mail.kulturflatrate.net ([127.0.0.1]) by localhost (mail.kulturflatrate.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wLYTK6dvEbbO for ; Wed, 22 Apr 2015 08:59:03 +0200 (CEST) Received: from len-x61s.klaas (160.210.broadband18.iol.cz [109.81.210.160]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kulturflatrate.net (Postfix) with ESMTPSA id 67DE7F5AC0AA for ; Wed, 22 Apr 2015 08:59:03 +0200 (CEST) Received: by len-x61s.klaas (Postfix, from userid 1000) id 64CEAE0599; Wed, 22 Apr 2015 09:01:44 +0200 (CEST) Date: Wed, 22 Apr 2015 09:01:44 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Lenovo T420 installlation with zfsroot and GPT/UEFI (FreeBSD 10.1) Message-ID: <20150422070144.GS2378@len-x61s.klaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://www.kulturflatrate.net/niklaas/niklaas-baudet-von-gersdorff.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2015 07:05:49 -0000 Hi, I'd like to install FreeBSD 10.1 on my a bit old but working Lenovo Thinkpad T420. In the ideal case I am able to install it with an encrypted ZFS root and GPT/UEFI. The problem I encountered indicate that this might not be possible though. What I did is the following: I downloaded the *uefi-memstick*.img, dd-ed it on a flash disk and proceeded with the installation. Once I selected the guided installation with ZFS as root, I get a warning stating that UEFI is not possible. Hence, I should make sure to boot in legacy. That is no problem because I set legacy and UEFI to boot in the BIOS. I proceed. The installation works fine. Nonetheless, the system is not able to boot and continues presenting me a dialogue which asks me to select the boot device. This problem is quite known: It's a bug in the BIOS of the T420 that prevents booting from GPT partitions. The bug itself is shortly described at https://lists.freebsd.org/pipermail/freebsd-i386/2013-March/010437.html where one can also find a solution. It says: ... The trick is to add an empty but "active" "partition 1", which must have type 0x00, and move the partition of type 0xee (i.e., GPT) to partition 2. ... Unfortunately, the final step fdisk -f /tmp/part $disk does not work because the prompt claims that the number of cylinders I entered is to high: fdisk: WARNING line 2: number of cylinders (31257387) may be out-of-range (must be within 1-1024 for normal BIOS operation unless the entire disk is dedicated to FreeBSD) My modified entry reads as follows: # /dev/ada0 g c31257387 h16 s1 p 0x00 1 500118191 a 1 p 0xee 1 500118191 What am I doing wrong? Or is there another way of getting the desired set-up to work? Any help is very much appreciated, -- Niklaas