From owner-freebsd-geom@FreeBSD.ORG Wed Sep 10 13:44:55 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37E2E1065672 for ; Wed, 10 Sep 2008 13:44:55 +0000 (UTC) (envelope-from mikej@paymentallianceintl.com) Received: from mx2.confluenttech.com (mx2.confluentasp.com [216.26.153.14]) by mx1.freebsd.org (Postfix) with ESMTP id F169D8FC1F for ; Wed, 10 Sep 2008 13:44:54 +0000 (UTC) (envelope-from mikej@paymentallianceintl.com) Received: from calvin.pai.local (calvin.pai.local [10.0.6.33]) by mx2.confluenttech.com (8.14.1/8.13.8) with ESMTP id m8ADirvJ017484 for ; Wed, 10 Sep 2008 09:44:53 -0400 (EDT) (envelope-from mikej@paymentallianceintl.com) Authentication-Results: mx2.confluenttech.com from=mikej@paymentallianceintl.com; sender-id=neutral; spf=neutral X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: Wed, 10 Sep 2008 09:44:48 -0400 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Importance: normal Priority: normal Thread-Topic: How to FSCK GEOM GELI image Thread-Index: AckTSIP2sdfoa8geRT60QJLX5tRF3QAArBkg From: "Michael Jung" To: Subject: RE: How to FSCK GEOM GELI image 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: Wed, 10 Sep 2008 13:44:55 -0000 -----Original Message----- From: owner-freebsd-geom@freebsd.org [mailto:owner-freebsd-geom@freebsd.org] On Behalf Of Ivan Voras Sent: Wednesday, September 10, 2008 9:23 AM To: freebsd-geom@freebsd.org Subject: Re: How to FSCK GEOM GELI image Michael Jung wrote: > FreeBSD 6.3-RELEASE-p2 #15 > > I've been using the image for some time and was well until a UPS > failure. > > Here is the script I use to mount the encrypted file image > > ++++++++++++ > > mdconfig -a -t vnode -f /home/staff/mikej/image md0 > geli attach -k /etc/gli/image.key /dev/md0c Try fsck after this step, before you mount it: fsck /dev/md0c.eli > mount /dev/md0c.eli /private > > ++++++++++++ > > It fails to mount and I see this is dmesg > > GEOM_ELI: Device md0c.eli created. > GEOM_ELI: Encryption: AES-CBC 128 > GEOM_ELI: Crypto: software > WARNING: R/W mount of /private denied. Filesystem is not clean - run > fsck mdconfig -a -t vnode -f /home/staff/mikej/image md0 geli attach -k /etc/gli/image.key /dev/md0c mount /dev/md0c.eli /private (root@firewall) /home/staff/mikej/bin# mdconfig -a -t vnode -f /home/staff/mikej/image md0 md0 (root@firewall) /home/staff/mikej/bin# geli attach -k /etc/gli/image.key /dev/md0c Enter passphrase: (root@firewall) /home/staff/mikej/bin# fsck /dev/md0c.eli fsck: Could not determine filesystem type <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (root@firewall) /home/staff/mikej/bin# CONFIDENTIALITY NOTE: This message is intended only for the use of the individual or entity to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please notify us by telephone at (502) 212-4001 or notify us at PAI , Dept. 99, 11857 Commonwealth Drive, Louisville, KY 40299. Thank you.