From owner-freebsd-geom@FreeBSD.ORG Sun Aug 15 18:40:31 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C694416A4CE for ; Sun, 15 Aug 2004 18:40:31 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5476843D31 for ; Sun, 15 Aug 2004 18:40:31 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i7FIeU45031049 for ; Sun, 15 Aug 2004 14:40:30 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i7FIeUJR031048 for freebsd-geom@freebsd.org; Sun, 15 Aug 2004 14:40:30 -0400 (EDT) (envelope-from afields) Date: Sun, 15 Aug 2004 14:40:30 -0400 From: Allan Fields To: freebsd-geom@freebsd.org Message-ID: <20040815184030.GD21307@afields.ca> References: <200408142223.i7EMNdY00919@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <200408142223.i7EMNdY00919@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.4i Subject: Re: GEOM and NetBSD compatibility question X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 18:40:31 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 15, 2004 at 12:23:39AM +0200, Barry Bouwsma wrote: > I had looked at this a couple years ago, without really finding > a solution, and now I'm experiencing this again when trying to > use my NetBSD partition under FreeBSD-CURRENT and GEOM. Which, all things considered, isn't an entirely outlandish proposition. > I've applied a hack (first proposed a couple years back) which > allows GEOM to recognize the NetBSD ID. However, GEOM is getting > confused by the NetBSD disklabel. Can you email the patch (and/or post url to list)? I think it should be possible to access both NetBSD and OpenBSD labels/partitions from FreeBSD as GEOM is designed to accommodate such layouts. > GEOM displays the FreeBSD disklabels as relative offsets to the > absolute offset of the DOS partition. However, it displays the > NetBSD disklabel offsets as absolute offsets, yet it treats them > as relative offsets, and that just don't want to work right. Understandably, there are some differences that need to be sorted out. All of the BSDs have diverged on disklabel support. Even DragonFly now has some differences in how it handles labels (while FreeBSD can currently read them still(?) it doesn't work the other way around from my experience). For simplicity, each should probably now have a separate ID from FreeBSD(165). > It's a property of the NetBSD disklabel that the `d' partition > covers the whole disk. Additionally, I use the additional right > available partitions to map parts of the disk outside of the > NetBSD DOS partition (the other FreeBSD partitions) so that I > can access them from NetBSD, which otherwise can't access any > part of the disk outside its DOS partition. Yup, so it would make sense to have a way to sanely handle these cases, like where a partition of a NetBSD|OpenBSD slice is really equivalent to (or worse, slightly differing from) another slice entry (dos/bios partition), GEOM might want to know about that. > Here's what GEOM has to say about the NetBSD partition of my > disk: >=20 Can you fill this out as to which slices are which: s1: FreeBSD s2: NetBSD? s3: ? s4: ? Or is the important point that s2 is the NetBSD label? > GEOM: Configure da0s2a, start 51539604480 length 268435456 end 51808039935 > GEOM: Configure da0s2b, start 51808039936 length 536870912 end 52344910847 > GEOM: Configure da0s2c, start 51539604480 length 6440394240 end 579799987= 19 > GEOM: Configure da0s2d, start 0 length 250999209984 end 250999209983 > GEOM: Configure da0s2e, start 52344910848 length 5100273664 end 574451845= 11 > GEOM: Configure da0s2f, start 57445184512 length 534814208 end 57979998719 > GEOM: Configure da0s2g, start 80520693760 length 5368709120 end 858894028= 79 > GEOM: Configure da0s2h, start 85889402880 length 10737418240 end 96626821= 119 > GEOM: Configure da0s2i, start 32256 length 134217728 end 134249983 > GEOM: Configure da0s2j, start 33420246528 length 5368709120 end 387889556= 47 > GEOM: Configure da0s2k, start 32346504704 length 1073741824 end 334202465= 27 > GEOM: Configure da0s2l, start 38788955648 length 12750648832 end 51539604= 479 > GEOM: Configure da0s2m, start 69783275520 length 10737418240 end 80520693= 759 > GEOM: Configure da0s2n, start 134249984 length 32212254720 end 32346504703 > GEOM: Configure da0s2o, start 57979998720 length 268435456 end 58248434175 > GEOM: Configure da0s2p, start 96626821120 length 154372388864 end 2509992= 09983 >=20 > GEOM: Configure da0s3a, start 0 length 268435456 end 268435455 > GEOM: Configure da0s3c, start 0 length 11803276800 end 11803276799 > GEOM: Configure da0s3e, start 268435456 length 10737418240 end 11005853695 > GEOM: Configure da0s3f, start 11005853696 length 797423104 end 11803276799 > GEOM: Configure da0s4c, start 0 length 181215934464 end 181215934463 > GEOM: Configure da0s4e, start 0 length 10737418240 end 10737418239 > GEOM: Configure da0s4f, start 10737418240 length 5368709120 end 161061273= 59 > GEOM: Configure da0s4g, start 16106127360 length 10737418240 end 26843545= 599 > GEOM: Configure da0s4h, start 26843545600 length 154372388864 end 1812159= 34463 > Of course, I can't mount any of da0s2? as a filesystem. > da0s2 works fine for what would be da0s2a. Years ago when > I tried this, the NetBSD swap partition turned out to be > translated by GEOM into the NetBSD /usr and as a result, > I've been wary of -current until now. And I'd also be wary of unsing a NetBSD partition from FreeBSD, at this point: it's not -current per se, but the differences in formats. Have you looked at the NetBSD disklabel code for anything that stands out? > I had tried a while back to hack in an absolute/relative > offset toggle, but never was able to make all of GEOM > make use of it. Meaning nothing, as I'm no programmer > nor hacker and have no idea what I'm doing. By toggle do you mean it can turn on/off with differing disklabel ID or just manually? I'm sure some of the experienced GEOM hackers know more. > thanks > barry bouwsma --=20 Allan Fields, AFRSL - http://afields.ca 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541 --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQFBH64d90UNcjm0VUERAhqLAKDEI0g+N6BZBDCSCj8RggrM6d8+PwCfR/yS 8V7Wt0rCd6neTBDO3PvmOII= =07wb -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5-- From owner-freebsd-geom@FreeBSD.ORG Sun Aug 15 19:26:06 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05AE116A9A3 for ; Sun, 15 Aug 2004 19:25:48 +0000 (GMT) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD4DF43D46 for ; Sun, 15 Aug 2004 19:25:47 +0000 (GMT) (envelope-from paul@gromit.dlib.vt.edu) Received: from hawkwind.Chelsea-Ct.Org (pool-151-199-91-61.roa.east.verizon.net [151.199.91.61]) by gromit.dlib.vt.edu (8.12.11/8.12.11) with ESMTP id i7FJPdCd096236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 Aug 2004 15:25:41 -0400 (EDT) (envelope-from paul@gromit.dlib.vt.edu) Received: from [192.168.1.25] (zappa [192.168.1.25])i7FJPWDE013197; Sun, 15 Aug 2004 15:25:33 -0400 (EDT) From: Paul Mather To: Allan Fields In-Reply-To: <20040815184030.GD21307@afields.ca> References: <200408142223.i7EMNdY00919@Mail.NOSPAM.DynDNS.dK> <20040815184030.GD21307@afields.ca> Content-Type: text/plain Message-Id: <1092597931.18338.25.camel@zappa.Chelsea-Ct.Org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 15 Aug 2004 15:25:32 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-geom@freebsd.org Subject: Re: GEOM and NetBSD compatibility question X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 19:26:06 -0000 On Sun, 2004-08-15 at 14:40, Allan Fields wrote: > On Sun, Aug 15, 2004 at 12:23:39AM +0200, Barry Bouwsma wrote: [...] > > It's a property of the NetBSD disklabel that the `d' partition > > covers the whole disk. Additionally, I use the additional > > right Well, mostly right. I believe most NetBSD ports treat the "c" partition as covering the whole disk and only the i386 (and related?) port applies this semantic to the "d" partition instead (due to historical precedent?). I know this is definitely the case for NetBSD/alpha. There, "c" covers the whole disk and is the one intended for "whole drive" access. The same goes for NetBSD/pmax. (Those are the ones with which I've had direct experience.) Cheers, Paul. -- e-mail: paul@gromit.dlib.vt.edu "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." --- Frank Vincent Zappa From owner-freebsd-geom@FreeBSD.ORG Mon Aug 16 18:19:27 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D26916A4CE for ; Mon, 16 Aug 2004 18:19:27 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 062B143D5A for ; Mon, 16 Aug 2004 18:19:22 +0000 (GMT) (envelope-from dot@data.pl) Received: from localhost (HELO nonSpace) (dot.data@home@127.0.0.1) by matrix01.home.net.pl with SMTP; 16 Aug 2004 18:19:17 -0000 Date: Mon, 16 Aug 2004 20:31:43 +0200 From: DOT To: freebsd-geom@freebsd.org Message-Id: <20040816203143.21c95a45.dot@data.pl> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: can't reattach gbde slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2004 18:19:27 -0000 Hello, I'm using GBDE on laptop everyday from six months and it never fails, so I feel free to store all my sensitive data on encrypted slice (ad0s3 - my home directory). Today something really bad happens and I can't attach it anymore. I can't even discover what's the reason because there are/were no error messages, system boot and run without problem, my brain isn't corrupted, hardware looks fine too. I know it for sure, passphrase is good. Only one thing comes to my mind - yesterday I've run some livecd linux distribution.. just looked around and shutdown - but I'm not sure, could it overwrite something? If so, how can I check this? Or, most important to me, is there any chance to fix this? If You need more detailed informations please tell me what to do. Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Mon Aug 16 20:13:13 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF05A16A4CE for ; Mon, 16 Aug 2004 20:13:13 +0000 (GMT) Received: from frontend1.messagingengine.com (frontend1.messagingengine.com [66.111.4.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 785D943D1F for ; Mon, 16 Aug 2004 20:13:13 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) X-Sasl-enc: tPa77llIabnGQYLZCurMbQ 1092687190 Received: from modem-1288.lion.dialup.pol.co.uk (modem-1288.lion.dialup.pol.co.uk [217.135.165.8]) by frontend1.messagingengine.com (Postfix) with ESMTP id 38664C14AE2 for ; Mon, 16 Aug 2004 16:13:09 -0400 (EDT) From: "R. W." To: freebsd-geom@freebsd.org Date: Mon, 16 Aug 2004 21:12:46 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408162112.47356.list-freebsd-2004@morbius.sent.com> Subject: Encrypted CD/DVDs via gbde or otherwise X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2004 20:13:13 -0000 I have some data in an encrypted gbde partition. I'd like to be able to move some of it out to CD-R or DVD in an encrypted, mountable form (as opposed to simply encrypting a tar file and burning that). Most other encryption schemes support this through container files. You create a 650MB container, mount/attach it, copy the data, unmount/detach the container, and burn it to CD as a single file on a data disk. AFAIK gbde doesn't support container files. Is it on the roadmap? Or is there any alternative. From owner-freebsd-geom@FreeBSD.ORG Tue Aug 17 13:14:33 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F7A116A4CE for ; Tue, 17 Aug 2004 13:14:33 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E24C43D2F for ; Tue, 17 Aug 2004 13:14:33 +0000 (GMT) (envelope-from des@des.no) Received: from dwp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 511041205; Tue, 17 Aug 2004 15:15:07 +0200 (MEST) Received: by dwp.des.no (Postfix, from userid 2602) id B0DA4B85E; Tue, 17 Aug 2004 15:14:31 +0200 (CEST) To: "R. W." References: <200408162112.47356.list-freebsd-2004@morbius.sent.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 17 Aug 2004 15:14:31 +0200 In-Reply-To: <200408162112.47356.list-freebsd-2004@morbius.sent.com> (R. W.'s message of "Mon, 16 Aug 2004 21:12:46 +0100") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-geom@freebsd.org Subject: Re: Encrypted CD/DVDs via gbde or otherwise X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 13:14:33 -0000 "R. W." writes: > I have some data in an encrypted gbde partition. I'd like to be able to=20 > move some of it out to CD-R or DVD in an encrypted, mountable form (as=20 > opposed to simply encrypting a tar file and burning that). > > Most other encryption schemes support this through container files. You=20 > create a 650MB container, mount/attach it, copy the data,=20 > unmount/detach the container, and burn it to CD as a single file on a=20 > data disk. > > AFAIK gbde doesn't support container files. Is it on the roadmap? Or is=20 > there any alternative. (untested) # dd if=3D/dev/zero of=3Dcontainer bs=3D1048576 count=3D650 # mdconfig -a -t vnode -f container # gbde init /dev/md0 # gbde attach /dev/md0 # newfs /dev/md0.bde # mount /dev/md0.bde /mnt # # umount /mnt # gbde detach /dev/md0 # mdconfig -d -u 0 # burncd data container fixate you should then be able to 'gbde attach /dev/acd0' and mount /dev/acd0.bde wherever you like. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Tue Aug 17 21:18:24 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DE8116A4CE for ; Tue, 17 Aug 2004 21:18:24 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id E251543D48 for ; Tue, 17 Aug 2004 21:18:23 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i7HLIMC6039510; Tue, 17 Aug 2004 17:18:22 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i7HLILxC039509; Tue, 17 Aug 2004 17:18:21 -0400 (EDT) (envelope-from afields) Date: Tue, 17 Aug 2004 17:18:21 -0400 From: Allan Fields To: DOT Message-ID: <20040817211821.GD33859@afields.ca> References: <20040816203143.21c95a45.dot@data.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040816203143.21c95a45.dot@data.pl> User-Agent: Mutt/1.4i cc: freebsd-geom@freebsd.org Subject: Re: can't reattach gbde slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 21:18:24 -0000 On Mon, Aug 16, 2004 at 08:31:43PM +0200, DOT wrote: > Hello, > > I'm using GBDE on laptop everyday from six months and it never fails, > so I feel free to store all my sensitive data on encrypted slice (ad0s3 > - my home directory). This might not be GBDE related, don't know yet. > Today something really bad happens and I can't attach it anymore. I > can't even discover what's the reason because there are/were no error > messages, system boot and run without problem, my brain isn't corrupted, > hardware looks fine too. I know it for sure, passphrase is good. ad0s3 you are using a raw slice. Where is FreeBSD located? So you went to attach and you get no /dev/ad0s3.bde ? > Only one thing comes to my mind - yesterday I've run some livecd linux > distribution.. just looked around and shutdown - but I'm not sure, could > it overwrite something? I'd hope not, unless you went to install something, you can still boot FreeBSD off ad0? If you went to partition the drive it might have done something. > If so, how can I check this? Or, most important to me, is there any chance to fix this? Get fdisk output and any disklabels on ad0. Is s3 still the same? Even writing partitions from Linux fdisk shouldn't be a problem, unless changed. If not you have a back-up of the partition table or idea what you used? > > If You need more detailed informations please tell me what to do. > > Michal Bartkowiak -- Allan Fields, AFRSL - http://afields.ca 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541 From owner-freebsd-geom@FreeBSD.ORG Tue Aug 17 21:27:37 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B53C16A4CE for ; Tue, 17 Aug 2004 21:27:37 +0000 (GMT) Received: from frontend1.messagingengine.com (frontend1.messagingengine.com [66.111.4.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8ACA43D2F for ; Tue, 17 Aug 2004 21:27:36 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) X-Sasl-enc: Z+/Q/6n4vtJDkugaYibcJw 1092778053 Received: from modem-547.snake.dialup.pol.co.uk (modem-547.snake.dialup.pol.co.uk [62.137.114.35]) by frontend1.messagingengine.com (Postfix) with ESMTP id 17969C1472D for ; Tue, 17 Aug 2004 17:27:32 -0400 (EDT) From: "R. W." To: freebsd-geom@freebsd.org Date: Tue, 17 Aug 2004 22:27:32 +0100 User-Agent: KMail/1.6.2 References: <200408162112.47356.list-freebsd-2004@morbius.sent.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408172227.33570.list-freebsd-2004@morbius.sent.com> Subject: Re: Encrypted CD/DVDs via gbde or otherwise X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 21:27:37 -0000 On Tuesday 17 August 2004 14:14, Dag-Erling Sm=F8rgrav wrote: > "R. W." writes: > > I have some data in an encrypted gbde partition. I'd like to be > > able to move some of it out to CD-R or DVD in an encrypted, > > mountable form (as opposed to simply encrypting a tar file and > > burning that). > > > > Most other encryption schemes support this through container files. > > You create a 650MB container, mount/attach it, copy the data, > > unmount/detach the container, and burn it to CD as a single file on > > a data disk. > > > > AFAIK gbde doesn't support container files. Is it on the roadmap? > > Or is there any alternative. > > (untested) > > # dd if=3D/dev/zero of=3Dcontainer bs=3D1048576 count=3D650 > # mdconfig -a -t vnode -f container > # gbde init /dev/md0 > # gbde attach /dev/md0 > # newfs /dev/md0.bde > # mount /dev/md0.bde /mnt > # > # umount /mnt > # gbde detach /dev/md0 > # mdconfig -d -u 0 > # burncd data container fixate > > you should then be able to 'gbde attach /dev/acd0' and mount > /dev/acd0.bde wherever you like. Nice Idea, but it didn't quite work, there was no /dev/acd0.bde after=20 attaching /dev/acd0. However, what did work was converting the container to an iso image=20 before burning, then using=20 # mount /cdrom # mdconfig -a -t vnode -f /cdrom/containe # gbde init /dev/md0 # gbde attach /dev/md0=20 # mount /dev/md0.bde /mnt=20 to access the encrypted data. Thanks for your help. From owner-freebsd-geom@FreeBSD.ORG Wed Aug 18 11:14:53 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6365716A4CE for ; Wed, 18 Aug 2004 11:14:53 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id AC6DF43D5F for ; Wed, 18 Aug 2004 11:14:51 +0000 (GMT) (envelope-from dot@data.pl) Received: from localhost (HELO nonSpace) (dot.data@home@127.0.0.1) by matrix01.home.net.pl with SMTP; 18 Aug 2004 11:14:47 -0000 Date: Wed, 18 Aug 2004 13:26:58 +0200 From: DOT To: Allan Fields Message-Id: <20040818132658.3d8805ad.dot@data.pl> In-Reply-To: <20040817211821.GD33859@afields.ca> References: <20040816203143.21c95a45.dot@data.pl> <20040817211821.GD33859@afields.ca> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-geom@freebsd.org Subject: Re: can't reattach gbde slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 11:14:53 -0000 On Tue, 17 Aug 2004 17:18:21 -0400 Allan Fields wrote: > On Mon, Aug 16, 2004 at 08:31:43PM +0200, DOT wrote: > > Hello, > > > > I'm using GBDE on laptop everyday from six months and it never fails, > > so I feel free to store all my sensitive data on encrypted slice (ad0s3 > > - my home directory). > > This might not be GBDE related, don't know yet. Ofcourse, I still belive that it's good idea. > > Today something really bad happens and I can't attach it anymore. I > > can't even discover what's the reason because there are/were no error > > messages, system boot and run without problem, my brain isn't corrupted, > > hardware looks fine too. I know it for sure, passphrase is good. > > ad0s3 you are using a raw slice. Where is FreeBSD located? > So you went to attach and you get no /dev/ad0s3.bde ? Exactly. I'm using a raw slice, and nothing visible to me happened when I was trying to attach it. "was" because i've just finished recovering data from backup. It wasn't obvious decision because I mess up and most of them are outdated, hope I can handle this. In this situation sorry for Your wasted time. FreeBSD is on ad0s2. Are there any contraindications to use geom based encryption on a raw slice? > > Only one thing comes to my mind - yesterday I've run some livecd linux > > distribution.. just looked around and shutdown - but I'm not sure, could > > it overwrite something? > > I'd hope not, unless you went to install something, you can still boot > FreeBSD off ad0? If you went to partition the drive it might have done > something. I didn't install anything, didn't touch partitions at all (consciously). And after that FreeBSD and Windows XP boot and run without problem. I'm not sure that this has something to do with my case, but as far as i can remember it's what I was doing directly before problems with attach. > > If so, how can I check this? Or, most important to me, is there > any chance to fix this? > > Get fdisk output and any disklabels on ad0. Is s3 still the same? > Even writing partitions from Linux fdisk shouldn't be a problem, > unless changed. If not you have a back-up of the partition table > or idea what you used? I didn't have backups of partiotion table, but as You can see now my problem is out of date, unsolved anyway. Thank You very much for Your interest. > > If You need more detailed informations please tell me what to do. > > > > Michal Bartkowiak > > -- > Allan Fields, AFRSL - http://afields.ca > 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541 > Cheers, Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Thu Aug 19 01:03:07 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0B5416A4CE for ; Thu, 19 Aug 2004 01:03:07 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED43943D2D for ; Thu, 19 Aug 2004 01:03:06 +0000 (GMT) (envelope-from nevans@syphen.net) Received: from speedstar.syphen.net (pcp0010302720pcs.avenel01.nj.comcast.net[68.38.178.199]) by comcast.net (sccrmhc11) with SMTP id <20040819010306011004u39ve>; Thu, 19 Aug 2004 01:03:06 +0000 Date: Wed, 18 Aug 2004 21:11:41 -0400 From: Nick Evans To: freebsd-geom@freebsd.org Message-Id: <20040818211141.1370a758@speedstar.syphen.net> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Hardware acceleration. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 01:03:07 -0000 Are there any plans for GBDE to tie into the crypto system? Soekris has some new AES boards that would be nifty to use with GBDE partitions. Nick From owner-freebsd-geom@FreeBSD.ORG Thu Aug 19 06:15:43 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 112FC16A4CE for ; Thu, 19 Aug 2004 06:15:43 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57A8343D46 for ; Thu, 19 Aug 2004 06:15:42 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i7J6FY2n011160; Thu, 19 Aug 2004 08:15:40 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Nick Evans From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 18 Aug 2004 21:11:41 EDT." <20040818211141.1370a758@speedstar.syphen.net> Date: Thu, 19 Aug 2004 08:15:34 +0200 Message-ID: <11159.1092896134@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-geom@freebsd.org Subject: Re: Hardware acceleration. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 06:15:43 -0000 In message <20040818211141.1370a758@speedstar.syphen.net>, Nick Evans writes: >Are there any plans for GBDE to tie into the crypto system? Soekris >has some new AES boards that would be nifty to use >with GBDE partitions. yes, there are plans and even some beginnings of some code. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Fri Aug 20 10:17:48 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 077BD16A4CE for ; Fri, 20 Aug 2004 10:17:48 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDE3843D2D for ; Fri, 20 Aug 2004 10:17:47 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i7KAHlng049484 for ; Fri, 20 Aug 2004 06:17:47 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i7KAHltu049483 for freebsd-geom@freebsd.org; Fri, 20 Aug 2004 06:17:47 -0400 (EDT) (envelope-from afields) Date: Fri, 20 Aug 2004 06:17:47 -0400 From: Allan Fields To: freebsd-geom@freebsd.org Message-ID: <20040820101747.GJ33859@afields.ca> References: <200408142223.i7EMNdY00919@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408142223.i7EMNdY00919@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.4i Subject: Re: GEOM and NetBSD compatibility question X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.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, 20 Aug 2004 10:17:48 -0000 On Sun, Aug 15, 2004 at 12:23:39AM +0200, Barry Bouwsma wrote: > [keep replies to the list and I'll catch up later, thanks] > > Servus, > > I had looked at this a couple years ago, without really finding > a solution, and now I'm experiencing this again when trying to > use my NetBSD partition under FreeBSD-CURRENT and GEOM. > > I've applied a hack (first proposed a couple years back) which > allows GEOM to recognize the NetBSD ID. However, GEOM is getting > confused by the NetBSD disklabel. So that there are no dangling references, the patch is likely from thread: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=8519d5064d3bb4b1&rnum=1 > [ snip: relative vs. absolute labels... ] > > thanks > barry bouwsma -- Allan Fields, AFRSL - http://afields.ca 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541