Port update hosed entire system
jb
jb.1234abcd at gmail.com
Mon Oct 1 11:37:10 UTC 2012
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
More information about the freebsd-questions
mailing list