Re : freebsd-update with MYKERNEL kernel configuration

2009-12-06 Thread S4mmael
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 s4mm...@gmail.com:
 Thank you.

 2009/11/26 Alexandre L. axel...@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=30920postcount=9

 --- En date de : Jeu 26.11.09, S4mmael s4mm...@gmail.com a écrit :

 De: S4mmael s4mm...@gmail.com
 Objet: freebsd-update with MYKERNEL kernel configuration
 À: 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-unsubscr...@freebsd.org






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


freebsd-update with MYKERNEL kernel configuration

2009-11-26 Thread S4mmael
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-unsubscr...@freebsd.org


Re: freebsd-update with MYKERNEL kernel configuration

2009-11-26 Thread Pieter de Goeje
On Thursday 26 November 2009 14:32:01 S4mmael wrote:
 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. 

That message should probably be more strongly worded. It is absolutely 
*imperative* that the custom kernel is upgraded before continuing with 
freebsd-upgrade install.

For more information about how to upgrade to freebsd 8 see
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading-
freebsdupdate.html

 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.

Use csup(1) to upgrade the sources to RELENG_8_0.

 
 Thus I decided to upgrade all except the kernel and then rebuild the
 kernel (that worked good while upgrading 7.1 - 7.2). 

As you found out, you should never do that. Always make sure the kernel is the 
same or newer as world (userland) especially when upgrading to a new major 
version.

 I made as
 mentioned in hanbook:
 # freebsd-upgrade install
 # shutdown -r now
 # freebsd-upgrade install

At this point most userland utilities (because they all use libc.so) depend on 
features only available in the 8.0 kernel, while the installed kernel is still 
at 7.1. Essentially the system is bricked.

 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.

You can try reinstalling 7.1 taking care not to repartition the HDD. If all 
went well the system runs a GENERIC kernel, which is upgradeable by freebsd-
upgrade. You can then retry the upgrade process. This process (the reinstall 
from cdrom) will revert any changes to /etc, so you will need to restore that 
from backup. Perhaps others know a better/easier way.

 
 Thank's in advance for your help.

Good luck!

-- 
Pieter de Goeje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re : freebsd-update with MYKERNEL kernel configuration

2009-11-26 Thread Alexandre L.
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=30920postcount=9

--- En date de : Jeu 26.11.09, S4mmael s4mm...@gmail.com a écrit :

 De: S4mmael s4mm...@gmail.com
 Objet: freebsd-update with MYKERNEL kernel configuration
 À: 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-unsubscr...@freebsd.org
 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org