Re: /bin/sh terminated abnormally

2003-10-04 Thread Szilveszter Adam
On Sat, Oct 04, 2003 at 09:19:45PM -0700, Mike Hunter wrote:
>
> > when I boot into the FreeBSD 5.1 I am getting this error message :
> > WARNING: Userland calling deprecated sysctl, please rebuild world.
> > 
> > I tried to world rebuild the  but I can't  It's failing at
> > /usr/src/gnu/usr.bin/gperf
> > 
> > I re-cvsuped the src this time I can't buildworld
> > 
> > Stop in /usr/src/include/sys/_type.h : 80
> > 
> > i dont know what to do now
> 
> I'm cc'ing current because I'm not sure what the best thing to do is at
> this point.  You could try rm -rf'ing /usr/srclil help?

No need to do that. You have done the following:

buildworld on old system. Worked.
buildkernel on old system. Worked.
installkernel on old system. Worked, but now your kernel is not in sync
with your userland any more.
reboot with new kernel (with manual intervention). Seems it worked. But
now you need to make installworld, to get back in sync. (from single
user mode, of course)

But best would be, for future reference, to first update the src files
to the 5.x you are upgrading to, *then* reading /usr/src/UPDATING, there
is a lenghty section on upgrading from 4.x to 5.x, and following it to
minute detail, because this operation is rather complicated. The section
is titled "To upgrade in-place from 4.x-stable to current". It is not
late to read it even now. There are a few things worth noting in there.

-- 
Regards:

Szilveszter ADAM
Budapest
Hungary
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /bin/sh terminated abnormally

2003-10-04 Thread Mike Hunter
On Oct 03, "Didier" wrote:

> > > From that message I had to type the full path  " /bin/tcsh " then Enter
> > >
> > > I got the prompt the ran the following commands
> > >
> > > # /sbin/mount -u /
> > > #/sbin/mount -a -t ufs
> > > #/sbin/swapon -a
> > >
> > > cd src/sys/boot && make install
> > >
> > > the I got this other error message
> > >
> > > ***Signal 12
> > >
> > > Stop in /us/src/sys/boot
> > >
> > > pid 6 (sh), uid 0: exited on signal 12 (core dumped)
> >
> > Not sure if the other guy cleared this up, but 5 has moved the location of
> > the kernel from /boot/kernel to /boot/kernel/kernel.  However, the boot
> > loader doesn't get updated when make installkernel is done, so you have to
> > update it by hand by doing a little bit of the "installworld" early, in
> > installing the new boot loader.
> >
> > The work around for your situation will be to boot the new kernel by hand
> > by doing something like
> >
> > unload
> > set module_dir=/boot/kernel
> > load /boot/kernel/kernel
> > boot -s
> >
> > from the boot loader (I don't remember the syntax for the module_dir
> > thing...it might not be important.)
> >
> > Once you do that, you can run all the binaries in the world (such as sh)
> > and properly installworld.
> >
> > Let me know if you need any more help.
> 
> when I boot into the FreeBSD 5.1 I am getting this error message :
> WARNING: Userland calling deprecated sysctl, please rebuild world.
> 
> I tried to world rebuild the  but I can't  It's failing at
> /usr/src/gnu/usr.bin/gperf
> 
> I re-cvsuped the src this time I can't buildworld
> 
> Stop in /usr/src/include/sys/_type.h : 80
> 
> i dont know what to do now

I'm cc'ing current because I'm not sure what the best thing to do is at
this point.  You could try rm -rf'ing /usr/srclil help?

Mike
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /bin/sh terminated abnormally

2003-10-03 Thread Dag-Erling Smørgrav
Kris Kennaway <[EMAIL PROTECTED]> writes:
> Yes, since you have run installworld you have now installed a 5.x
> /bin/sh binary, which cannot run on the 4.x kernel you are running.

He *hasn't* run installworld; installworld would have installed the
new loader.

