From owner-freebsd-sysinstall@FreeBSD.ORG Thu Apr 24 14:59:44 2014 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8168DF7 for ; Thu, 24 Apr 2014 14:59:44 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx1.fisglobal.com", Issuer "VeriSign Class 3 Secure Server CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35BEF14CE for ; Thu, 24 Apr 2014 14:59:43 +0000 (UTC) Received: from smarthost.fisglobal.com ([10.132.206.191]) by ltcfislmsgpa06.fnfis.com (8.14.5/8.14.5) with ESMTP id s3OExacF028638 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 24 Apr 2014 09:59:36 -0500 Received: from THEMADHATTER (10.242.181.54) by smarthost.fisglobal.com (10.132.206.191) with Microsoft SMTP Server id 14.3.174.1; Thu, 24 Apr 2014 09:59:34 -0500 From: Sender: Devin Teske To: "'Kai Kockro'" , "'Warren Block'" References: <5357AED7.4040205@myphotobook.de> <5358B7C6.7080201@myphotobook.de> In-Reply-To: <5358B7C6.7080201@myphotobook.de> Subject: RE: bsdinstall ZFS and MBR not working Date: Thu, 24 Apr 2014 07:59:30 -0700 Message-ID: <023a01cf5fcd$ccd50280$667f0780$@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHhZCN4vZVE8EZn7ZjJyIsaWM+qGwCeoWp8AhehFfCa5x+lMA== Content-Language: en-us X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96, 1.0.14, 0.0.0000 definitions=2014-04-24_04:2014-04-24,2014-04-24,1970-01-01 signatures=0 Cc: freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2014 14:59:45 -0000 > -----Original Message----- > From: Kai Kockro [mailto:k.kockro@myphotobook.de] > Sent: Thursday, April 24, 2014 12:06 AM > To: Warren Block > Cc: freebsd-sysinstall@freebsd.org > Subject: Re: bsdinstall ZFS and MBR not working > > Ok, > > got it. > > Normal MBR install, then go to shell. Save the gpart partitions to bootpool ( > gpart backup ada0 and ada0s1 ). Reboot and go to LiveCD. > Import bootpool, recreate gpart partitions with gpart restore. Recreate the > bootblocks ( gpart bootcode -b /boot/boot0 ada0 && dd if=/boot/zfsboot > of=/dev/ada0s1 count=1 && dd if=/boot/zfsboot of=/dev/ada0s1a skip=1 > seek=1024 ). Reboot and its working. > > Maybe gpart is using pending mode in zfsboot script, i will look later. > > Thanks to Warren ( i will try the gpt hints, too )! > > Best, > Kai > > Am 23.04.2014 15:27, schrieb Warren Block: > > On Wed, 23 Apr 2014, Kai Kockro wrote: > > > >> i wanted to install 10-RELEASE on my Lenovo T420s ( Samsung 840 Pro > >> SSD inside ). After using ZFS installer ( force 4k on, MBR partition > >> because GPT bug in Lenovo Bios ), i get "Missing operating system". > >> If i boot bsdinstall again and looking with zpool import, my root > >> pool ist gone away, only bootpool apears in the list. The partition > >> list also changed ... i dont understand this. > >> > >> If i use UFS and MBR, all is fine. FreeBSD is booting. > >> > >> I tried manually the old style from FreeBSD Wiki ( ZFS on ROOT ), but > >> not working, too. What can i do? > > > > Later versions of the BIOS have been reported to fix the GPT booting > > problem. > Not using pending mode there (iirc). Strange that you have to rewrite the partition table and even stranger that a BIOS update fixes the problem. Sounds like the BIOS isn't flushing the writes to disk. On one hand, I'd love to solve this in-code, but... if you say that a later version of the BIOS is reported to fix GPT booting, maybe the solution is to instead warn people with that hardware to update their BIOS if they run into MBR working but GPT not. I like the idea of appending something to device.hints also if that will work (saving people the hassle of upgrading BIOS). That seems cleaner than writing the partition table, laying down ZFS, then doing a backup followed by restore (in hopes that it will then write a partition table that survives a reboot). -- Devin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.