From owner-freebsd-questions@FreeBSD.ORG Wed Feb 16 03:44:44 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7357E16A4CE for ; Wed, 16 Feb 2005 03:44:44 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC25A43D49 for ; Wed, 16 Feb 2005 03:44:43 +0000 (GMT) (envelope-from jeff.bsd@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so23686rng for ; Tue, 15 Feb 2005 19:44:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=HY+YaU/+/oNEB38X5y88nh6U0vYuqDvfE0sSWhe5xiEezesvRHup2UvAyjwDc9HAt99p+U28csANcNECTAXjKXpMrLwzxGv560YRN8MEZcXuvfG1vxFGy67iaS15AjJGd1qFgFL2eHnrE6Tattu/W4eYVVjE+q0+6EadV5O7+E4= Received: by 10.38.77.29 with SMTP id z29mr120091rna; Tue, 15 Feb 2005 19:44:43 -0800 (PST) Received: by 10.38.81.70 with HTTP; Tue, 15 Feb 2005 19:44:43 -0800 (PST) Message-ID: <205376f1050215194459ac08f6@mail.gmail.com> Date: Tue, 15 Feb 2005 19:44:43 -0800 From: Jeff BSD To: Ruben de Groot In-Reply-To: <20050215133446.GA74237@jail2.bzerk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <205376f105021420572470976@mail.gmail.com> <20050215133446.GA74237@jail2.bzerk.org> cc: freebsd-questions@freebsd.org Subject: Re: Broken shell - I can't login at all X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jeff BSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 03:44:44 -0000 On Tue, 15 Feb 2005 14:34:46 +0100, Ruben de Groot wrote: > > Hi, > > On Mon, Feb 14, 2005 at 08:57:28PM -0800, Jeff BSD typed: > > Hi- > > I'm in the process of upgrading a 4.6 system to 5.3. When I boot the > > machine it gets to: > > How are you doing the upgrade? There are some specific steps about > upgrading from 4.x to 5.x all the way down in /usr/src/UPGRADING. > Also, I believe only upgrades from 4-STABLE are supported, so since > 4.6 is pretty old, you probably should upgrade in 2 steps: 4.6 -> > 4-STABLE followed by 4-STABLE -> 5.3 (This counts for source upgrades, > not binary upgrades) > > > ---- > > init: bin/sh on /etc/rc terminated abnormally, going to single user > > mode > > Enter root password, or ^D to go multi-user > > Password: > > ---- > > > > I enter the password, then: > > > > ---- > > Enter full pathname of shell of RETURN for /bin/sh: > > pid # (sh), uid 0: exited on signal 12 > > init: bin/sh on /etc/rc terminated abnormally, going to single user > > mode > > Enter root password, or ^D to go multi-user > > Password: > > ---- > > > > Round and round I go. > > > > Sounds like I broke /bin/sh to me. I've messed around in safe mode > > but I can't see how I can use it to possibly fix my problem, assuming > > I did do anything to /bin/sh (which I don't think I did - > > intentionally/directly that is). > > > > How do I fix it so I can boot it? A bit of the chicken and the egg, > > what? > > Yes, it sounds like the easiest way for you would be to boot from a 5.3 > installation CD and just do a binary upgrade. The problem is you now > have a mixed 4.6/5.3 system with out-of-sync binaries, libs and kernel > and there really isn't much fun in trying to troubleshoot that. > > If you want to continue down this road, there is a chance that you can at > least get a working shell by entering /rescue/sh on the above "Enter full > pathname of shell of RETURN for /bin/sh:" prompt. From there you can use > other tools from /rescue (if they were allready installed before your > system got hosed) to try and finish the installworld > > G'luck > > Ruben > > Thanks all- Turned out I was booting the wrong kernel (new kernels are in /boot/kernel/... duh!) Took me hours to figure that one out. As always, upgrading provides a unique learning experience. Your advice was useful and appreciated however. Jeff