DES
-- 
Dag-Erling Smørgrav - [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /bin/sh terminated abnormally

2003-10-02 Thread Kris Kennaway
On Thu, Oct 02, 2003 at 08:38:23PM -0700, Didier wrote:
> >From that message I had to type the full path  " /bin/tcsh " then Enter
> 
> I got the prompt the ran the following commands
> 
> # /sbin/mount -u /
> #/sbin/mount -a -t ufs
> #/sbin/swapon -a
> 
> cd src/sys/boot && make install
> 
> the I got this other error message
> 
> ***Signal 12
> 
> Stop in /us/src/sys/boot
> 
> pid 6 (sh), uid 0: exited on signal 12 (core dumped)

Yes, since you have run installworld you have now installed a 5.x
/bin/sh binary, which cannot run on the 4.x kernel you are running.
The solution is to first boot into the 5.x kernel found at
/boot/kernel/kernel instead of letting your 4.x loader load the old
4.x kernel from the old default location.

Kris


pgp0.pgp
Description: PGP signature


Re: /bin/sh terminated abnormally

2003-10-02 Thread Didier
>From that message I had to type the full path  " /bin/tcsh " then Enter

I got the prompt the ran the following commands

# /sbin/mount -u /
#/sbin/mount -a -t ufs
#/sbin/swapon -a

cd src/sys/boot && make install

the I got this other error message

***Signal 12

Stop in /us/src/sys/boot

pid 6 (sh), uid 0: exited on signal 12 (core dumped)



- Original Message -
From: "Mike Hunter" <[EMAIL PROTECTED]>
To: "Didier" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 4:53 PM
Subject: Re: /bin/sh terminated abnormally


> On Oct 02, "Didier" wrote:
>
> > Hi all,
> >
> > I just Upgraded my FreeBSD-4.8 to FreeBSD-5.0
> >
> > #buildworld
> > #buildkernel KERNCONF=GENERIC
> > #installkernel KERNCONF=GENERIC
> >
> > all ran fine ... but when I rebooted the computer I got this error
message
> >
> >
> > Mounting root from ufs:/dev/ad2s2a
> > Pid 43 (sh), uid 0: exited on signal 8
> > Oct 1 01:07:20: init: /bin/sh on /etc/rc
> > Terminated abnormally. going to single user mode, enter full pathname of
> > shell or RETURN for /bin/sh:
> >
> > RETURN gives the same error message .
> > any help would be apreciated
>
> I suspect you actually booted your old kernel.  Upgrading from 4 to 5 may
> require that you upgrade the boot loader by hand...although I can't find
> specific mention of this in UPDATINGoh wait, there it is:
>
> line 1277:
>
> cd src/sys/boot ; make install  [6]
>
> Mike "building nvidia binary driver karma"
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /bin/sh terminated abnormally

2003-10-02 Thread Mike Hunter
On Oct 02, "Didier" wrote:

> Hi all,
> 
> I just Upgraded my FreeBSD-4.8 to FreeBSD-5.0
> 
> #buildworld
> #buildkernel KERNCONF=GENERIC
> #installkernel KERNCONF=GENERIC
> 
> all ran fine ... but when I rebooted the computer I got this error message
> 
> 
> Mounting root from ufs:/dev/ad2s2a
> Pid 43 (sh), uid 0: exited on signal 8
> Oct 1 01:07:20: init: /bin/sh on /etc/rc
> Terminated abnormally. going to single user mode, enter full pathname of
> shell or RETURN for /bin/sh:
> 
> RETURN gives the same error message .
> any help would be apreciated

I suspect you actually booted your old kernel.  Upgrading from 4 to 5 may
require that you upgrade the boot loader by hand...although I can't find
specific mention of this in UPDATINGoh wait, there it is:

line 1277:

cd src/sys/boot ; make install  [6]

Mike "building nvidia binary driver karma"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


/bin/sh terminated abnormally

2003-10-02 Thread Didier

Hi all,

I just Upgraded my FreeBSD-4.8 to FreeBSD-5.0

#buildworld
#buildkernel KERNCONF=GENERIC
#installkernel KERNCONF=GENERIC

all ran fine ... but when I rebooted the computer I got this error message


Mounting root from ufs:/dev/ad2s2a
Pid 43 (sh), uid 0: exited on signal 8
Oct 1 01:07:20: init: /bin/sh on /etc/rc
Terminated abnormally. going to single user mode, enter full pathname of
shell or RETURN for /bin/sh:



RETURN gives the same error message .
any help would be apreciated

thanx



Didier

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"