From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 15:42:42 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 855491065675 for ; Tue, 26 Jun 2012 15:42:42 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1683B8FC1B for ; Tue, 26 Jun 2012 15:42:41 +0000 (UTC) Received: by eeke49 with SMTP id e49so41989eek.13 for ; Tue, 26 Jun 2012 08:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=pnK+OpE2ycKdsE8tGL8aCGr7OmhakMjSxh6fMDiYXig=; b=iKStnTt1rKSQiKoim4o3yTrJbQ/VlcxCSLKab1TWVmC6jzraVXteNH2s5ZIZVPwH82 B/iJYi7p9aLK1RIZBJ1EPBMZMXzcwDAkKvgUOJwvHjekX6ZfkbjvEpU/FnE0raoQdTsu w0ABVx/SZxlb4l/CyRzHOo2I1FNc24hm2kv4Nm6gdk9pr6GAs4eJbQbRaOoH88KOoMIT 9694DBjstT3NC8BvPIgD6kaoAa0vE0MGJBhIFLUUa6gHGSJYBBe69hJ5ut5/c5O5lKE7 o3AbN1mylgEdOedALKIur+T0iK5WEJSyKRNpXDmLtt6mX9VPADY8XtHjb3gRfmamuUoL 0ZNw== Received: by 10.14.47.5 with SMTP id s5mr3198878eeb.191.1340725361287; Tue, 26 Jun 2012 08:42:41 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id a16sm150228732eeg.0.2012.06.26.08.42.39 (version=SSLv3 cipher=OTHER); Tue, 26 Jun 2012 08:42:39 -0700 (PDT) Date: Tue, 26 Jun 2012 16:42:37 +0100 From: RW To: freebsd-geom@freebsd.org Message-ID: <20120626164237.15a95327@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: GELI Passphrase changing X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 15:42:42 -0000 On Tue, 26 Jun 2012 17:52:28 +0300 icameto icameto wrote: > Hi everyone, > > I d like to ask you a question about geli and pasphrase changing. > > # dd if=/dev/random of=/root/da1.key bs=64 count=1 > > # geli init -s 4096 -K /root/da1.key /dev/da1 > > # geli attach -k /root/da1.key /dev/da1 > > How can I change the passphrase for my GELI device? Please give me an > advice. I have not change the old key file . When I enter this > command, I get an error . > > # geli setkey -k /etc/geli/da1.key /dev/da1.eli > geli: Cannot read metadata from /dev/da1.eli: Invalid argument. That should probably be -K. You've already attached the device so you don't need the old passphrase or keyfile.