Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 2009 18:52:14 +0000
From:      S4mmael <s4mmael@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re : freebsd-update with MYKERNEL kernel configuration
Message-ID:  <6e38aed80912061052w32b0f251ue48c16569dc12e32@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
<UNUSED>

#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 <s4mmael@gmail.com>:
> Thank you.
>
> 2009/11/26 Alexandre L. <axelbsd@ymail.com>:
>> 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 <s4mmael@gmail.com> a =E9crit=
=A0:
>>
>>> De: S4mmael <s4mmael@gmail.com>
>>> 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"
>>>
>>
>>
>>
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e38aed80912061052w32b0f251ue48c16569dc12e32>