Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2012 11:35:39 +0000 (UTC)
From:      jb <jb.1234abcd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Port update hosed entire system
Message-ID:  <loom.20121001T133156-229@post.gmane.org>
References:  <20121001200829.2c8afade@atomizer64> <20121001080254.46572b2e.freebsd@edvax.de> <20121002062045.020b8237@atomizer64> <loom.20121001T124342-469@post.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
jb <jb.1234abcd <at> gmail.com> writes:

> 
> Rod Person <rodperson <at> rodperson.com> writes:
> 
> > ... 
> > I'm still able to issue sudo, so using sudo rm -r I was able to free up
> > 25GB...but still, /bin/sh, ls, clear all seg fault and su doesn't work
> > and switching consoles doesn't let me log in.
> > 
> > I maybe be left with attempting a single user boot, but I'm still not
> > that comfortable at attempting such as I don't want to have a totally
> > useless box.
> > 
> 
> Well, in emergency:
> - add /rescue/sh to /etc/shells
>   Anything in /rescue/ is statically compiled.
> - change "root" shell to /rescue/sh
>   vipw
> 
> jb

I forgot to mention that you may want to do this:

Save /bin/sh.
mv /bin/sh /bin/sh-saved

Softlink /bin/sh:
ln -s /rescue/sh /bin/sh

jb






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20121001T133156-229>