From owner-freebsd-geom@FreeBSD.ORG Fri Nov 14 16:42:56 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD770327; Fri, 14 Nov 2014 16:42:56 +0000 (UTC) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 96712FE9; Fri, 14 Nov 2014 16:42:56 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id q108so12063446qgd.41 for ; Fri, 14 Nov 2014 08:42:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=byIMqcljzdz8k7InB8UEMf+uL8S8dsWs0DjXIqw7Jec=; b=ZgrwoiKkQCuw9p8x/Qy/Nt9VuViFLSgaE8zBKHiVMwGDfPuPcYFlFy4tgMEw7pxc0v eowXK4FF5NZsNyBLn5yUvsmFjFqOc7D4SXOYC47swGKbct0TvMe8GPBmTZ+577cNzOtV +7oBacK0QhUXCoHciscdtAArRFH84v0LuCCtnA5ZewFV7VchCxC+N9WS4JuABhHbqrHL RDCjl7T2v8xoQwLdOSSQYyTxQo5HmqbPAwXS6IEWN5BreO0Ix1gBFbi9jE1GvlMiunfg MTXF72uE6tEgtxWTTSzTPnbPErBabUkCLlJroyJGsT/fDbn+lQGN1ZHfxjOU91iU3dYQ FCvA== MIME-Version: 1.0 X-Received: by 10.140.40.104 with SMTP id w95mr12730280qgw.14.1415983375438; Fri, 14 Nov 2014 08:42:55 -0800 (PST) Received: by 10.96.169.229 with HTTP; Fri, 14 Nov 2014 08:42:55 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Nov 2014 17:42:55 +0100 Message-ID: Subject: Re: "geli: Wrong key" with a simple passphrase. Doesn't handle the keyboard input From: Aurelien Martin <01aurelien@gmail.com> To: freebsd-geom@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 16:42:57 -0000 Hi all, Is there people that can try to geli an external USB disk with a simple passphrase on CURRENT and tell me if the passphrase prompt shown the input, and if it's possible to attach it ? Cheers,Aurelien -------- # uname -a FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271779: Fri Sep 19 01:18:53 UTC 2014 root@grind.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI- B arm #kldstat 2 1 0xc2e49000 17000 geom_eli.ko 3 1 0xc2e60000 2a000 crypto.ko # sysctl kern.geom.eli.visible_passphrase=1 kern.geom.eli.visible_passphrase: 0 -> 1 #### Nothing print in the prompt #### # geli init da0 Enter new passphrase: Reenter new passphrase: #### Impossible to attach the device with a simple passphrase. Tried 20x #### geli attach da0 Enter passphrase: geli: Wrong key for da0 2014-11-08 21:26 GMT+01:00 Aurelien Martin <01aurelien@gmail.com>: > Dear all, > > I tried to geli my external USB drive da0 with a simple passphrase > But I'm getting "Wrong key for da0" when I want to attach it. > geli seems not to handle my keyboard input when I type my password. > > Let me know if I have forgot a step. > > Cheers,Aurelien > > Log > -- > > # uname -a > FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271779: Fri Sep 19 01:18:53 > UTC 2014 root@grind.freebsd.org:/usr/ > obj/arm.armv6/usr/src/sys/RPI-B arm > > # sysctl kern.geom.eli.visible_passphrase=1 > kern.geom.eli.visible_passphrase: 0 -> 1 > > > What I have done : > The prompt doesn't handle my keyboard input, nothing printed > > # geli init da0 > Enter new passphrase: > Reenter new passphrase: > Metadata backup can be found in /var/backups/da0.eli and > ... > > # geli attach da0 > Enter passphrase: > geli: Wrong key for da0. > > > # cat /var/backups/da0.eli | hexdump -c | head -1 > 0000000 G E O M : : E L I \0 \0 \0 \0 \0 \0 \0 >