From owner-freebsd-questions@FreeBSD.ORG Sun Dec 6 18:52:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58103106568D for ; Sun, 6 Dec 2009 18:52:16 +0000 (UTC) (envelope-from s4mmael@gmail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id D8D548FC1F for ; Sun, 6 Dec 2009 18:52:15 +0000 (UTC) Received: by fxm2 with SMTP id 2so1437435fxm.13 for ; Sun, 06 Dec 2009 10:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=qUD8LSJBNCv21bwMjuASFXx+a9Dbu6PuCpJ1/aARaPM=; b=i3hu+4exI3PzrNVPIbMXuPFTrc2nOvclrKxmHms9tPc5AOFxLi46E66J9Pe36yYlBu OM0fw6VIUht7Yyo3ot0+795GOBlw3RyDMNTytZxc5NzAWK8ZSW79nw60l7aPlNSGXPBY IbRku3QgUTLQVBVpK9nGmYJTnqFM9IIRP57M4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=cART6YhW2t97fUhWWAQAFpPDITJSvaHSNWTdom1TlVcYfehsvEy2YO1vyqBVXRxncW OWNmVSOKvn30Snon7+s61Mw4SSVCy2OuhP1JpswRyRPv8CB735nxmD8qZ8ealAaU2U3E tlTEZa9OAu9EbnduUY24bp96EMlflUYmeMNc8= MIME-Version: 1.0 Received: by 10.223.54.23 with SMTP id o23mr900079fag.72.1260125534413; Sun, 06 Dec 2009 10:52:14 -0800 (PST) In-Reply-To: <6e38aed80912061051n752b5631jc78562bcc650e1f8@mail.gmail.com> References: <6e38aed80911260532y732a43d4i9386bb09eee5fa8@mail.gmail.com> <592586.49174.qm@web24809.mail.ird.yahoo.com> <6e38aed80911270101q187e9190ycde0529b8235b124@mail.gmail.com> <6e38aed80912061051n752b5631jc78562bcc650e1f8@mail.gmail.com> Date: Sun, 6 Dec 2009 18:52:14 +0000 Message-ID: <6e38aed80912061052w32b0f251ue48c16569dc12e32@mail.gmail.com> From: S4mmael To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re : freebsd-update with MYKERNEL kernel configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2009 18:52:16 -0000 Hi again! During FreeBSD 7.1 installation, I made some changes to my BSD partitions. I didn't touch ad0s1h (/home), so there is still my data. Installation went good, but I see "disk boot failure..." error message when trying to boot OS. Using Fixit liveCD I see: #fdisk /dev/ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=3D119705 heads=3D16 sectors/track=3D255 (4080 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D119705 heads=3D16 sectors/track=3D255 (4080 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) =A0 =A0start 63, size 209729457 (102406 Meg), flag 80 (active) =A0 =A0 =A0 =A0beg: cyl 0/ head 1/ sector 1; =A0 =A0 =A0 =A0end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) =A0 =A0start 209729520, size 10508400 (5131 Meg), flag 0 =A0 =A0 =A0 =A0beg: cyl 1023/ head 255/ sector 63; =A0 =A0 =A0 =A0end: cyl 1023/ head 15/ sector 63 The data for partition 3 is: sysid 15 (0x0f),(Extended DOS (LBA)) =A0 =A0start 220237920, size 268153200 (130934 Meg), flag 0 =A0 =A0 =A0 =A0beg: cyl 1023/ head 255/ sector 63; =A0 =A0 =A0 =A0end: cyl 1023/ head 15/ sector 63 The data for partition 4 is: #bsdlabel /dev/ad0s1 # /dev/ad0s1: 8 partitions: # =A0 =A0 =A0 =A0size =A0 offset =A0 =A0fstype =A0 [fsize bsize bps/cpg] =A0a: =A01048576 =A0 =A0 =A0 63 =A0 =A04.2BSD =A0 =A0 1024 =A08192 46248 =A0b: =A02097152 =A01048639 =A0 =A0 =A0swap =A0c: 209729457 =A0 =A0 =A0 63 =A0 =A0unused =A0 =A0 =A0 =A00 =A0 =A0 0 =A0= =A0 =A0 =A0 # "raw" part, don't edit =A0d: =A01048576 =A03145791 =A0 =A04.2BSD =A0 =A0 1024 =A08192 46248 =A0e: 20230144 =A04194367 =A0 =A04.2BSD =A0 =A0 1024 =A08192 46248 =A0f: =A02097152 24424511 =A0 =A04.2BSD =A0 =A0 =A0512 =A04096 22424 =A0g: =A04194304 26521663 =A0 =A04.2BSD =A0 =A0 8192 65536 =A0 =A0 8 =A0h: 179013553 30715967 =A0 =A04.2BSD =A0 =A0 =A0 =A00 =A0 =A0 0 =A0 =A0 0 partition c: partition extends past end of unit bsdlabel: partition c doesn't start at 0! bsdlabel: An incorrect partition c may cause problems for standard system utilities partition h: partition extends past end of unit So, slice ad0s1 is active, partitions can be mounted and viewed, all seems = OK. boot0cfg -B /dev/ad0 and fdisk -B /dev/ad0 doesn't solve the problem. What did I mess? What does the last strings of bsdlabel output mean? How do I manage this? Thank's in advance for any advice. 2009/11/27 S4mmael : > Thank you. > > 2009/11/26 Alexandre L. : >> Hi, >> >> I paste this link where Colin Percival explain who to use the tool freeb= sd-update with custom kernel. But I think that same thing as been written i= n the handbook. >> http://forums.freebsd.org/showpost.php?p=3D30920&postcount=3D9 >> >> --- En date de=A0: Jeu 26.11.09, S4mmael a =E9crit= =A0: >> >>> De: S4mmael >>> Objet: freebsd-update with MYKERNEL kernel configuration >>> =C0: freebsd-questions@freebsd.org >>> Date: Jeudi 26 Novembre 2009, 13h32 >>> Hi all! >>> >>> I've got a problem while upgrading FreeBSD 7.2-RELEASE-p3 >>> -> FreeBSD >>> 8.0-RELESE with freebsd-update(8). >>> >>> First of all I made a copy of the most configuration files. >>> Then I made: >>> # freebsd-update -r 8.0-RELEASE upgrade >>> All went good, except the message, that because of MYKERNEL >>> kernel >>> configuration I should upgrade my kernel before >>> "freebsd-upgrade >>> install". Then I was looking for the way of kernel upgrade, >>> but found >>> nothing. How could I build 8.0 kernel in FreeBSD 7.2? Of >>> course, there >>> were 7.2 sources in /usr/src and I didn't find any sources >>> in >>> /var/db/freebsd-update/. It's the first my question. >>> >>> Thus I decided to upgrade all except the kernel and then >>> rebuild the >>> kernel (that worked good while upgrading 7.1 -> 7.2). I >>> made as >>> mentioned in hanbook: >>> # freebsd-upgrade install >>> # shutdown -r now >>> # freebsd-upgrade install >>> There were many errors "bad sistem call" on th last >>> command. After all >>> I discovered that much files from / were lost (I didn't >>> find any grep, >>> bzcat and so on). On boot kernel can't find fsck_ufs, so >>> automatic >>> mounting fails. If mounted by hand, there is no way to >>> login because >>> of some init error. Single user mode works. "freebsd-update >>> roolback" >>> can't find any backup. Shell scripts can't find "test" (it >>> really >>> doesn't exists in /bin/[ ) and fails. >>> >>> How can I restore the system? I've FreeBSD 7.1 CD. >>> >>> Thank's in advance for your help. >>> _______________________________________________ >>> freebsd-questions@freebsd.org >>> mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd= .org" >>> >> >> >> >> >