From owner-freebsd-questions@freebsd.org Wed Jun 14 16:28:03 2017 Return-Path: Delivered-To: freebsd-questions@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 A77ACBEE787 for ; Wed, 14 Jun 2017 16:28:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (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 637676F881 for ; Wed, 14 Jun 2017 16:28:03 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-oi0-x22a.google.com with SMTP id s3so3643776oia.0 for ; Wed, 14 Jun 2017 09:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=d/+LCuAEWhTR3SLZCSogyYZlJKhA539El7WQKiKQSzI=; b=fMCzwv4cNr/tyG/n9zygZH6VUhoHQGEa3BJ6qgNOHVQYoAPdHKQ7T2BizjqxP96S8H jYiO969iYq4RJIGBwXsg9KCosJ0IjP2n1zD5/kA7i3icy2zElNrF2b035meW3fo0FAXm bpkFKtlgJ2oCEvGp8sdUJk0MOkJYBhFTcqCG6mTNR/G7f372qDIDj4F4SJOGE9ZaDUQl ZJHjIfA3dOoqq+r4lj2jiiZEBw9QvGtd+XvvBqNWIfdGrNsIEjvOHd9ghDgWB9zxtY8t HQ3dr06Z3AxBCGkziSv9a7CtM/dBqfNx0Lv7LixbshhKs60LWrUtlKkvzJHeq/tIb8Pd OMFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=d/+LCuAEWhTR3SLZCSogyYZlJKhA539El7WQKiKQSzI=; b=FJErUqg2xupEiXF6VGLL3243AAF5trMz6flRXD04NEYDBxUpoiEGSwrlFPjbxJwh7n EucRavrWa9laFp3Hhifb7Xgc0o3pDGu8MSp559DIGRqL1+1UlqRu/VrvRcOXZcGLdfqR XpcMZJUzOB/NP0/BvfKPqrCDI8/W+Y/PUFCn808fDJaa1JDaFhJJMRyX/WxUc1OJkiuY 1jpM5JxYbNVWXgA+WmazWYw+xS31FNmBdT1egIhrKa4bMxAoKl132AI3hMZG+WmtQpt8 X5TolXo1/4gdiQJM3J5iAt3TC9Am3MkAuNr1y8t3f8tdlYpWZmH7W8gB9MNgY/a+8ke8 QAAg== X-Gm-Message-State: AKS2vOxB2R9xb6/KauTrxtQV8cXRD6qAxzp4iTUWC5hYXgAkWRyAzJAU gFxOuTEpqWY/ze/Cx3bHbA== X-Received: by 10.202.76.136 with SMTP id z130mr719056oia.5.1497457682614; Wed, 14 Jun 2017 09:28:02 -0700 (PDT) Received: from mail-ot0-f181.google.com (mail-ot0-f181.google.com. [74.125.82.181]) by smtp.gmail.com with ESMTPSA id p3sm235845ota.51.2017.06.14.09.28.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 09:28:02 -0700 (PDT) Received: by mail-ot0-f181.google.com with SMTP id s7so4324374otb.3 for ; Wed, 14 Jun 2017 09:28:02 -0700 (PDT) X-Received: by 10.157.60.118 with SMTP id j51mr648986ote.127.1497457682043; Wed, 14 Jun 2017 09:28:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.133.136 with HTTP; Wed, 14 Jun 2017 09:28:01 -0700 (PDT) Received: by 10.74.133.136 with HTTP; Wed, 14 Jun 2017 09:28:01 -0700 (PDT) In-Reply-To: References: <1fb7f3d1-dfb5-ab75-ab75-12dcc81423ca@holgerdanske.com> From: Jov Date: Thu, 15 Jun 2017 00:28:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to change passphrase for FreeBSD 11.0 encrypted ZFS root? To: David Christensen Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 16:28:03 -0000 Not a ufs? What's the output of gpart show? Jov 2017=E5=B9=B46=E6=9C=8815=E6=97=A5 12:13 AM=EF=BC=8C"David Christensen" =E5=86=99=E9=81=93=EF=BC=9A On 06/14/2017 05:35 AM, Jov wrote: > On 06/14/2017 2:20 PM=EF=BC=8C"David Christensen wrote: > >> I issued the following command: >> >> toor@freebsd:/root # geli setkey -n 0 /dev/ada0s1d Enter new >> passphrase: Reenter new passphrase: Note, that the master key >> encrypted with old keys and/or passphrase may still exists in a >> metadata backup file. >> >> Now when I boot, I enter the passphrase at the boot menu, a bunch >> of stuff scrolls by, and then I see: >> >> Enter passphrase for ada0s1d: >> >> I enter the new passphrase and I see: >> >> GEOM_ELI: Wrong key for ada0s1d. Tries left: 2. Enter passphrase >> for ada0s1d: >> > > You change the passphrase without key file=EF=BC=9F the default geli boot > will read key files in /boot dir=EF=BC=8Cthe key file name is set in > /boot/loader.conf, you shoud remove the settings if you not set it. > Thank you for the clue. I would now like to edit /boot/loader, to see if I can adjust the settings so that GELI will decrypt my root partition using just a passphrase. When I boot the FreeBSD 11.0 i386 installer into single-user mode: # mount /dev/ada0s1a /mnt mount /dev/ada0s1a: Invalid argument Why is mount(8) complaining? # ls -l /dev/ada0s1a crw-r----- 1 root operator 0x5b Jun 14 15:53 /dev/ada0s1a David _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org= "