From owner-freebsd-geom@FreeBSD.ORG Sun Aug 22 12:35:21 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 D48BF16A4CE for ; Sun, 22 Aug 2004 12:35:21 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id CA8A143D2F for ; Sun, 22 Aug 2004 12:35:20 +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; 22 Aug 2004 12:35:16 -0000 Date: Sun, 22 Aug 2004 14:47:45 +0200 From: DOT To: DOT Message-Id: <20040822144745.2d1a00a8.dot@data.pl> In-Reply-To: <20040818132658.3d8805ad.dot@data.pl> References: <20040816203143.21c95a45.dot@data.pl> <20040817211821.GD33859@afields.ca> <20040818132658.3d8805ad.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 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: Sun, 22 Aug 2004 12:35:22 -0000 God damn, it happen's again.. Hi, this time my passphrase works for few days, only few days. And I didn't use any software that could cause this. I'm sure that it's not accident, probably I'm doing something wrong so please point me where it is, because restoring data again has no sense unless the problem is solved. Durning installation of FreeBSD I've created 4 partitions: ad0s1 for Windows, ad0s2 for Freebsd, ad0s3 for my encrypted home directory and ad0s4 for future purposes. Didn't label ad0s3. Then I've initialized encrypted partition (gbde init /dev/ad0s3 -i -L /etc/gbde/ad0s3.lock) with one key, sector size 2048, filled with random data. New file system (newfs -U /dev/ad0s3.bde) and my small script in /usr/local/etc/rc.d/ for automate attaching and mounting of home directory: ---------- #!/bin/sh device="/dev/ad0s3" lockfile="/etc/gbde/ad0s3.lock" mountpoint="/usr/home/PRIVATE" ir="dot" case "$1" in start) echo "GBDE for ${device}" /sbin/gbde attach ${device} -l ${lockfile} if [ -c ${device}.bde ]; then if [ ! -d ${mountpoint}/${ir} ]; then fsck -p -t ffs ${device}.bde mount ${device}.bde ${mountpoint} && \ echo "${mountpoint} mounted" && \ pw unlock ${ir} else pw unlock ${ir} fi else pw lock ${ir} fi ;; stop) if [ -c ${device}.bde ]; then if [ -d ${mountpoint}/${ir} ]; then umount ${mountpoint} && \ echo "unmounted" fi gbde detach ${device} && \ echo "detached" fi pw lock ${ir} ;; *) echo "$0 start|stop" ;; esac ---------- After restoring data I could get back to work, and it works fine in everyday use for some time. And suddenly, without any signs of disaster, I can't attach ad0s3 anymore. Lockfile is untouched, system boot like always, passphrase is correct. There is fdisk output: ---------- ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 63, size 11261502 (5498 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 700/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 11261565, size 30716280 (14998 Meg), flag 80 (active) beg: cyl 701/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 41977845, size 34089930 (16645 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: ---------- Unfortunately I can't tell if something change here. If You have ANY idea what could cause my problems, or how to check this out, please share with me. Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Tue Aug 24 19:49: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 7743B16A4CE for ; Tue, 24 Aug 2004 19:49:06 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 6012243D49 for ; Tue, 24 Aug 2004 19:49:05 +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; 24 Aug 2004 19:48:59 -0000 Date: Tue, 24 Aug 2004 22:01:35 +0200 From: DOT To: freebsd-geom@freebsd.org Message-Id: <20040824220135.3fc524ff.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: write to device not permitted 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, 24 Aug 2004 19:49:06 -0000 Hello again, For now I've decided to leave my piteous ad0s3 as it is, and try to create "temporary" home directory on other partition. Encrypted ofcourse. I've created and labeled it from sysinstall (installation CD). When I try to initialize ad0s4d with flushing and sector size 2048 I get exactly this error message: gbde: write to $device_name: Operation not permitted What can I do to avoid/fix this? Thanks, Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Wed Aug 25 06:25:59 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 577DD16A4CE for ; Wed, 25 Aug 2004 06:25:59 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BC7143D4C for ; Wed, 25 Aug 2004 06:25:59 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id B9636ACAE3; Wed, 25 Aug 2004 08:25:56 +0200 (CEST) Date: Wed, 25 Aug 2004 08:25:56 +0200 From: Pawel Jakub Dawidek To: DOT Message-ID: <20040825062556.GF30151@darkness.comp.waw.pl> References: <20040824220135.3fc524ff.dot@data.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YvpLBQJFkgiI+gkH" Content-Disposition: inline In-Reply-To: <20040824220135.3fc524ff.dot@data.pl> 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@freebsd.org Subject: Re: write to device not permitted 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, 25 Aug 2004 06:25:59 -0000 --YvpLBQJFkgiI+gkH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 24, 2004 at 10:01:35PM +0200, DOT wrote: +> Hello again, +>=20 +> For now I've decided to leave my piteous ad0s3 as it is, and try to +> create "temporary" home directory on other partition. Encrypted +> ofcourse. I've created and labeled it from sysinstall (installation CD). +>=20 +> When I try to initialize ad0s4d with flushing and sector size 2048 I get +> exactly this error message: +> gbde: write to $device_name: Operation not permitted +>=20 +> What can I do to avoid/fix this? Are you sure that sysinstall didn't mount it for you? --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --YvpLBQJFkgiI+gkH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBLDD0ForvXbEpPzQRAsUeAJ9xnCyTSkJgFesMawRTACk+9MXyHwCgwTVx fQOFbqcO52lgNXaPuZ32zZw= =ZXC6 -----END PGP SIGNATURE----- --YvpLBQJFkgiI+gkH-- From owner-freebsd-geom@FreeBSD.ORG Wed Aug 25 14:56: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 5885C16A4CE for ; Wed, 25 Aug 2004 14:56:48 +0000 (GMT) Received: from v00058.home.net.pl (data.pl [212.85.96.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 606C443D45 for ; Wed, 25 Aug 2004 14:56:47 +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; 25 Aug 2004 14:56:43 -0000 Date: Wed, 25 Aug 2004 17:09:22 +0200 From: DOT To: Pawel Jakub Dawidek Message-Id: <20040825170922.04c0ed9d.dot@data.pl> In-Reply-To: <20040825062556.GF30151@darkness.comp.waw.pl> References: <20040824220135.3fc524ff.dot@data.pl> <20040825062556.GF30151@darkness.comp.waw.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 cc: freebsd-geom@freebsd.org Subject: Re: write to device not permitted 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, 25 Aug 2004 14:56:48 -0000 On Wed, 25 Aug 2004 08:25:56 +0200 Pawel Jakub Dawidek wrote: > +> gbde: write to $device_name: Operation not permitted > +> > +> What can I do to avoid/fix this? > > Are you sure that sysinstall didn't mount it for you? Hmm I'am sure that during initialization ad0s4d isn't mounted. However, I can't tell that wasn't mounted never before, if it's what You are asking about. Above mentioned error message occurs when flushing is enabled. If I try without it, I get other (after pass-phrase confirmation): gbde: write: Input/output error Michal Bartkowiak From owner-freebsd-geom@FreeBSD.ORG Fri Aug 27 11:19:00 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 6F48816A4CE for ; Fri, 27 Aug 2004 11:19:00 +0000 (GMT) Received: from freebee.digiware.nl (dsl390.iae.nl [212.61.63.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6328343D5D for ; Fri, 27 Aug 2004 11:18:59 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual [212.61.27.71]) by freebee.digiware.nl (8.12.10/8.12.10) with ESMTP id i7RBIwEg090347 for ; Fri, 27 Aug 2004 13:18:58 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <412F18A5.9070708@withagen.nl> Date: Fri, 27 Aug 2004 13:19:01 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: gmirror.8 manpage 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, 27 Aug 2004 11:19:00 -0000 Supposedly it does/did exist: [~] root@opteron> locate gmirror /home2/src/sbin/geom/class/mirror/gmirror.8 /usr/obj/home2/src/sbin/geom/class/mirror/gmirror.8.gz But since I changed back to 5.3B1 it could have been deleted 'cause it is not in the release??? Any smart suggestions or hints to setup mirrors for all but / ?? --WjW