From owner-freebsd-current@FreeBSD.ORG Mon Jan 20 19:32:05 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2EDE7BD3 for ; Mon, 20 Jan 2014 19:32:05 +0000 (UTC) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E14CC12A0 for ; Mon, 20 Jan 2014 19:32:04 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id ia6so2972774vcb.24 for ; Mon, 20 Jan 2014 11:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=764ECnVr6KF/xCmqC5f3vL83xblzQDPEa0bp60ODj7Y=; b=LFeUfTzDt0v6JqwLaJBOV8hQarAhlCCQsRChj+Pq+eJFKX7XCGAI1igz73qsIzLPtr ejiRxrOPNp4TSigj6CreinA8645WWIm4GNH5drOorkly25YkBfsKXEJrhTnKINtTeRz8 BGbbKGkuN8XnXreXR2WGHaCFx1CMpvxmgGV38ESN+4oZXm0NfNUyUNI6XXa78sLp7wx+ ppBYxpAp3ehk5JpnjX79JNQ646yAo2NGs7xX5f+isO9bFV+W+gxS4keTB/XOGmw3pU3A gkEm9QmE1hSk1K/YWCls2qnu31xcXZWbOz1X5jEjb0lt2ehq1US2zrtuUJkTbKUAJMOA 0qfw== MIME-Version: 1.0 X-Received: by 10.58.187.98 with SMTP id fr2mr58623vec.38.1390246324030; Mon, 20 Jan 2014 11:32:04 -0800 (PST) Received: by 10.220.168.135 with HTTP; Mon, 20 Jan 2014 11:32:03 -0800 (PST) Date: Mon, 20 Jan 2014 14:32:03 -0500 Message-ID: Subject: Problem updating bootcode on ZFS on root system with MBR From: Thomas Hoffmann To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 19:32:05 -0000 I am running 11.0-CURRENT (r260850) with zfs on root with MBR. After upgrading my 10.0-RELEASE (r260669) system to 11.0-CURRENT (r260850) my zpools reported that they needed to be upgraded. So, I upgraded my zpools and I am attempting to update the bootcode (as required). I managed to get the boot1 stage code updated, but cannot get the boot2 stage code updated. Here is what I have done: # sysctl kern.geom.debugflags=0x10 kern.geom.debugflags: 0 -> 16 # dd if=/boot/zfsboot of=/tmp/zfsboot1 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.014996 secs (34142 bytes/sec) # gpart bootcode -b /tmp/zfsboot1 /dev/ada0s1 bootcode written to ada0s1 # dd if=/boot/zfsboot of=/dev/ada0s1a skip=1 seek=1024 dd: /dev/ada0s1a: Operation not permitted The final dd statement fails with "operation not permitted". In all my research, understood the initial sysctl command I ran would prevent this particular error from happening. What do I need to do to get the boot2 code written to /dev/ada0s1a? Thanks. -Tom