From owner-freebsd-geom@FreeBSD.ORG Sun Nov 13 10:59:20 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 012E916A41F; Sun, 13 Nov 2005 10:59:20 +0000 (GMT) (envelope-from alexl@alkar.net) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 196BB43D45; Sun, 13 Nov 2005 10:59:18 +0000 (GMT) (envelope-from alexl@alkar.net) X-Spam-Level: 2 [X] Received: from [127.0.0.1] (HELO cmail.optima.ua) by cmail.optima.ua (CommuniGate Pro SMTP 4.3.6) with ESMTPS id 10747671; Sun, 13 Nov 2005 12:59:16 +0200 Received: (from alexl@localhost) by cmail.optima.ua (8.13.3/8.13.1/Submit) id jADAxFbv094108; Sun, 13 Nov 2005 12:59:15 +0200 (EET) (envelope-from alexl@alkar.net) X-Authentication-Warning: cmail.optima.ua: alexl set sender to alexl@alkar.net using -f Date: Sun, 13 Nov 2005 12:59:15 +0200 From: Alexey Luckyanchikov To: freebsd-geom@freebsd.org, pjd@freebsd.org Message-ID: <20051113105915.GC13743@alkar.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: ISP Alkar Teleport Cc: Subject: GELI doesn't ask passphrase on boot 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: Sun, 13 Nov 2005 10:59:20 -0000 Hi. I want GELI to ask password on boot as described in GELI(8): -b Ask for the passphrase on boot, before the root parti- tion is mounted. This makes it possible to use an encrypted root partition. One will still need bootable unencrypted storage with a /boot/ directory, which can be a CD-ROM disc or USB pen-drive, that can be removed after boot. But on boot GELI doesn't ask passphrase and doesn't create provider. FreeBSD version is 6.0-RELEASE, provider was initialized with: geli init -b -v -l 256 -s 2048 /dev/ad1s1a /boot/loader.conf contain: geom_eli_load="YES" kern.geom.eli.debug="255" kern.geom.debugflags="1" After boot "dmesg -a | fgrep -i eli" show: GEOM_ELI[1]: Start tasting. g_modevent(ELI, LOAD) g_load_class(ELI) g_eli_taste(ELI, ad0) GEOM_ELI[3]: Tasting ad0. g_destroy_geom(0xc1257300(eli:taste)) g_eli_taste(ELI, ad0s1) GEOM_ELI[3]: Tasting ad0s1. g_destroy_geom(0xc1256e80(eli:taste)) GEOM_ELI[1]: Tasting no more. g_eli_taste(ELI, ad0s1a) g_eli_taste(ELI, ad0s1b) g_eli_taste(ELI, ad0s1c) g_eli_taste(ELI, ad1) g_eli_taste(ELI, ad1s1) g_eli_taste(ELI, ad1s1a) g_eli_taste(ELI, ad1s1c) g_eli_taste(ELI, ad0s1a) It seems that problem is in g_eli.c, line 1092: SYSINIT(geli_boot_end, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, g_eli_on_boot_end, NULL) geli_boot_end() called before GELI finish tasting. -- Sincerely, Alexey Luckyanchikov From owner-freebsd-geom@FreeBSD.ORG Sun Nov 13 12:57:30 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 717CA16A420 for ; Sun, 13 Nov 2005 12:57:30 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0A2143D46 for ; Sun, 13 Nov 2005 12:57:27 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B4AE952D59; Sun, 13 Nov 2005 13:57:25 +0100 (CET) Received: from localhost (dlf5.neoplus.adsl.tpnet.pl [83.24.35.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A027152D57; Sun, 13 Nov 2005 13:57:20 +0100 (CET) Date: Sun, 13 Nov 2005 13:56:57 +0100 From: Pawel Jakub Dawidek To: Alexey Luckyanchikov Message-ID: <20051113125657.GE34696@garage.freebsd.pl> References: <20051113105915.GC13743@alkar.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xJK8B5Wah2CMJs8h" Content-Disposition: inline In-Reply-To: <20051113105915.GC13743@alkar.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: GELI doesn't ask passphrase on boot 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: Sun, 13 Nov 2005 12:57:30 -0000 --xJK8B5Wah2CMJs8h Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 13, 2005 at 12:59:15PM +0200, Alexey Luckyanchikov wrote: +> Hi. +>=20 +> I want GELI to ask password on boot as described in GELI(8): +> -b Ask for the passphrase on boot, before the root parti- +> tion is mounted. This makes it possible to use an +> encrypted root partition. One will still need bootable +> unencrypted storage with a /boot/ directory, which can +> be a CD-ROM disc or USB pen-drive, that can be removed +> after boot. +> But on boot GELI doesn't ask passphrase and doesn't create provider. +>=20 +> FreeBSD version is 6.0-RELEASE, provider was initialized with: +> geli init -b -v -l 256 -s 2048 /dev/ad1s1a +>=20 +> /boot/loader.conf contain: +> geom_eli_load=3D"YES" +> kern.geom.eli.debug=3D"255" +> kern.geom.debugflags=3D"1" +>=20 +> After boot "dmesg -a | fgrep -i eli" show: +> GEOM_ELI[1]: Start tasting. +> g_modevent(ELI, LOAD) +> g_load_class(ELI) +> g_eli_taste(ELI, ad0) +> GEOM_ELI[3]: Tasting ad0. +> g_destroy_geom(0xc1257300(eli:taste)) +> g_eli_taste(ELI, ad0s1) +> GEOM_ELI[3]: Tasting ad0s1. +> g_destroy_geom(0xc1256e80(eli:taste)) +> GEOM_ELI[1]: Tasting no more. +> g_eli_taste(ELI, ad0s1a) +> g_eli_taste(ELI, ad0s1b) +> g_eli_taste(ELI, ad0s1c) +> g_eli_taste(ELI, ad1) +> g_eli_taste(ELI, ad1s1) +> g_eli_taste(ELI, ad1s1a) +> g_eli_taste(ELI, ad1s1c) +> g_eli_taste(ELI, ad0s1a) +>=20 +> It seems that problem is in g_eli.c, line 1092: +> SYSINIT(geli_boot_end, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, g_eli_on_boot= _end, NULL) +> geli_boot_end() called before GELI finish tasting. Use this feature only for encrypting root file system. In case of other file systems, check out /etc/defaults/rc.conf for examples of geli configuration on boot. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --xJK8B5Wah2CMJs8h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDdzgZForvXbEpPzQRAnHuAJ9QRYqPF6rOKG0z9chan05fE9qa8wCfezDY eEZNr2fePW7SEHo/SBQn4nc= =RM/g -----END PGP SIGNATURE----- --xJK8B5Wah2CMJs8h-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 14 09:19:13 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 6B3F116A41F; Mon, 14 Nov 2005 09:19:13 +0000 (GMT) (envelope-from simon@eddie.nitro.dk) Received: from eddie.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6D6C43D45; Mon, 14 Nov 2005 09:19:12 +0000 (GMT) (envelope-from simon@eddie.nitro.dk) Received: by eddie.nitro.dk (Postfix, from userid 1000) id 9EE27119C50; Mon, 14 Nov 2005 10:19:11 +0100 (CET) Date: Mon, 14 Nov 2005 10:19:11 +0100 From: "Simon L. Nielsen" To: Dario Freni Message-ID: <20051114091911.GD64196@eddie.nitro.dk> References: <20051027200448.1ba236fe.cpressey@catseye.mine.nu> <43753528.7030802@freesbie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline In-Reply-To: <43753528.7030802@freesbie.org> User-Agent: Mutt/1.5.11 Cc: Chris Pressey , geom@freebsd.org, current@freebsd.org Subject: Re: fdisk(8) no longer capable of altering geometry 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, 14 Nov 2005 09:19:13 -0000 --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2005.11.12 01:19:52 +0100, Dario Freni wrote: > My little follow-up to this issue. This bug is quite critical on=20 > products using bsdinstaller such as FreeSBIE or pfSense. I heard rumours= =20 > that PC-BSD also encounter this problem and had to workaround it by=20 > sysinstall. >=20 > Can somebody please take a look at it? Just curious... why do you need to alter the geometry? I never once had a problem just ignoring the fact that fdisk/sysinstall warned about geometry... > Chris Pressey wrote: > >[this is a follow-up to / correction of my post to geom@ a few days ago, > >to which there was no reply] > > > >Hello, > > > >It appears that fdisk(8) is no longer capable of altering the geometry > >of a disk. (By which I mean, the kernel's idea of the BIOS'es idea of > >the geometry, of course.) I'd find it reassuring to know whether or not > >anyone else is seeing the same behaviour, before I go the official route > >and file a PR. > > > >Initially I thought that this failure case was only for uninitialized > >disks, but I have tried further tests and I can't get fdisk(8) to change > >the geometry in any of the cases. These cases are: > > > >a. uninitialized, totally blank disk (dd if=3D/dev/zero of=3D/dev/ad1 ..= =2E) > >b. initialized disk with FreeBSD (or any other OS) installed on it > >c. same as b, but with its root partition mounted on /mnt > >d. the disk containing the currently booted FreeBSD system > > (mounted on /, of course) > > > >In each of these cases, I tried a sequence like the following: > > > > fdisk -BI ad1 > > fdisk -u ad1 > > > say yes, and plug in different but compatible values for cylinders, > > heads, and sectors/track> > > > > fdisk ad1 > > > > > >The behaviour I see is, in summary: > > > >a & b: fdisk issues the warning "fdisk: Geom not found" which presumably > > refers to the fact that there is no GEOM MBR provider for that > > disk. It then falls back to the legacy behaviour of raw-writing > > the partition table into sector zero of the disk. This does not, > > however, trigger an update of the kernel's idea of the geometry. > > > >c & d: no "Geom not found" warning, but no change in geometry either. > > > >I don't see this behaviour on DragonFly; cases a and b work as you would > >logically expect (as they worked in 4.x, AFAIR, but I have not yet > >tested this) where the geometry does get changed, and subsequent runs of > >fdisk report the changed geometry. > > > >In cases c & d, the behaviour is the same as FreeBSD - nothing changes.= =20 > >This is not too surprising, since the disk _is_ in use - but an error > >message would probably make more sense. > > > >This bug is one of the few remaining things standing in the way of > >porting the BSD Installer to FreeBSD. Without some way of altering the > >the geometry, it can't install onto a system whose BIOS misreports the > >disk geometry. > > > >My analysis of the problem can be found in my previous post to geom@, > >but to sum it up: I think fdisk needs to inform GEOM somehow that the > >geometry should be changed. It might need to trigger the creation of a > >GEOM MBR provider for the disk before it does so; but I'm not certain of > >any of this, since my knowledge of GEOM is slim at best. > > > >Hopefully someone more familiar with GEOM and such under -CURRENT is > >listening and can shed more light on this problem and/or provide a > >workaround and/or explain how I'm wrong and show me the right way to do > >what I'm trying to do (change geometry) in -CURRENT. > > > >Thanks for your time, --=20 Simon L. Nielsen --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDeFaOh9pcDSc1mlERApVUAKC5BlsBmQytKiE+256TVsaBrqEf7wCghcpm ZZM4yUfAPcP2ExjQ8ukaIDw= =TG5M -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ-- From owner-freebsd-geom@FreeBSD.ORG Mon Nov 14 09:36:32 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 288E516A41F; Mon, 14 Nov 2005 09:36:32 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0018243D45; Mon, 14 Nov 2005 09:36:25 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [80.68.243.98] (account rojer@rbc.ru HELO [80.68.243.98]) by hermes.hw.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 98276940; Mon, 14 Nov 2005 12:36:24 +0300 Message-ID: <43785A97.3010204@rojer.pp.ru> Date: Mon, 14 Nov 2005 12:36:23 +0300 From: Deomid Ryabkov User-Agent: Thunderbird 1.6a1 (X11/20051107) MIME-Version: 1.0 To: "Simon L. Nielsen" References: <20051027200448.1ba236fe.cpressey@catseye.mine.nu> <43753528.7030802@freesbie.org> <20051114091911.GD64196@eddie.nitro.dk> In-Reply-To: <20051114091911.GD64196@eddie.nitro.dk> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms080806030405040000090107" Cc: Chris Pressey , geom@freebsd.org, Dario Freni , current@freebsd.org Subject: Re: fdisk(8) no longer capable of altering geometry 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, 14 Nov 2005 09:36:32 -0000 This is a cryptographically signed message in MIME format. --------------ms080806030405040000090107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Simon L. Nielsen wrote: > On 2005.11.12 01:19:52 +0100, Dario Freni wrote: > >> My little follow-up to this issue. This bug is quite critical on >> products using bsdinstaller such as FreeSBIE or pfSense. I heard rumours >> that PC-BSD also encounter this problem and had to workaround it by >> sysinstall. >> >> Can somebody please take a look at it? >> > > Just curious... why do you need to alter the geometry? I never once > had a problem just ignoring the fact that fdisk/sysinstall warned > about geometry... > sysinstall warns and fixes it for you. i had to duplicate sysinstall's behavior in my home-made quick'n'dirty installer or otherwise disks larger than (some size, like 60G, i don't remember exactly) are not bootable after install. the fixup, rewritten in perl, looks like this: print "geom: cyl=$cyl, hd=$hd, sect=$sect\n"; if ($cyl > 1024 or $hd > 16 or $sect > 63) { $hd = 16; $sect = 63; $cyl = int ($size / ($hd * $sect)); if ($cyl > 1024) { $hd = 255; $cyl = int ($size / ($hd * $sect)); } print "new geom: cyl=$cyl, hd=$hd, sect=$sect\n"; @ret = ($cyl, $hd, $sect); } i don't know the exact meaning of ths, but it is indeed required to be able to boot off the disk. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms080806030405040000090107 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 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAw5jH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nov 14 11:02:25 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 05FE016A41F for ; Mon, 14 Nov 2005 11:02:25 +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 7520F43D55 for ; Mon, 14 Nov 2005 11:02:24 +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 jAEB2O0P073686 for ; Mon, 14 Nov 2005 11:02:24 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAEB2NX7073680 for freebsd-geom@freebsd.org; Mon, 14 Nov 2005 11:02:23 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Nov 2005 11:02:23 GMT Message-Id: <200511141102.jAEB2NX7073680@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, 14 Nov 2005 11:02:25 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/01/21] kern/76538 geom [gbde] nfs-write on gbde partition stalls o [2005/08/04] kern/84556 geom [geom] GBDE-encrypted swap causes panic a o [2005/10/16] kern/87544 geom [gbde] mmaping large files on a gbde file 3 problems total. 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 Mon Nov 14 13:48:55 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 251DA16A41F for ; Mon, 14 Nov 2005 13:48:55 +0000 (GMT) (envelope-from sullrich@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51F7843D46 for ; Mon, 14 Nov 2005 13:48:54 +0000 (GMT) (envelope-from sullrich@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so1106047nzk for ; Mon, 14 Nov 2005 05:48:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A9RXxyyxsgJAQRzVS5nRA0SayyknYtuFRp6VRTsyyTQ5DzYvHM2oMHcamHpj4/4cVYKMo9gwjLGBntiNJmFqU6LZ2Jor1kHpqlNFO9BFEBtm9imcmX9EB/Z0bUkOwTDQ+CyFRouHw7j+eui5EoknFAcRfrtSdmrOer7On2vH8p4= Received: by 10.65.233.6 with SMTP id k6mr5685055qbr; Mon, 14 Nov 2005 05:48:53 -0800 (PST) Received: by 10.64.184.1 with HTTP; Mon, 14 Nov 2005 05:48:53 -0800 (PST) Message-ID: Date: Mon, 14 Nov 2005 08:48:53 -0500 From: Scott Ullrich To: Deomid Ryabkov In-Reply-To: <43785A97.3010204@rojer.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051027200448.1ba236fe.cpressey@catseye.mine.nu> <43753528.7030802@freesbie.org> <20051114091911.GD64196@eddie.nitro.dk> <43785A97.3010204@rojer.pp.ru> Cc: Chris Pressey , geom@freebsd.org, Dario Freni , current@freebsd.org, "Simon L. Nielsen" Subject: Re: fdisk(8) no longer capable of altering geometry 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, 14 Nov 2005 13:48:55 -0000 We are not using sysinstall. We are in the process of porting BSD Installer which uses fdisk. On 11/14/05, Deomid Ryabkov wrote: > Simon L. Nielsen wrote: > > On 2005.11.12 01:19:52 +0100, Dario Freni wrote: > > > >> My little follow-up to this issue. This bug is quite critical on > >> products using bsdinstaller such as FreeSBIE or pfSense. I heard rumou= rs > >> that PC-BSD also encounter this problem and had to workaround it by > >> sysinstall. > >> > >> Can somebody please take a look at it? > >> > > > > Just curious... why do you need to alter the geometry? I never once > > had a problem just ignoring the fact that fdisk/sysinstall warned > > about geometry... > > > sysinstall warns and fixes it for you. i had to duplicate sysinstall's > behavior in my home-made quick'n'dirty installer > or otherwise disks larger than (some size, like 60G, i don't remember > exactly) are not bootable after install. > the fixup, rewritten in perl, looks like this: > > print "geom: cyl=3D$cyl, hd=3D$hd, sect=3D$sect\n"; > if ($cyl > 1024 or $hd > 16 or $sect > 63) { > $hd =3D 16; $sect =3D 63; > $cyl =3D int ($size / ($hd * $sect)); > if ($cyl > 1024) { > $hd =3D 255; > $cyl =3D int ($size / ($hd * $sect)); > } > print "new geom: cyl=3D$cyl, hd=3D$hd, sect=3D$sect\n"; > @ret =3D ($cyl, $hd, $sect); > } > > i don't know the exact meaning of ths, but it is indeed required to be > able to boot off the disk. > > -- > Deomid Ryabkov aka Rojer > myself@rojer.pp.ru > rojer@sysadmins.ru > ICQ: 8025844 > > > > From owner-freebsd-geom@FreeBSD.ORG Mon Nov 14 14:46:41 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 AD82816A41F; Mon, 14 Nov 2005 14:46:41 +0000 (GMT) (envelope-from alexl@alkar.net) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id C529D43D4C; Mon, 14 Nov 2005 14:46:39 +0000 (GMT) (envelope-from alexl@alkar.net) X-Spam-Level: 2 [X] Received: from [127.0.0.1] (HELO cmail.optima.ua) by cmail.optima.ua (CommuniGate Pro SMTP 4.3.6) with ESMTPS id 10772948; Mon, 14 Nov 2005 16:46:38 +0200 Received: (from alexl@localhost) by cmail.optima.ua (8.13.3/8.13.1/Submit) id jAEEkbaG002798; Mon, 14 Nov 2005 16:46:37 +0200 (EET) (envelope-from alexl@alkar.net) X-Authentication-Warning: cmail.optima.ua: alexl set sender to alexl@alkar.net using -f Date: Mon, 14 Nov 2005 16:46:37 +0200 From: Alexey Luckyanchikov To: Pawel Jakub Dawidek Message-ID: <20051114144637.GS13743@alkar.net> References: <20051113105915.GC13743@alkar.net> <20051113125657.GE34696@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20051113125657.GE34696@garage.freebsd.pl> Organization: ISP Alkar Teleport Cc: freebsd-geom@FreeBSD.org Subject: Re: GELI doesn't ask passphrase on boot 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, 14 Nov 2005 14:46:41 -0000 On Sun, 13 Nov 2005, Pawel Jakub Dawidek wrote: PJD> +> After boot "dmesg -a | fgrep -i eli" show: PJD> +> GEOM_ELI[1]: Start tasting. PJD> +> g_modevent(ELI, LOAD) PJD> +> g_load_class(ELI) PJD> +> g_eli_taste(ELI, ad0) PJD> +> GEOM_ELI[3]: Tasting ad0. PJD> +> g_destroy_geom(0xc1257300(eli:taste)) PJD> +> g_eli_taste(ELI, ad0s1) PJD> +> GEOM_ELI[3]: Tasting ad0s1. PJD> +> g_destroy_geom(0xc1256e80(eli:taste)) PJD> +> GEOM_ELI[1]: Tasting no more. PJD> +> g_eli_taste(ELI, ad0s1a) PJD> +> g_eli_taste(ELI, ad0s1b) PJD> +> g_eli_taste(ELI, ad0s1c) PJD> +> g_eli_taste(ELI, ad1) PJD> +> g_eli_taste(ELI, ad1s1) PJD> +> g_eli_taste(ELI, ad1s1a) PJD> +> g_eli_taste(ELI, ad1s1c) PJD> +> g_eli_taste(ELI, ad0s1a) PJD> +>=20 PJD> +> It seems that problem is in g_eli.c, line 1092: PJD> +> SYSINIT(geli_boot_end, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, g_eli_on= _boot_end, NULL) PJD> +> geli_boot_end() called before GELI finish tasting. PJD>=20 PJD> Use this feature only for encrypting root file system. PJD> In case of other file systems, check out /etc/defaults/rc.conf for PJD> examples of geli configuration on boot. It was just an experiment, actually I want to encrypt root partition. Let us assume that ad0 contain only unencrypted /boot and /etc/fstab with: /dev/ad1s1a.eli / ufs rw 1 1 AIUI GELI doesn't ask passphrase on boot for /dev/ad1s1a.eli. Could you explain "right way" to create encrypted root partition? --=20 Sincerely, Alexey Luckyanchikov From owner-freebsd-geom@FreeBSD.ORG Wed Nov 16 06:17:44 2005 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F61016A41F; Wed, 16 Nov 2005 06:17:44 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67E2143D46; Wed, 16 Nov 2005 06:17:43 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAG6HhX6005885; Wed, 16 Nov 2005 06:17:43 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAG6HhNu005881; Wed, 16 Nov 2005 06:17:43 GMT (envelope-from linimon) Date: Wed, 16 Nov 2005 06:17:43 GMT From: Mark Linimon Message-Id: <200511160617.jAG6HhNu005881@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/89102: [geom_vfs] panic when forced unmount FS from unplugged device 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, 16 Nov 2005 06:17:44 -0000 Synopsis: [geom_vfs] panic when forced unmount FS from unplugged device Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Wed Nov 16 06:17:26 GMT 2005 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=89102 From owner-freebsd-geom@FreeBSD.ORG Fri Nov 18 13:51: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 0547B16A41F; Fri, 18 Nov 2005 13:51:48 +0000 (GMT) (envelope-from BrettFriedmancheckmate@mnmailhost.bridge.com) Received: from bb220-255-47-217.singnet.com.sg (bb220-255-47-217.singnet.com.sg [220.255.47.217]) by mx1.FreeBSD.org (Postfix) with SMTP id 6CAB543D49; Fri, 18 Nov 2005 13:51:41 +0000 (GMT) (envelope-from BrettFriedmancheckmate@mnmailhost.bridge.com) Received: (qmail 431 invoked from network); Fri, 18 Nov 2005 07:44:45 -0600 Received: from unknown (HELO there) (127.0.0.1) by amazon.minihub.org with SMTP; Fri, 18 Nov 2005 07:47:45 -0600 Content-Type: text/plain; Message-Id: <7.1.2.7.2.2005579.00b0a40@designs.com> Date: Fri, 18 Nov 2005 06:48:45 -0700 From: "Javier Strickland" To: owner-freebsd-ia64@freebsd.org, linimon@freebsd.org, freebsd-chat-owner@freebsd.org, owner-freebsd-geom@freebsd.org, mike@freebsd.org, pdeuskar@freebsd.org, babb@freebsd.org, freebsd-geom@freebsd.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Cc: Subject: please your woman Araceli 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, 18 Nov 2005 13:51:48 -0000 ED Drugs proudly presents New christmas prices: Viagra $1.56 Cialis $3.00 Levitra $2.78 Viagra SOFT $1.89 NEW! Cialis SOFT $3.33 NEW! Visit us here: http://stamenea2kkkk7jn116ww71eep1www.thymeticlg.com/ dais you tomograph me, accord douglass . paragon you italy me, willful cacophonist repressive during . bluebonnet you hieratic me, widowhood . classy you keg me, amanita . zounds you provocateur me, checksum authenticate banal operant . horizon you cannot me, chess corrigible deception woods . http://stamenea2kkkk7jn116ww71eep1www.thymeticlg.com/eyesight