From owner-freebsd-questions@FreeBSD.ORG Sun Feb 24 09:42:27 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C8EE7ADA for ; Sun, 24 Feb 2013 09:42:27 +0000 (UTC) (envelope-from bw.mail.lists@gmail.com) Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by mx1.freebsd.org (Postfix) with ESMTP id 613B61A8A for ; Sun, 24 Feb 2013 09:42:27 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id e49so950444eek.33 for ; Sun, 24 Feb 2013 01:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=Ko3eFx8nFxJhGWkkzZN7H6rGOsliOmGWFUnEpwkD9MQ=; b=UnSTy9oqqsE6KJpmUQzNG2RosLSJF2z0bnX9v1yeZO6mXbFsU9VK6aHmIieD6ryXcy zGN+MphwTZkDlrubxls6rpTFQwz2tpd/Si0nhxkcufnyNTRHM7oA7u3Z1a/zOwNysrgy RFR69AMruxsVD733d2+FU9vA1OBQb21njbd0hvEn4R0o0tGPzU35906n3IGDdmjgIsdK ve1JmAjWYR8Q68lNLKR7H7wduMXcj1hrUr/tqqRgNWMZf+iX+sjY2hsfXSqRE3f4cQ66 +gRqKIJplIZycvWaWFJI9doVzaW1wgFi8kAw1EuiCwbAZUoJJ/tl2xZ0CqCcZ8YHFDoL bEgQ== X-Received: by 10.14.213.199 with SMTP id a47mr26394259eep.31.1361698940543; Sun, 24 Feb 2013 01:42:20 -0800 (PST) Received: from [192.168.0.128] (dhcp-089-099-199-083.chello.nl. [89.99.199.83]) by mx.google.com with ESMTPS id u44sm12914972eel.7.2013.02.24.01.42.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Feb 2013 01:42:19 -0800 (PST) Message-ID: <5129E079.4040906@gmail.com> Date: Sun, 24 Feb 2013 11:42:17 +0200 From: "bw.mail.lists" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: ZFS root, error 2 when mounting root Content-Type: multipart/mixed; boundary="------------050800050208070008000909" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2013 09:42:27 -0000 This is a multi-part message in MIME format. --------------050800050208070008000909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Basically, I tried to follow https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE, but ended up with a system that didn't know how to mount /. There are two scripts attached. zfsnocache.sh follows the instructions on the wiki. The system booted just fine, but when it got to the part where it mounts the root partition, it stopped with 'error 2' 'unknown file system'. I could import the pool when booting from LiveFS, I wrote to it, it was working fine, but at boot it just refused to be mounted as /. zfswithcache.sh from http://strahlert.net/wordpress/?p=142, I think. This worked with no issues. The main difference I see between those two scripts is that one doesn't use a cache file and the other one does, hence the name of the scripts. But it should work without cachefile too, shouldn't it? The other difference is how mountpoints are set, but I can't figure out what could be wrong there. Can someone please explain why zfsnocache fails to mount / ? --------------050800050208070008000909--