freebsd-update with MYKERNEL kernel configuration

S4mmael s4mmael at gmail.com
Sun Dec 6 18:52:16 UTC 2009


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=119705 heads=16 sectors/track=255 (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=119705 heads=16 sectors/track=255 (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)
   start 63, size 209729457 (102406 Meg), flag 80 (active)
       beg: cyl 0/ head 1/ sector 1;
       end: 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)
   start 209729520, size 10508400 (5131 Meg), flag 0
       beg: cyl 1023/ head 255/ sector 63;
       end: cyl 1023/ head 15/ sector 63
The data for partition 3 is:
sysid 15 (0x0f),(Extended DOS (LBA))
   start 220237920, size 268153200 (130934 Meg), flag 0
       beg: cyl 1023/ head 255/ sector 63;
       end: cyl 1023/ head 15/ sector 63
The data for partition 4 is:
<UNUSED>

#bsdlabel /dev/ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
 a:  1048576       63    4.2BSD     1024  8192 46248
 b:  2097152  1048639      swap
 c: 209729457       63    unused        0     0         # "raw" part,
don't edit
 d:  1048576  3145791    4.2BSD     1024  8192 46248
 e: 20230144  4194367    4.2BSD     1024  8192 46248
 f:  2097152 24424511    4.2BSD      512  4096 22424
 g:  4194304 26521663    4.2BSD     8192 65536     8
 h: 179013553 30715967    4.2BSD        0     0     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 at gmail.com>:
> Thank you.
>
> 2009/11/26 Alexandre L. <axelbsd at ymail.com>:
>> Hi,
>>
>> I paste this link where Colin Percival explain who to use the tool freebsd-update with custom kernel. But I think that same thing as been written in the handbook.
>> http://forums.freebsd.org/showpost.php?p=30920&postcount=9
>>
>> --- En date de : Jeu 26.11.09, S4mmael <s4mmael at gmail.com> a écrit :
>>
>>> De: S4mmael <s4mmael at gmail.com>
>>> Objet: freebsd-update with MYKERNEL kernel configuration
>>> À: freebsd-questions at 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 at freebsd.org
>>> mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>>
>>
>>
>>
>>
>


More information about the freebsd-questions mailing list