From owner-freebsd-fs@FreeBSD.ORG Wed Dec 5 09:54:25 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32A0FD08; Wed, 5 Dec 2012 09:54:25 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C7F228FC13; Wed, 5 Dec 2012 09:54:24 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id 16so6163723obc.13 for ; Wed, 05 Dec 2012 01:54:18 -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 :content-transfer-encoding; bh=4n88mFKnaNLQdudBx1w+UXeZhpWT/NJWn5OfZYo3jlg=; b=iJUeN1/IfyDUFIHKjucISZw1ekxVs0trFI7rKFfg2+qMqui1H9sh+LnPXUjuqdujtU JrWoVSbQBw+nfi9lBjNGTdeYQ2wgwhzu1s4Xo5keGBPg57yUodm648Cr3YsPaeZJs/9y aNsU+TmYhYVvVACa+E7kjoxgb9reNzpSFQspxKn2aSuaxqWxY3B/ByVqGPAQCsRQMz9e 3O5mvKZIy6bU0Nn4gi/rJDzIm8wrUCTISZKPbmODuFGzRmKGbhrpFpYMuq6RE1I4Odrn 7K4VcktulyS+4bbEssvlu/bn0o+g4UbkkdBEmgKLbU1jip7BkDxFnse0gaRtO131GgBA AMyQ== MIME-Version: 1.0 Received: by 10.182.240.45 with SMTP id vx13mr10277803obc.21.1354701258542; Wed, 05 Dec 2012 01:54:18 -0800 (PST) Received: by 10.76.143.199 with HTTP; Wed, 5 Dec 2012 01:54:18 -0800 (PST) Date: Wed, 5 Dec 2012 01:54:18 -0800 Message-ID: Subject: GELI on USB From: Ali Mashtizadeh To: FreeBSD Hackers , freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 09:54:25 -0000 I think I found a possible bug in 9.1 where I configured an encrypted root partition on a USB key and I have trouble entering the password from what seems like a race. 1. GELI first prints to ask for my password on the root, but immediately is interrupted with a message saying that the root failed to mount with error 19. As shown here: http://www.mashtizadeh.com/usbnotwaiting.jpg When I type the file system path some characters are missing. It appears that geli and the prompt for root are both reading the USB keyboard input. When setting kern.geom.eli.visible_passphrase=3D1 then all characters are printed on the screen, but the prompt seems to receive bad input. Is there a way to prevent the root mount failing immediately? I set the boot flag and it seems this works properly on some hardware. --=20 Ali Mashtizadeh =D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87