Re: can't reboot after messing up my rc.conf file

From: Chris Hodgins (chodgins_at_cis.strath.ac.uk)
Date: 02/17/05

  • Next message: Jamie Novak: "Re: can't reboot after messing up my rc.conf file"
    Date: Thu, 17 Feb 2005 01:47:13 +0000
    To: Mike Jeays <Mike.Jeays@rogers.com>
    
    

    Mike Jeays wrote:
    > On Wed, 2005-02-16 at 13:42, aklist_061666 wrote:
    >
    >>Hi All:
    >>
    >>I was editing my rc.conf file and left off a quote mark, and now when I try
    >>to reboot I get an error and am prompted to drop into shell to fix it.
    >>
    >>The default prompt is /bin/sh, and if I hit return I get a prompt.
    >>
    >>How can I edit the file while I'm in that prompt? VI doesn't work...is there
    >>another text editor I can use to fix the file?
    >>
    >>TIA
    >>
    >>_______________________________________________
    >>freebsd-questions@freebsd.org mailing list
    >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    > /bin/ed
    >
    > Be prepared with a printed manual and a wet towel for your head!
    >
    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >

    Or you could just simply:
    # /bin/mv /etc/rc.conf /etc/rc.conf.bad
    # /bin/echo "<variable>=<value>" >> /etc/rc.conf

    This will give you a nice new rc.conf that you can edit once you are up
    and running again.

    HTH
    Chris
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Jamie Novak: "Re: can't reboot after messing up my rc.conf file"

    Relevant Pages

    • cant reboot after messing up my rc.conf file
      ... I was editing my rc.conf file and left off a quote mark, ... to reboot I get an error and am prompted to drop into shell to fix it. ... The default prompt is /bin/sh, and if I hit return I get a prompt. ...
      (freebsd-questions)
    • Re: side by side error
      ... Choose safe mode with command prompt, this should eliminate interference from whatever virus or malware and allow the file verification process to run. ... For some reason internet explorer 64, ... I then downloaded vcredlist to fix the issue, ... and I cant do a repair install because I dont have access ...
      (microsoft.public.windows.vista.performance_maintenance)
    • Re: Boot Menu Damaged
      ... and tried to fix it by booting with instalation cd and run "fdisk -B -b ... Try using fdiskor boot0cfgto re-enable booting on those slices. ... Do you run it from the instalation CD using fixit or run from the mountroot prompt on the computer. ...
      (freebsd-questions)
    • Re: Access 2k3
      ... > any of them to edit produces nothing. ... > reinstalled office 2k3 and it does not fix the problem. ... > Both my desktop pc and laptop have WinXP Pro with all SP's and hotfixes ...
      (microsoft.public.access.setupconfig)
    • Re: Differences in Task types
      ... Fixed task types only have an effect when you edit an assignment. ... So, Edit one, fix one and the third one gets recalculated. ... fix the duration and the units get recalculated when you click OK: ...
      (microsoft.public.project)