From owner-freebsd-questions@FreeBSD.ORG Sat Jan 23 01:54:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17E52106566B for ; Sat, 23 Jan 2010 01:54:55 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id E300B8FC13 for ; Sat, 23 Jan 2010 01:54:54 +0000 (UTC) Received: by pzk40 with SMTP id 40so265680pzk.7 for ; Fri, 22 Jan 2010 17:54:54 -0800 (PST) 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; bh=szZtTmW1fbtISOjTGVckY6hB87GKINu+kQ3u42f70zg=; b=st5TbaD2Iz62+MCqePrby3PFG8EUA1FD3i4JMfJlcKLMRTAK3wJEBDVc67QaPH3UTD 1BbLYC/7bnz3U1oO7DMj0Y+NTKaG918Iu38FLNIJJGxh1ggC1HHPgN+/ndiCM4imxRGk wyuzHh59kdqwC6mOhHw1Py1/Hygbc/I0hzTFE= 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; b=O4/Av31eVpDVSCW3Bk/PWKCmdA/33mDCtbOYjPJXQuL9lU4UXRr2K0qSAhsm8dUsXf Le6g/qtAvo+zgJMXf/4VmW5RPGVIkC+/E7jYKOJKf4hX7pk68xfcbMXkcqy1DfvlGzDw Lmw6f5lvJsimoCCtGiQupxhy2SH71jr14xOIo= MIME-Version: 1.0 Received: by 10.115.116.7 with SMTP id t7mr2468402wam.132.1264211694454; Fri, 22 Jan 2010 17:54:54 -0800 (PST) In-Reply-To: <201001140731.o0E7VtQ0018243@mp.cs.niu.edu> References: <201001140731.o0E7VtQ0018243@mp.cs.niu.edu> Date: Fri, 22 Jan 2010 18:54:53 -0700 Message-ID: From: Tim Judd To: Scott Bennett Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: GELI file systems unusable after "glabel label" operations 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: Sat, 23 Jan 2010 01:54:55 -0000 On 1/14/10, Scott Bennett wrote: > I used "glabel label" to label each of the file systems I have on > external > disk drives. Unfortunately, afterward I am now unable to "geli attach" any > of > the GELI-encrypted file systems. The system is FreeBSD 7.2-STABLE. Is > there > a way to get this to work? Or have I just lost everything in the encrypted > file systems? > > hellas# geli attach -k work.key /dev/label/work > geli: Cannot read metadata from /dev/label/work: Invalid argument. > hellas# ls -lgF /dev/label/ > total 0 > crw-r----- 1 root operator 0, 192 Jan 14 00:47 archives > crw-r----- 1 root operator 0, 191 Jan 14 00:47 backupsi > crw-r----- 1 root operator 0, 182 Jan 14 00:47 backupsl > crw-r----- 1 root operator 0, 166 Jan 14 00:47 backupss > crw-r----- 1 root operator 0, 179 Jan 14 00:47 sec > crw-r----- 1 root operator 0, 161 Jan 14 00:47 usrobj > crw-r----- 1 root operator 0, 184 Jan 14 00:47 usrports > crw-r----- 1 root operator 0, 186 Jan 14 00:47 vboxdisk > crw-r----- 1 root operator 0, 181 Jan 14 00:47 work > hellas# > > Any help in recovering the lost data would be deeply appreciated. If > that cannot be done, then at least knowing that would keep me from wasting > further time on it. Thanks much. Are you aware that tunefs -L will label a device? It is stored as part of the filesystem, instead as a GEOM metadata. So you should be able to get both labeling (/dev/ufs/labelname) and GELI as you are asking for. As for recovering your data, I see other helpful posts in this thread, as I have no additional helpful information to recommend.