From owner-freebsd-questions@FreeBSD.ORG Fri Aug 14 09:54:00 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1346D106568D for ; Fri, 14 Aug 2009 09:54:00 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 95AE58FC51 for ; Fri, 14 Aug 2009 09:53:59 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so237970eye.7 for ; Fri, 14 Aug 2009 02:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Tic8AhPOrWN9f8cyzV0z6Ytn4fGtYodgHnevmlmhB9E=; b=BYqw5fAWW0AzwaP4iSRmZrP3Pd95/2/465NVcwpGm+FTo9L2bl7qWVtHljlane/l9d BY5+8J063oCPW8sa1O5Wvd6XEx7y/U5PZVb6drAzmj/7L2GHmVU2zW9Te4EoQy0tJlvH Gpz5NhSoSrK2Sn0EeUWlvwFSWxtPL07oVlIFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nbBZr+hasEqB9Kh9ddW5T4dl094Yf48jxf4JHEAA2r7PBGPdyt8tXO1dOWQ4hVxnrJ QMsVjW8Osh+mbXJ+gEmtvMVjBslC2HucmsjaN7l97iWvtN12NhJ0zQFWHsP3a1XqO99L XQRCHmNulM8KpYPwElZg3orZSC6HI97NleCm8= MIME-Version: 1.0 Received: by 10.210.92.8 with SMTP id p8mr2959721ebb.6.1250242163190; Fri, 14 Aug 2009 02:29:23 -0700 (PDT) In-Reply-To: <4A84C78B.4070206@ibctech.ca> References: <4A84C78B.4070206@ibctech.ca> Date: Fri, 14 Aug 2009 03:29:23 -0600 Message-ID: <64c038660908140229q663f6f0fn21533ae187931754@mail.gmail.com> From: Modulok To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" Subject: Re: Managing encrypted disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 09:54:00 -0000 [snip] > What I'd like to know, is if it's possible to somehow check to see if > there are any GELI 'attach'ed disks on a given system that have not yet > been mounted (or, iow, were umount'd, but were left attached). > > #dmesg doesn't say much in this regard, and I couldn't find out by > listing /dev either. > > Any tricks to find out what GELI knows? I want to automate everything > except the insertion of the keys, which will always be manual. Knowing > how to identify what is attached but not mounted would be a good start. [/snip] Steve, If there are no /dev/*.eli devices listed, then there are no geli providers attached. You can also check the output of the 'geli list' and 'geli status' commands. If they return nothing, no providers are attached, otherwise they'll list the providers and algorithms/key sizes used and so forth. -Modulok-