NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD-10.0RC



Fixed /etc/rc.conf

I found a cool piece of sed -- did this

cd /mnt/etc
sed -e "s/rc\_configured\=NO/rc\_configured\=YES/g"   rc.conf > rc.conf.tmp


check rc.conf.tmp ; then deside if I wanna do use rc.conf.tmp


NetBSD came up, and I cound login.  I can now fix what I have.

I found sed -e "   " in notes from June 2009. HEHEHE   :-)

On Sun, Dec 3, 2023 at 8:28 AM Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
>
> On Sun, Dec 03, 2023 at 08:02:16AM -0500, Todd Gruhn wrote:
> > DOHH!
> >
> > NetBSd started /bin/sh and print this:
> >
> > "/etc/rc.conf: 44: Syntax error"
> >
> > I cant do anything -- /bin and /sbin  dont exist.
>
> I don't know how you came in this situation. But if the boot goot as far
> as trying to parse /etc/rc.conf, at last /bin/sh and /sbin/init could
> be started
>
> >
> > Many years ago, I would boot 2    3in floppies; them mount the hard-disk
> > (wd0a); then copy /etc/rc.conf to ./mnt2/etc. I can't do this anymore...
> > (YEPPP -- NetBSD on 2005. So much changed...)
>
> Yes, the rc.conf is not on the install media I believe. But you can still
> boot the install media, get a shell and mount /dev/wd0a
>
> --
> Manuel Bouyer <bouyer%antioche.eu.org@localhost>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --


Home | Main Index | Thread Index | Old Index