From owner-freebsd-geom@FreeBSD.ORG Mon Jul 25 11:02:09 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 9A85516A421 for ; Mon, 25 Jul 2005 11:02:09 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 550A043D45 for ; Mon, 25 Jul 2005 11:02:09 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6PB29TU018360 for ; Mon, 25 Jul 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6PB28Zj018353 for freebsd-geom@freebsd.org; Mon, 25 Jul 2005 11:02:08 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 25 Jul 2005 11:02:08 GMT Message-Id: <200507251102.j6PB28Zj018353@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 25 Jul 2005 11:02:09 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/26] bin/78131 geom gbde "destroy" not working. o [2005/03/26] kern/79251 geom [2TB] newfs fails on 2.6TB gbde device 2 problems total. From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 19:35:07 2005 Return-Path: X-Original-To: geom@freebsd.org 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 D125216A420 for ; Tue, 26 Jul 2005 19:35:07 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01ED143D46 for ; Tue, 26 Jul 2005 19:35:07 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from [192.168.0.2] (host46-147.pool8254.interbusiness.it [82.54.147.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id 841F057CB for ; Tue, 26 Jul 2005 21:35:05 +0200 (CEST) Message-ID: <42E6903D.1040107@freesbie.org> Date: Tue, 26 Jul 2005 21:34:21 +0200 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 To: geom@freebsd.org X-Enigmail-Version: 0.92.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0F5AD16DD9F19E3956926799" Cc: Subject: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 19:35:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0F5AD16DD9F19E3956926799 Content-Type: multipart/mixed; boundary="------------060801090004070600080406" This is a multi-part message in MIME format. --------------060801090004070600080406 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi everybody. I worked on a geom_vol_cd9660 class that acts like the geom_vol_ffs one, with cd9660 image. Although the actual code doesn't cover every possible type of images, this works fine for me. Can anybody test it and report here the results? Inserting an ISO9660 CD or attaching and md vnode pointing to an ISO image should create a /dev/vol/${LABEL} device, which can be used to mount it instead of /dev/acd0 or whatever. Hints and corrections are greatly appreciated, as this is my first attempt with a geom class (and also with devices issues) Bye and thanks in advance, Dario -- Dario Freni (saturnero@freesbie.org) FreeSBIE developer (http://www.freesbie.org) GPG Public key at http://www.saturnero.net/saturnero.asc --------------060801090004070600080406 Content-Type: text/plain; x-mac-type="54455854"; x-mac-creator="74657874"; name="geom_vol_cd9660.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="geom_vol_cd9660.c" /*- * Copyright (c) 2005 Dario Freni * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include __FBSDID("$FreeBSD$"); #include #include #include #include #include #include #include #include #include #include #include #define VOL_CD9660_CLASS_NAME "VOL_CD9660" struct g_vol_cd9660_softc { char * vol; }; static int g_vol_cd9660_start(struct bio *bp __unused) { return(0); } static struct g_geom * g_vol_cd9660_taste(struct g_class *mp, struct g_provider *pp, int flags) { void *buf; char volname[32]; char *s; struct g_geom *gp; struct g_consumer *cp; struct g_vol_cd9660_softc *ms; int error, high_sierra=0; struct iso_volume_descriptor *vdp; struct iso_primary_descriptor *pri; struct iso_sierra_primary_descriptor *pri_sierra; g_trace(G_T_TOPOLOGY, "vol_taste(%s,%s)", mp->name, pp->name); g_topology_assert(); /* Avoid recursion */ if (flags == G_TF_NORMAL && !strcmp(pp->geom->class->name, VOL_CD9660_CLASS_NAME)) return NULL; gp = g_slice_new(mp, 1, pp, &cp, &ms, sizeof(*ms), g_vol_cd9660_start); if (gp == NULL) return (NULL); g_topology_unlock(); buf = NULL; buf = g_read_data(cp, ((off_t) 16) <<11, ISO_DEFAULT_BLOCK_SIZE, &error); if (buf == NULL || error != 0) goto end; vdp = (struct iso_volume_descriptor *) buf; if (strncmp (vdp->id, ISO_STANDARD_ID, sizeof(ISO_STANDARD_ID) - 1) != 0) { /* Untested with sierra images */ if (strncmp (vdp->id_sierra, ISO_SIERRA_ID, sizeof(ISO_SIERRA_ID) - 1) != 0) goto end; else high_sierra = 1; } switch (isonum_711 (high_sierra? vdp->type_sierra: vdp->type)) { case ISO_VD_PRIMARY: if (high_sierra) { pri_sierra = (struct iso_sierra_primary_descriptor *) vdp; s = pri_sierra->volume_id; } else { pri = (struct iso_primary_descriptor *) vdp; s = pri->volume_id; } bzero(volname,32); for (int i=0; i < 32 && *s; i++) { if (s[i] == ' ' || s[i] == '\0') break; volname[i] = s[i]; } /* Check for volume name */ if (volname[0] == '\0') goto end; break; /* XXX check for ISO_VD_SUPPLEMENTARY? */ default: break; } g_topology_lock(); g_slice_config(gp, 0, G_SLICE_CONFIG_SET, (off_t) 0, pp->mediasize, pp->sectorsize, "vol/%s", volname); g_free(buf); g_topology_unlock(); end: g_topology_lock(); g_access(cp, -1, 0, 0); if (LIST_EMPTY(&gp->provider)) { g_slice_spoiled(cp); return (NULL); } return (gp); } static struct g_class g_vol_cd9660_class = { .name = VOL_CD9660_CLASS_NAME, .version = G_VERSION, .taste = g_vol_cd9660_taste, }; DECLARE_GEOM_CLASS(g_vol_cd9660_class, g_vol_cd9660); --------------060801090004070600080406 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" # $FreeBSD$ CFLAGS+=-g KMOD= geom_vol_cd9660 SRCS= geom_vol_cd9660.c .include --------------060801090004070600080406-- --------------enig0F5AD16DD9F19E3956926799 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFC5pA9ymi72IiShysRAiqQAJ9u5JQa4tEfWAe0RO5Ju9EMwGz2BwCgiy1x 8giky9vKdS9bLhuKzZJ4/8Q= =Q/os -----END PGP SIGNATURE----- --------------enig0F5AD16DD9F19E3956926799-- From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 20:02:20 2005 Return-Path: X-Original-To: geom@freebsd.org 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 F347016A423 for ; Tue, 26 Jul 2005 20:02:19 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id C764743D45 for ; Tue, 26 Jul 2005 20:02:16 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id C61E6ACADB; Tue, 26 Jul 2005 22:02:14 +0200 (CEST) Date: Tue, 26 Jul 2005 22:02:14 +0200 From: Pawel Jakub Dawidek To: Dario Freni Message-ID: <20050726200214.GH46538@darkness.comp.waw.pl> References: <42E6903D.1040107@freesbie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="51nQ5oNiJAC90u8a" Content-Disposition: inline In-Reply-To: <42E6903D.1040107@freesbie.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: geom@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 20:02:20 -0000 --51nQ5oNiJAC90u8a Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2005 at 09:34:21PM +0200, Dario Freni wrote: +> Hi everybody. I worked on a geom_vol_cd9660 class that acts like the +> geom_vol_ffs one, with cd9660 image. Although the actual code doesn't +> cover every possible type of images, this works fine for me. +>=20 +> Can anybody test it and report here the results? Inserting an ISO9660 CD +> or attaching and md vnode pointing to an ISO image should create a +> /dev/vol/${LABEL} device, which can be used to mount it instead of +> /dev/acd0 or whatever. +>=20 +> Hints and corrections are greatly appreciated, as this is my first +> attempt with a geom class (and also with devices issues) What's wrong with glabel(8)? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --51nQ5oNiJAC90u8a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC5pbGForvXbEpPzQRAtA/AKDsx7NlAM2nbGNvJhacdM57QNXpmgCeNEe6 c6+73mJ22Cut5JD/IZHATgU= =CrE0 -----END PGP SIGNATURE----- --51nQ5oNiJAC90u8a-- From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 20:07:43 2005 Return-Path: X-Original-To: geom@freebsd.org 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 A107616A41F; Tue, 26 Jul 2005 20:07:43 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EF443D48; Tue, 26 Jul 2005 20:07:42 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from [192.168.0.2] (host46-147.pool8254.interbusiness.it [82.54.147.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id F28BB5732; Tue, 26 Jul 2005 22:07:42 +0200 (CEST) Message-ID: <42E697E2.2050000@freesbie.org> Date: Tue, 26 Jul 2005 22:06:58 +0200 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <42E6903D.1040107@freesbie.org> <20050726200214.GH46538@darkness.comp.waw.pl> In-Reply-To: <20050726200214.GH46538@darkness.comp.waw.pl> X-Enigmail-Version: 0.92.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0FA9D4BC08F3695A9C83E724" Cc: geom@freebsd.org, current@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 20:07:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0FA9D4BC08F3695A9C83E724 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Pawel Jakub Dawidek wrote: > What's wrong with glabel(8)? Honestly, I didn't know it before. Looking into NanoBSD code I saw it use GEOM_VOL, so I started investigate on geom_vol_ffs and write this tiny class. Agreeing with Andreas Kohn on current@: But, the really important question is: why is there geom_vol_ffs and geom_label? Apparently I wasn't the only one who did not see geom_label :) Bye, Dario -- Dario Freni (saturnero@freesbie.org) FreeSBIE developer (http://www.freesbie.org) GPG Public key at http://www.saturnero.net/saturnero.asc --------------enig0FA9D4BC08F3695A9C83E724 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD4DBQFC5pfiymi72IiShysRAjgIAJizlGhzILmJQGyKoX7kxpApEQNCAJkBE7w9 hK9nreGEemlE4mcAB0gvhA== =7hBL -----END PGP SIGNATURE----- --------------enig0FA9D4BC08F3695A9C83E724-- From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 20:22:41 2005 Return-Path: X-Original-To: geom@freebsd.org 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 81D5C16A41F; Tue, 26 Jul 2005 20:22:41 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02CDC43D45; Tue, 26 Jul 2005 20:22:41 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id ECE7FACC59; Tue, 26 Jul 2005 22:22:39 +0200 (CEST) Date: Tue, 26 Jul 2005 22:22:39 +0200 From: Pawel Jakub Dawidek To: Dario Freni Message-ID: <20050726202239.GJ46538@darkness.comp.waw.pl> References: <42E6903D.1040107@freesbie.org> <20050726200214.GH46538@darkness.comp.waw.pl> <42E697E2.2050000@freesbie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sRX2FdEyTtTKLbqH" Content-Disposition: inline In-Reply-To: <42E697E2.2050000@freesbie.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: geom@freebsd.org, current@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 20:22:41 -0000 --sRX2FdEyTtTKLbqH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2005 at 10:06:58PM +0200, Dario Freni wrote: +> Pawel Jakub Dawidek wrote: +> > What's wrong with glabel(8)? +>=20 +> Honestly, I didn't know it before. Looking into NanoBSD code I saw it +> use GEOM_VOL, so I started investigate on geom_vol_ffs and write this +> tiny class. Agreeing with Andreas Kohn on current@: +>=20 +> +> But, the really important question is: why is there geom_vol_ffs and +> geom_label? Apparently I wasn't the only one who did not see +> geom_label :) +> That's actually my fault. I wanted to remove geom_vol_ffs long time ago to not confuse the users. To not make your work useless, could you verify iso9660 part of geom_label? Maybe I missed something there. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --sRX2FdEyTtTKLbqH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC5puPForvXbEpPzQRAtE5AJ9aAGCRkrEiZXjrM4XX3NqZeuaHfQCffi+Q 6KBjFGG9VZS2Xmwv1yT2LcI= =nVLI -----END PGP SIGNATURE----- --sRX2FdEyTtTKLbqH-- From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 20:40:14 2005 Return-Path: X-Original-To: geom@freebsd.org 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 6313016A420 for ; Tue, 26 Jul 2005 20:40:14 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 12F3C43D48 for ; Tue, 26 Jul 2005 20:40:12 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: (qmail invoked by alias); 26 Jul 2005 20:40:11 -0000 Received: from unknown (EHLO klamath) [212.204.44.203] by mail.gmx.net (mp005) with SMTP; 26 Jul 2005 22:40:11 +0200 X-Authenticated: #2431876 From: Andreas Kohn To: Pawel Jakub Dawidek In-Reply-To: <20050726202239.GJ46538@darkness.comp.waw.pl> References: <42E6903D.1040107@freesbie.org> <20050726200214.GH46538@darkness.comp.waw.pl> <42E697E2.2050000@freesbie.org> <20050726202239.GJ46538@darkness.comp.waw.pl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8DxkoChrL/3R3miS56Yx" Date: Tue, 26 Jul 2005 22:40:09 +0200 Message-Id: <1122410410.1007.16.camel@klamath.syndrom23.de> Mime-Version: 1.0 X-Mailer: Evolution 2.3.5.1 FreeBSD GNOME Team Port X-Y-GMX-Trusted: 0 Cc: geom@freebsd.org, Dario Freni , current@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 20:40:14 -0000 --=-8DxkoChrL/3R3miS56Yx Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2005-07-26 at 22:22 +0200, Pawel Jakub Dawidek wrote: > On Tue, Jul 26, 2005 at 10:06:58PM +0200, Dario Freni wrote: > +> Pawel Jakub Dawidek wrote: > +> > What's wrong with glabel(8)? > +>=20 > +> Honestly, I didn't know it before. Looking into NanoBSD code I saw it > +> use GEOM_VOL, so I started investigate on geom_vol_ffs and write this > +> tiny class. Agreeing with Andreas Kohn on current@: > +>=20 > +> > +> But, the really important question is: why is there geom_vol_ffs and > +> geom_label? Apparently I wasn't the only one who did not see > +> geom_label :) > +> >=20 > That's actually my fault. I wanted to remove geom_vol_ffs long time > ago to not confuse the users. FYI, I found geom_vol_ffs via the bsdcan-04.slides.geom.pdf page 23, and after not seeing geom_vol_cd9660 (the obvious name following from the slides) started to build my own (using geom_vol_ffs as base, obviously). I found geom_label because I had some locking problems and was searching for sample code IIRC. Instead of removing geom_vol_ffs without any traces, could it be helpful to link geom_vol_ffs manpage (there is none currently) to glabel? Regards, -- Andreas --=20 was macht man eigentlich auf einer linux-gamer lan ? hl server aufsetzen und freuen ? *duck* ^^ --=-8DxkoChrL/3R3miS56Yx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBC5p+pYucd7Ow1ygwRAilyAJ44YZL1QNPUuSOuF4SqIUNFF0eFvgCeKEPr Ugx89d0hkzyXSfl7b/ZC5Ks= =TQpw -----END PGP SIGNATURE----- --=-8DxkoChrL/3R3miS56Yx-- From owner-freebsd-geom@FreeBSD.ORG Tue Jul 26 21:23:00 2005 Return-Path: X-Original-To: geom@freebsd.org 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 E070616A41F; Tue, 26 Jul 2005 21:23:00 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60ADD43D46; Tue, 26 Jul 2005 21:23:00 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 9D792ACC26; Tue, 26 Jul 2005 23:22:58 +0200 (CEST) Date: Tue, 26 Jul 2005 23:22:58 +0200 From: Pawel Jakub Dawidek To: Andreas Kohn Message-ID: <20050726212258.GK46538@darkness.comp.waw.pl> References: <42E6903D.1040107@freesbie.org> <20050726200214.GH46538@darkness.comp.waw.pl> <42E697E2.2050000@freesbie.org> <20050726202239.GJ46538@darkness.comp.waw.pl> <1122410410.1007.16.camel@klamath.syndrom23.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/XeHloKM/RFysOC5" Content-Disposition: inline In-Reply-To: <1122410410.1007.16.camel@klamath.syndrom23.de> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: geom@freebsd.org, Dario Freni , current@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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: Tue, 26 Jul 2005 21:23:01 -0000 --/XeHloKM/RFysOC5 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2005 at 10:40:09PM +0200, Andreas Kohn wrote: +> Instead of removing geom_vol_ffs without any traces, could it be helpful +> to link geom_vol_ffs manpage (there is none currently) to glabel? The plan was to add a compile-time warning first and remove it from the tree after some time. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --/XeHloKM/RFysOC5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC5qmyForvXbEpPzQRAoRJAKDw4yXbgc4D5xhS0oHPg3fgK1I5FQCg7LFI addWXAifd6z71kLLNtvJWYM= =rq2v -----END PGP SIGNATURE----- --/XeHloKM/RFysOC5-- From owner-freebsd-geom@FreeBSD.ORG Wed Jul 27 01:10:52 2005 Return-Path: X-Original-To: geom@freebsd.org 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 7F83116A41F; Wed, 27 Jul 2005 01:10:52 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0786B43D46; Wed, 27 Jul 2005 01:10:51 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from [151.26.114.37] (ppp-37-114.26-151.libero.it [151.26.114.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id 3154A5732; Wed, 27 Jul 2005 03:10:51 +0200 (CEST) Message-ID: <42E6DEEA.90307@freesbie.org> Date: Wed, 27 Jul 2005 03:10:02 +0200 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <42E6903D.1040107@freesbie.org> <20050726200214.GH46538@darkness.comp.waw.pl> <42E697E2.2050000@freesbie.org> <20050726202239.GJ46538@darkness.comp.waw.pl> In-Reply-To: <20050726202239.GJ46538@darkness.comp.waw.pl> X-Enigmail-Version: 0.92.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB88892149263EB5DF822AF52" Cc: geom@freebsd.org, current@freebsd.org Subject: Re: CALL FOR TESTERS: geom_vol_cd9660 class 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, 27 Jul 2005 01:10:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB88892149263EB5DF822AF52 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Pawel Jakub Dawidek ha scritto: > On Tue, Jul 26, 2005 at 10:06:58PM +0200, Dario Freni wrote: > +> Pawel Jakub Dawidek wrote: > +> > What's wrong with glabel(8)? > +> > +> Honestly, I didn't know it before. Looking into NanoBSD code I saw it > +> use GEOM_VOL, so I started investigate on geom_vol_ffs and write this > +> tiny class. Agreeing with Andreas Kohn on current@: > +> > +> > +> But, the really important question is: why is there geom_vol_ffs and > +> geom_label? Apparently I wasn't the only one who did not see > +> geom_label :) > +> > > That's actually my fault. I wanted to remove geom_vol_ffs long time > ago to not confuse the users. > > To not make your work useless, could you verify iso9660 part of > geom_label? Maybe I missed something there. I'm not so expert on this topic, but i stole part of my code from /sys/isofs/cd9660/cd9660_vfsops.c. I used the iso.h which has some useful structs to handle primary/sierra/supplementary descriptors. glabel is definitely ok for me, but please put that warning on geom_vol_ffs :) Anyway, I had fun with geom. Bye and thanks, Dario -- Dario Freni (saturnero@freesbie.org) FreeSBIE developer (http://www.freesbie.org) GPG Public key at http://www.saturnero.net/saturnero.asc --------------enigB88892149263EB5DF822AF52 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFC5t7uymi72IiShysRApx/AJ0XI5bCVpu+r5TTuMkPQ/gPWSuIigCgrDE3 bpLvajYy1aXzCXOAwuZqaTA= =a5yS -----END PGP SIGNATURE----- --------------enigB88892149263EB5DF822AF52-- From owner-freebsd-geom@FreeBSD.ORG Thu Jul 28 06:26:10 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 F1A4316A420 for ; Thu, 28 Jul 2005 06:26:09 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from ws2.infoweapons.com (ws2.infoweapons.com [203.177.161.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id D44C243D45 for ; Thu, 28 Jul 2005 06:26:07 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from [10.3.1.41] ([10.3.1.41]) by ws2.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Jul 2005 14:25:21 +0800 Message-ID: <42E87C35.4020902@infoweapons.com> Date: Thu, 28 Jul 2005 14:33:25 +0800 From: "Ronnel P. Maglasang" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms090809050304050003020305" X-OriginalArrivalTime: 28 Jul 2005 06:25:21.0187 (UTC) FILETIME=[215BA730:01C5933D] Subject: encrypting existing partitions/disks 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: Thu, 28 Jul 2005 06:26:10 -0000 This is a cryptographically signed message in MIME format. --------------ms090809050304050003020305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, Has anyone wrote a how-to or a guick guide on how to encrypt an existing partition/disk using gbde? I've tried to search in the net but i cudn't find any. Is it possible to just move the existing data on my disk, cleanup the disk and encrypt using gbde, attach to the system, then move back the data to the now encrypted disk. Thanks, - ronnel --------------ms090809050304050003020305 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJDTCC AuEwggJKoAMCAQICAw2lDDANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQxMjE3MDE1NzQyWhcNMDUxMjE3MDE1NzQy WjBMMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSkwJwYJKoZIhvcNAQkBFhpy bWFnbGFzYW5nQGluZm93ZWFwb25zLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC ggEBAMmi896dDPm2hAe3x/Xql+wsj/hsWxEr9vj0QP7Js3iyFSJ4/urRQgUfpyx1YJcCKaZY RHoSQW4nMEHqYpOaNub+FJZhXvoqZrPE86gc5IjFG3MtLQzRDgdRBpx0hLCrHVSxBjUE+xLL BgnV/yCGkQAuVYFg5tM/UsyBntEzUzz9v7DtQj9NV0DGKbdqeh7+dHTCOXnMI4OYigT9FPRi lT/NOfJq76Iil3DN1am1U3GGmK7QCSVhcWOdBM5bg42rGIzZXGJ1rxXBFfeiCMP/crsigBKf GZW0h1HHbCT4GfXr6NraPuyJMyQcbhM6fV/QkhWCM/u6YYZNKbZ29iuiIb8CAwEAAaM3MDUw JQYDVR0RBB4wHIEacm1hZ2xhc2FuZ0BpbmZvd2VhcG9ucy5jb20wDAYDVR0TAQH/BAIwADAN BgkqhkiG9w0BAQQFAAOBgQA/RGo5W95ptYFQNPDArgaKbiRsteUpPEZPFb5QAXkAzkIedV60 TcAx1rGUF3hse6+mKVonu8wrAQKRxiVswJ4aTgNCo07fWcBOBHITZm/bGZyP0imrP5bONj9b C80YX8qeNrtTK9mmryzAQQUW9LBj4iE0PW1SGF5pMHQC8YUgYTCCAuEwggJKoAMCAQICAw2l DDANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1 bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElz c3VpbmcgQ0EwHhcNMDQxMjE3MDE1NzQyWhcNMDUxMjE3MDE1NzQyWjBMMR8wHQYDVQQDExZU aGF3dGUgRnJlZW1haWwgTWVtYmVyMSkwJwYJKoZIhvcNAQkBFhpybWFnbGFzYW5nQGluZm93 ZWFwb25zLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMmi896dDPm2hAe3 x/Xql+wsj/hsWxEr9vj0QP7Js3iyFSJ4/urRQgUfpyx1YJcCKaZYRHoSQW4nMEHqYpOaNub+ FJZhXvoqZrPE86gc5IjFG3MtLQzRDgdRBpx0hLCrHVSxBjUE+xLLBgnV/yCGkQAuVYFg5tM/ UsyBntEzUzz9v7DtQj9NV0DGKbdqeh7+dHTCOXnMI4OYigT9FPRilT/NOfJq76Iil3DN1am1 U3GGmK7QCSVhcWOdBM5bg42rGIzZXGJ1rxXBFfeiCMP/crsigBKfGZW0h1HHbCT4GfXr6Nra PuyJMyQcbhM6fV/QkhWCM/u6YYZNKbZ29iuiIb8CAwEAAaM3MDUwJQYDVR0RBB4wHIEacm1h Z2xhc2FuZ0BpbmZvd2VhcG9ucy5jb20wDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOB gQA/RGo5W95ptYFQNPDArgaKbiRsteUpPEZPFb5QAXkAzkIedV60TcAx1rGUF3hse6+mKVon u8wrAQKRxiVswJ4aTgNCo07fWcBOBHITZm/bGZyP0imrP5bONj9bC80YX8qeNrtTK9mmryzA QQUW9LBj4iE0PW1SGF5pMHQC8YUgYTCCAz8wggKooAMCAQICAQ0wDQYJKoZIhvcNAQEFBQAw gdExCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUg VG93bjEaMBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRp b24gU2VydmljZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFp bCBDQTErMCkGCSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0w MzA3MTcwMDAwMDBaFw0xMzA3MTYyMzU5NTlaMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxU aGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwg RnJlZW1haWwgSXNzdWluZyBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxKY8VXNV +065yplaHmjAdQRwnd/p/6Me7L3N9VvyGna9fww6YfK/Uc4B1OVQCjDXAmNaLIkVcI7dyfAr hVqqP3FWy688Cwfn8R+RNiQqE88r1fOCdz0Dviv+uxg+B79AgAJk16emu59l0cUqVIUPSAR/ p7bRPGEEQB5kGXJgt/sCAwEAAaOBlDCBkTASBgNVHRMBAf8ECDAGAQH/AgEAMEMGA1UdHwQ8 MDowOKA2oDSGMmh0dHA6Ly9jcmwudGhhd3RlLmNvbS9UaGF3dGVQZXJzb25hbEZyZWVtYWls Q0EuY3JsMAsGA1UdDwQEAwIBBjApBgNVHREEIjAgpB4wHDEaMBgGA1UEAxMRUHJpdmF0ZUxh YmVsMi0xMzgwDQYJKoZIhvcNAQEFBQADgYEASIzRUIPqCy7MDaNmrGcPf6+svsIXoUOWlJ1/ TCG4+DYfqi2fNi/A9BxQIJNwPP2t4WFiw9k6GX6EsZkbAMUaC4J0niVQlGLH2ydxVyWN3amc OY6MIE9lX5Xa9/eH1sYITq726jTlEBpbNU1341YheILcIRk13iSx0x1G/11fZU8xggM7MIID NwIBATBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5 KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQID DaUMMAkGBSsOAwIaBQCgggGnMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcN AQkFMQ8XDTA1MDcyODA2MzMyNVowIwYJKoZIhvcNAQkEMRYEFLQgts2j5zG9quTQi05EZq1/ 2OCKMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqG SIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMHgGCSsGAQQBgjcQBDFrMGkwYjEL MAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAq BgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAgMNpQwwegYLKoZI hvcNAQkQAgsxa6BpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGlu ZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWlu ZyBDQQIDDaUMMA0GCSqGSIb3DQEBAQUABIIBAIePRdZLSm2TNM0xf2vYh8ZuUUlVqwdqnMtf c4bOIpTgwim2yGR21XeV4kJ3Cgk3NEPrzgQz9OM4q9rUv/l8VQSg5uhjtmI0ciK6aD29cJ+B erTGYOII1A5tn9vyjvLFDSbsDCw/2SdCXHP9jql3KhphBCRKnh9zn9C3RiRUWAsRAxRgLhnP +YAVWcab8axW14V8NwVdLtCZNmBf4n9GNOkNPe28rvP5Ly10zOnxE76U6PPh6ooDihW/0R44 7dQQWAmfDeAuu/pfyV1VoGN7Ihao2de53SnK+4mKvRQxV2w3orpyX4ksUesSjUwHnGBGeZU7 AdXwlrYYy25zS41URowAAAAAAAA= --------------ms090809050304050003020305-- From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 00:45:02 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 6145116A41F; Fri, 29 Jul 2005 00:45:02 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from ws2.infoweapons.com (ws2.infoweapons.com [203.177.161.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F3E843D45; Fri, 29 Jul 2005 00:45:00 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from [10.3.1.41] ([10.3.1.41]) by ws2.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 08:44:23 +0800 Message-ID: <42E97DDA.9070305@infoweapons.com> Date: Fri, 29 Jul 2005 08:52:42 +0800 From: "Ronnel P. Maglasang" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom , freebsd-security Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2005 00:44:23.0734 (UTC) FILETIME=[AA2DCD60:01C593D6] Cc: Subject: encrypting existing partitions/disks 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: Fri, 29 Jul 2005 00:45:02 -0000 Hello, Has anyone wrote a how-to or a guick guide on how to encrypt an existing partition/disk using gbde? I've tried to search in the net but i cudn't find any. Is it possible to just move the existing data on my disk, cleanup the disk and encrypt using gbde, attach to the system, then move back the data to the now encrypted disk. Thanks, - ronnel From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 05:10:36 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 0C13B16A41F; Fri, 29 Jul 2005 05:10:36 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from ws2.infoweapons.com (ws2.infoweapons.com [203.177.161.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4A9143D49; Fri, 29 Jul 2005 05:10:34 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from [10.3.1.41] ([10.3.1.41]) by ws2.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 13:09:57 +0800 Message-ID: <42E9BC12.2050401@infoweapons.com> Date: Fri, 29 Jul 2005 13:18:10 +0800 From: "Ronnel P. Maglasang" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers , freebsd-geom , freebsd-security Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2005 05:09:57.0281 (UTC) FILETIME=[C3502110:01C593FB] Cc: Subject: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 05:10:36 -0000 Hello, I think there was already a thread on this. I just want to raise the question again if anyone has successfully booted an gdbe-encrypted filesystem (everything encrypted except the bootloader). The passphrase is entered at the bootloader prompt or embedded in the bootloader. I appreciate any tips. Thanks, - ronnel From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 06:17:17 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 A6C4716A420 for ; Fri, 29 Jul 2005 06:17:17 +0000 (GMT) (envelope-from ozgur.ozdemircili@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DE0F43D46 for ; Fri, 29 Jul 2005 06:17:16 +0000 (GMT) (envelope-from ozgur.ozdemircili@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so870061rna for ; Thu, 28 Jul 2005 23:17:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=d6NReafWbEq93RgDkItMG8mJMENCgfzqHpZExBlFeX7UBbWMsGTU/kTF3AvBPp9AW4t+/yYoyx3i3ctfcusKOu1OHSHNGO9dTUhyewOxerjnvjRJJz1xzueT8r9NbpYsoTYeFSfOcFkeg6AKSR1hedQMV6BbLxkofvqX5tuDt9Y= Received: by 10.38.59.65 with SMTP id h65mr1548148rna; Thu, 28 Jul 2005 23:17:15 -0700 (PDT) Received: from author ([81.215.227.172]) by mx.gmail.com with ESMTP id a67sm910528rne.2005.07.28.23.17.14; Thu, 28 Jul 2005 23:17:15 -0700 (PDT) Message-ID: <037601c59405$54ca0440$640ce00a@casiotours.com> From: "Ozgur Ozdemircili" To: "Ronnel P. Maglasang" , "freebsd-geom" , "freebsd-security" References: <42E97DDA.9070305@infoweapons.com> Date: Fri, 29 Jul 2005 09:18:23 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Cc: Subject: Re: encrypting existing partitions/disks 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: Fri, 29 Jul 2005 06:17:17 -0000 Did you check out http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.h tml ? It clearly explains everything. Cheers Ozgur Ozdemircili ----- Original Message ----- From: "Ronnel P. Maglasang" To: "freebsd-geom" ; "freebsd-security" Sent: Friday, July 29, 2005 3:52 AM Subject: encrypting existing partitions/disks > Hello, > > Has anyone wrote a how-to or a guick guide on how > to encrypt an existing partition/disk using gbde? > I've tried to search in the net but i cudn't find > any. Is it possible to just move the existing data > on my disk, cleanup the disk and encrypt using gbde, > attach to the system, then move back the data to the now > encrypted disk. > > Thanks, > - ronnel > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 06:26:28 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 5071116A41F; Fri, 29 Jul 2005 06:26:28 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from ws2.infoweapons.com (ws2.infoweapons.com [203.177.161.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5581A43D46; Fri, 29 Jul 2005 06:26:26 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from [10.3.1.41] ([10.3.1.41]) by ws2.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 14:25:49 +0800 Message-ID: <42E9CDDE.6060807@infoweapons.com> Date: Fri, 29 Jul 2005 14:34:06 +0800 From: "Ronnel P. Maglasang" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ozgur Ozdemircili References: <42E97DDA.9070305@infoweapons.com> <037601c59405$54ca0440$640ce00a@casiotours.com> In-Reply-To: <037601c59405$54ca0440$640ce00a@casiotours.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2005 06:25:49.0406 (UTC) FILETIME=[5C9747E0:01C59406] Cc: freebsd-security , freebsd-geom Subject: Re: encrypting existing partitions/disks 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: Fri, 29 Jul 2005 06:26:28 -0000 What you mean everything? There's not much in there, the sample is a clean (new) disk. Anyways, I already figured it out, you just have to move the data on the disk, gbde-encrypt the disk and move the data back. The one I've mentioned below works. Thanks for the feedback. Ozgur Ozdemircili wrote: >Did you check out >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.h >tml ? >It clearly explains everything. >Cheers >Ozgur Ozdemircili > >----- Original Message ----- >From: "Ronnel P. Maglasang" >To: "freebsd-geom" ; "freebsd-security" > >Sent: Friday, July 29, 2005 3:52 AM >Subject: encrypting existing partitions/disks > > > > >>Hello, >> >>Has anyone wrote a how-to or a guick guide on how >>to encrypt an existing partition/disk using gbde? >>I've tried to search in the net but i cudn't find >>any. Is it possible to just move the existing data >>on my disk, cleanup the disk and encrypt using gbde, >>attach to the system, then move back the data to the now >>encrypted disk. >> >>Thanks, >>- ronnel >>_______________________________________________ >>freebsd-security@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-security >>To unsubscribe, send any mail to >> >> >"freebsd-security-unsubscribe@freebsd.org" > > > From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 06:54:00 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 ADF2A16A420; Fri, 29 Jul 2005 06:54:00 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id C940F43D46; Fri, 29 Jul 2005 06:53:59 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id D91B4ACAF1; Fri, 29 Jul 2005 08:53:57 +0200 (CEST) Date: Fri, 29 Jul 2005 08:53:57 +0200 From: Pawel Jakub Dawidek To: "Ronnel P. Maglasang" Message-ID: <20050729065357.GA617@darkness.comp.waw.pl> References: <42E9BC12.2050401@infoweapons.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <42E9BC12.2050401@infoweapons.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: freebsd-security , freebsd-hackers , freebsd-geom Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 06:54:00 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 29, 2005 at 01:18:10PM +0800, Ronnel P. Maglasang wrote: +> Hello, +>=20 +> I think there was already a thread on this. I just +> want to raise the question again if anyone has successfully +> booted an gdbe-encrypted filesystem (everything encrypted except +> the bootloader). The passphrase is entered at the bootloader prompt +> or embedded in the bootloader. This is not not possible with current GBDE. I've patches which allows this here: http://people.freebsd.org/~pjd/patches/gbde.patch --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC6dKFForvXbEpPzQRAi03AKCrskTtDsmZFMMECdVKRC4WvDUAlwCdFZok TQ9ygQCYujsqduk/oF61RLs= =DTQv -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 07:55:58 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 6661016A41F; Fri, 29 Jul 2005 07:55:58 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 061E543D45; Fri, 29 Jul 2005 07:55:57 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id A1D77323387; Fri, 29 Jul 2005 09:55:56 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 68690405B; Fri, 29 Jul 2005 09:56:19 +0200 (CEST) Date: Fri, 29 Jul 2005 09:56:18 +0200 From: Jeremie Le Hen To: Pawel Jakub Dawidek Message-ID: <20050729075618.GI68965@obiwan.tataz.chchile.org> References: <42E9BC12.2050401@infoweapons.com> <20050729065357.GA617@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050729065357.GA617@darkness.comp.waw.pl> User-Agent: Mutt/1.5.9i Cc: freebsd-security , freebsd-geom , freebsd-hackers , "Ronnel P. Maglasang" Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 07:55:58 -0000 > This is not not possible with current GBDE. > I've patches which allows this here: > > http://people.freebsd.org/~pjd/patches/gbde.patch This is great. Do you intend to commit it someday ? I know the GELI framework allows to use an encrypted root partition, but it would be interesting for GBDE users to be provided such a fonctionnality. Thank you. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 08:00:07 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 2463316A41F; Fri, 29 Jul 2005 08:00:07 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from ws2.infoweapons.com (ws2.infoweapons.com [203.177.161.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 623E143D53; Fri, 29 Jul 2005 08:00:04 +0000 (GMT) (envelope-from rmaglasang@infoweapons.com) Received: from [10.3.1.41] ([10.3.1.41]) by ws2.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jul 2005 15:59:27 +0800 Message-ID: <42E9E3CB.3020709@infoweapons.com> Date: Fri, 29 Jul 2005 16:07:39 +0800 From: "Ronnel P. Maglasang" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <42E9BC12.2050401@infoweapons.com> <20050729065357.GA617@darkness.comp.waw.pl> In-Reply-To: <20050729065357.GA617@darkness.comp.waw.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2005 07:59:27.0828 (UTC) FILETIME=[716E7140:01C59413] Cc: freebsd-geom Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 08:00:07 -0000 Thanks. Let me clarrify, is this patch of yours allows the passphrase to be entered from the bootloader? Or where? Is there a patch needed for the bootloader for this? Thanks again Pawel Jakub Dawidek wrote: >On Fri, Jul 29, 2005 at 01:18:10PM +0800, Ronnel P. Maglasang wrote: >+> Hello, >+> >+> I think there was already a thread on this. I just >+> want to raise the question again if anyone has successfully >+> booted an gdbe-encrypted filesystem (everything encrypted except >+> the bootloader). The passphrase is entered at the bootloader prompt >+> or embedded in the bootloader. > >This is not not possible with current GBDE. >I've patches which allows this here: > > http://people.freebsd.org/~pjd/patches/gbde.patch > > > From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 08:00:48 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 3AB8116A41F; Fri, 29 Jul 2005 08:00:48 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id A76EA43D49; Fri, 29 Jul 2005 08:00:47 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 06F40ACE06; Fri, 29 Jul 2005 10:00:36 +0200 (CEST) Date: Fri, 29 Jul 2005 10:00:36 +0200 From: Pawel Jakub Dawidek To: Jeremie Le Hen Message-ID: <20050729080035.GB609@darkness.comp.waw.pl> References: <42E9BC12.2050401@infoweapons.com> <20050729065357.GA617@darkness.comp.waw.pl> <20050729075618.GI68965@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline In-Reply-To: <20050729075618.GI68965@obiwan.tataz.chchile.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: freebsd-security , freebsd-geom , freebsd-hackers , "Ronnel P. Maglasang" Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 08:00:48 -0000 --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 29, 2005 at 09:56:18AM +0200, Jeremie Le Hen wrote: +> > This is not not possible with current GBDE. +> > I've patches which allows this here: +> >=20 +> > http://people.freebsd.org/~pjd/patches/gbde.patch +>=20 +> This is great. Do you intend to commit it someday ? I know the GELI +> framework allows to use an encrypted root partition, but it would be +> interesting for GBDE users to be provided such a fonctionnality. I sent those patches to phk@ few months ago now. If he decided to add such functionality he is welcome to use them:) I'm not going to commit it by myself. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC6eIjForvXbEpPzQRAocWAJ9Jdxg14xsif8Du8F/VAy1jQZuJ6ACgrO2Q v+SfXaZk4Bfyf/1cyzlvFCM= =zJgB -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg-- From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 08:02:57 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 46F7216A422 for ; Fri, 29 Jul 2005 08:02:57 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A48C43D66 for ; Fri, 29 Jul 2005 08:02:52 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 90352ACDCF; Fri, 29 Jul 2005 10:02:50 +0200 (CEST) Date: Fri, 29 Jul 2005 10:02:50 +0200 From: Pawel Jakub Dawidek To: "Ronnel P. Maglasang" Message-ID: <20050729080250.GC609@darkness.comp.waw.pl> References: <42E9BC12.2050401@infoweapons.com> <20050729065357.GA617@darkness.comp.waw.pl> <42E9E3CB.3020709@infoweapons.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <42E9E3CB.3020709@infoweapons.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Cc: freebsd-geom Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 08:02:57 -0000 --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 29, 2005 at 04:07:39PM +0800, Ronnel P. Maglasang wrote: +> Thanks. +>=20 +> Let me clarrify, is this patch of yours allows +> the passphrase to be entered from the bootloader? +> Or where? Is there a patch needed for the bootloader +> for this? Thanks again Boot-loader know nothing about encryption. You still need to have /boot/ partition decrypted on your USB Pen-Drive or CD-ROM. GBDE will ask you for passphrase before root file system is mounted. After the boot process you can remove Pen-Drive/CD-ROM. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFC6eKqForvXbEpPzQRAkmjAKDyNTpp+4f/p3y8ztxbPBEeNfgKOACdE3qE 0j/D1MLtd7hecmbB9fzgn20= =+pjW -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8-- From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 11:46:01 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 B079516A41F; Fri, 29 Jul 2005 11:46:01 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FDDB43D48; Fri, 29 Jul 2005 11:46:00 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd26.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1DyTJO-000064-01; Fri, 29 Jul 2005 13:45:58 +0200 Received: from Andro-Beta.Leidinger.net (SOkMxYZp8eZNCzlKsWqx3CHvPocSdyqG6GSmeL7Q+uOaz6fbFdncsW@[84.165.201.169]) by fwd26.sul.t-online.de with esmtp id 1DyTJL-18HMzA0; Fri, 29 Jul 2005 13:45:55 +0200 Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j6TBjmAw061039; Fri, 29 Jul 2005 13:45:48 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Fri, 29 Jul 2005 13:45:48 +0200 Message-ID: <20050729134548.1cc28dr8gg0k4k0g@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 29 Jul 2005 13:45:48 +0200 From: Alexander Leidinger To: Pawel Jakub Dawidek References: <42E9BC12.2050401@infoweapons.com> <20050729065357.GA617@darkness.comp.waw.pl> In-Reply-To: <20050729065357.GA617@darkness.comp.waw.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-ID: SOkMxYZp8eZNCzlKsWqx3CHvPocSdyqG6GSmeL7Q+uOaz6fbFdncsW@t-dialin.net X-TOI-MSGID: 82a2a4a0-6caf-4639-9241-f63ea2662f16 Cc: freebsd-security , freebsd-geom , freebsd-hackers , "Ronnel P. Maglasang" Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 11:46:01 -0000 Pawel Jakub Dawidek wrote: > This is not not possible with current GBDE. > I've patches which allows this here: > > http://people.freebsd.org/~pjd/patches/gbde.patch I fail to see how this allows an encryted root-FS, it doesn't add gbde support to boot0(ext) or to the loader. It needs access to an unencrypted kernel. I don't think this is what Ronnel had in mind (overlooking the fact that his suggestion to save the passphrase in the loader is insecure). Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The man who can smile when things go wrong has thought of someone he can blame it on. From owner-freebsd-geom@FreeBSD.ORG Fri Jul 29 11:52:43 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 E1DFA16A41F; Fri, 29 Jul 2005 11:52:43 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from haven.freebsd.dk (haven.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BDF643D45; Fri, 29 Jul 2005 11:52:43 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (unknown [192.168.48.2]) by haven.freebsd.dk (Postfix) with ESMTP id A2E38BC66; Fri, 29 Jul 2005 11:52:41 +0000 (UTC) To: Alexander Leidinger From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 29 Jul 2005 13:45:48 +0200." <20050729134548.1cc28dr8gg0k4k0g@netchild.homeip.net> Date: Fri, 29 Jul 2005 13:52:40 +0200 Message-ID: <94252.1122637960@phk.freebsd.dk> Sender: phk@phk.freebsd.dk Cc: freebsd-security , "Ronnel P. Maglasang" , Pawel Jakub Dawidek , freebsd-hackers , freebsd-geom Subject: Re: booting gbde-encrypted filesystem 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: Fri, 29 Jul 2005 11:52:44 -0000 In message <20050729134548.1cc28dr8gg0k4k0g@netchild.homeip.net>, Alexander Leidinger writes: >Pawel Jakub Dawidek wrote: > >> This is not not possible with current GBDE. >> I've patches which allows this here: >> >> http://people.freebsd.org/~pjd/patches/gbde.patch > >I fail to see how this allows an encryted root-FS, it doesn't add gbde >support to boot0(ext) or to the loader. It needs access to an unencrypted >kernel. I don't think this is what Ronnel had in mind (overlooking the fact >that his suggestion to save the passphrase in the loader is insecure). There is a difference between loading the kernel from an encrypted volume (very hard!) and mounting the root filesystem from an encrypted volume (possible with pawels patch. Now of course, if your kernel has been trojaned, you're in trouble, but then again, most people just worry about their data if the machine gets stolen. -- 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 Jul 29 15:27:46 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 62DAC16A420 for ; Fri, 29 Jul 2005 15:27:46 +0000 (GMT) (envelope-from rexroof@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F2CA43D49 for ; Fri, 29 Jul 2005 15:27:45 +0000 (GMT) (envelope-from rexroof@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so642012wra for ; Fri, 29 Jul 2005 08:27:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SZf1YBdz54hyWip8GgQdd9joB7l/+oV0ukSH6Tzof2Chj5XWdsI3Emd65p0q1bKfodQo/i4abgBlrjQeR0+nMETTEX5kIOs3jFeQZPy7RegJV+GM/3pEBtM/xIw/SxM8cS3CcSSHRVnA5f40ZZ0tRes52Td8g9KoktFf3qxVS48= Received: by 10.54.47.69 with SMTP id u69mr1375407wru; Fri, 29 Jul 2005 08:27:44 -0700 (PDT) Received: by 10.54.63.7 with HTTP; Fri, 29 Jul 2005 08:27:44 -0700 (PDT) Message-ID: <6afb69aa05072908274b317a86@mail.gmail.com> Date: Fri, 29 Jul 2005 11:27:44 -0400 From: Rex Roof To: freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: errors with gstripe of gmirror configuration X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rex Roof List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 15:27:46 -0000 these are the errors I've been getting: ad16: FAILURE - out of memory in start ad12: FAILURE - out of memory in start ad12: FAILURE - out of memory in start ad8: FAILURE - out of memory in start ad12: FAILURE - out of memory in start ad12: FAILURE - out of memory in start ad16: FAILURE - out of memory in start ad4: FAILURE - out of memory in start ad12: FAILURE - out of memory in start ad4: FAILURE - out of memory in start ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ufs_rename: fvp =3D=3D tvp (can't happen) ad6: FAILURE - out of memory in start these disks are mostly accessed via smb and nfs. I'm running a FreeBSD 6.0-BETA1 setup that I cvsuped from RELENG_6 earlier this week. I have 6 disks, set up as three mirrors that are striped together. I saw a message on a mail list from some time back suggesting=20 options VM_KMEM_SIZE_SCALE=3D"4" options VM_KMEM_SIZE_MAX=3D"(1024*1024*1024)" options KVA_PAGES=3D512 in my kernel config, but I'm wondering if that will help. any suggestions? heres my specs: gmirror list: Geom name: mirone State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 816415530 Providers: 1. Name: mirror/mirone Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Consumers: 1. Name: ad4 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 3319422241 2. Name: ad12 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 1 Flags: DIRTY GenID: 0 SyncID: 1 ID: 4195234118 Geom name: mirtwo State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2711239662 Providers: 1. Name: mirror/mirtwo Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Consumers: 1. Name: ad6 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 1976280282 2. Name: ad14 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 1 Flags: DIRTY GenID: 0 SyncID: 1 ID: 1861548902 Geom name: mirthr State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2890376801 Providers: 1. Name: mirror/mirthr Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Consumers: 1. Name: ad8 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 3548914119 2. Name: ad16 Mediasize: 250059350016 (233G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 1 Flags: DIRTY GenID: 0 SyncID: 1 ID: 4093914448 gstripe list: Geom name: bigstripe State: UP Status: Total=3D3, Online=3D3 Type: AUTOMATIC Stripesize: 4096 ID: 2369540782 Providers: 1. Name: stripe/bigstripe Mediasize: 750178037760 (699G) Sectorsize: 512 Mode: r1w1e1 Consumers: 1. Name: mirror/mirone Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Number: 0 2. Name: mirror/mirtwo Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Number: 1 3. Name: mirror/mirthr Mediasize: 250059349504 (233G) Sectorsize: 512 Mode: r1w1e2 Number: 2 dmesg: ad4: 238475MB at ata2-master UDMA133 ad6: 238475MB at ata3-master UDMA133 ad8: 238475MB at ata4-master UDMA133 ad12: 238475MB at ata6-master UDMA133 ad14: 238475MB at ata7-master UDMA133 ad16: 238475MB at ata8-master UDMA133 ATA PseudoRAID loaded SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a em0: link state changed to UP ti0: gigabit link up GEOM_MIRROR: Device mirtwo created (id=3D2711239662). GEOM_MIRROR: Device mirtwo: provider ad6c detected. GEOM_MIRROR: Device mirthr created (id=3D2890376801). GEOM_MIRROR: Device mirthr: provider ad16 detected. GEOM_MIRROR: Device mirtwo: provider ad14 detected. GEOM_MIRROR: Device mirone created (id=3D816415530). GEOM_MIRROR: Device mirone: provider ad12 detected. GEOM_MIRROR: Device mirtwo: provider ad14 activated. GEOM_MIRROR: Device mirthr: provider ad8 detected. GEOM_MIRROR: Device mirtwo: provider ad6c activated. GEOM_MIRROR: Device mirtwo: provider mirror/mirtwo launched. GEOM_MIRROR: Cannot add disk ad6 to mirtwo (error=3D17). GEOM_MIRROR: Device mirthr: provider ad16 activated. GEOM_MIRROR: Device mirone: provider ad4 detected. GEOM_MIRROR: Device mirthr: provider ad8 activated. GEOM_MIRROR: Device mirthr: provider mirror/mirthr launched. GEOM_MIRROR: Device mirone: provider ad12 activated. GEOM_MIRROR: Device mirone: provider ad4 activated. GEOM_MIRROR: Device mirone: provider mirror/mirone launched. GEOM_STRIPE: Device bigstripe created (id=3D3447965057). GEOM_STRIPE: Disk mirror/mirone attached to bigstripe. GEOM_STRIPE: Disk mirror/mirthr attached to bigstripe. GEOM_STRIPE: Disk mirror/mirtwo attached to bigstripe. GEOM_STRIPE: Device bigstripe activated. GEOM_STRIPE: Device bigstripe already configured. GEOM_STRIPE: Disk mirror/mirone removed from bigstripe. GEOM_STRIPE: Device bigstripe removed. GEOM_STRIPE: Disk mirror/mirtwo removed from bigstripe. GEOM_STRIPE: Disk mirror/mirthr removed from bigstripe. GEOM_STRIPE: Device bigstripe destroyed. GEOM_STRIPE: Device bigstripe created (id=3D2369540782). GEOM_STRIPE: Disk mirror/mirone attached to bigstripe. GEOM_STRIPE: Disk mirror/mirtwo attached to bigstripe. GEOM_STRIPE: Disk mirror/mirthr attached to bigstripe. GEOM_STRIPE: Device bigstripe activated.