From owner-freebsd-current@FreeBSD.ORG Thu Oct 21 19:56:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61F1B16A4CE; Thu, 21 Oct 2004 19:56:30 +0000 (GMT) Received: from 168.18.broadband2.iol.cz (27.240.broadband2.iol.cz [83.208.240.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C015E43D5A; Thu, 21 Oct 2004 19:56:28 +0000 (GMT) (envelope-from bln@deprese.net) Received: from pretender.home ([172.16.1.2]) by 168.18.broadband2.iol.cz with asmtp (Exim 4.41) id 1CKj2w-0000bx-R0; Thu, 21 Oct 2004 21:56:26 +0200 Message-ID: <41781473.2040804@deprese.net> Date: Thu, 21 Oct 2004 21:56:35 +0200 From: Ondra Holecek User-Agent: Mozilla Thunderbird 0.8 (X11/20041014) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Allan Fields References: <4173A649.9000208@deprese.net> <20041020183001.GA74820@afields.ca> <41777BCC.4000100@deprese.net> <20041021132944.GE74820@afields.ca> In-Reply-To: <20041021132944.GE74820@afields.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: GBDE, problems using gbde_swap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 19:56:30 -0000 Allan Fields wrote: >On Thu, Oct 21, 2004 at 11:05:16AM +0200, Ondra Holecek wrote: > > >>Allan Fields wrote: >> >> >>>On Mon, Oct 18, 2004 at 01:17:29PM +0200, Ondra Holecek wrote: >>> >>> >>>>hello, >>>> >>>>I wanted to use encrypted swap (gbde_swap in /etc/rc.d) on 5.3-BETA7, >>>>but after second reboot, the system did not boot - it finised with boot >>>>manager (F1 - FreeBSD). >>>> >>>>I wrote problem report where you can read details: >>>> >>>>http://www.freebsd.org/cgi/query-pr.cgi?pr=72812 >>>> >>>> >>>> >>>>>Category: kern >>>>>Responsible: freebsd-bugs >>>>>Synopsis: GBDE, problems using gbde_swap >>>>>Arrival-Date: Mon Oct 18 11:00:44 GMT 2004 >>>>> >>>>> >>>Can you follow up the PR with more details such as output >>>of: >>>fdisk /dev/ad0 >>> >>> >>> >>******* Working on device /dev/ad0 ******* >>parameters extracted from in-core disklabel are: >>cylinders=38760 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=38760 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) >> start 63, size 39070017 (19077 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 1023/ head 15/ sector 63 >> >> >> >>>disklabel /dev/ad0s1 >>> >>> >> >># /dev/ad0s1: >>8 partitions: >># size offset fstype [fsize bsize bps/cpg] >> a: 2097152 1048576 4.2BSD 2048 16384 28552 >> b: 1048576 0 swap >> c: 39070017 0 unused 0 0 # "raw" part, >>don't edit >> d: 4194304 3145728 4.2BSD 2048 16384 28552 >> e: 31729985 7340032 4.2BSD 2048 16384 28552 >> >> >> >>>You can boot from the install or live CD and run a fixit shell and >>> >>> >>>from there should be able to get this info. >> >>Now I have it repaired (i have to work on this machine), but i saved >>fdisk and disklabel output before "reparing" (tar -cpf; newfs >>/dev/ad0s1a; tar -xpf) >> >> >> >>>Also try reinstalling the boot blocks using: >>>mount /dev/ad0s1 /mnt >>>boot0cfg -Bv -b /mnt/boot/boot0 ad0 >>> >>> >>> >>This didn't help, i had to do newfs on root (a) partition >> >> > >After the boot0cfg, or anyway, after using only gbde swap? > > > I booted from livecd, chroot to my fs on harddisk, did boot0cfg -Bv, reboot, didn't help, same as before. Then booted from livecd again, tar-ed rootfs, newfs, un-tar-ed, reboot, ok - normal boot >>>If it boots fine, then it is possibly an issue with corrupted >>>boot blocks. >>> >>> > >But it does fix the boot problem when they are resinstalled? > > >