Re: i did it again

From: Giorgos Keramidas (keramida_at_ceid.upatras.gr)
Date: 04/01/05

  • Next message: Giorgos Keramidas: "Re: sendmail"
    Date: Fri, 1 Apr 2005 04:21:07 +0300
    To: Gert Cuykens <gert.cuykens@gmail.com>
    
    

    On 2005-04-01 01:29, Gert Cuykens <gert.cuykens@gmail.com> wrote:
    > i putted mysqlsafe in my rc.local and found out ctrl + c doesnt work :)
    > In single user mode i wanted to edit the file but joe crashed and vi
    > was very strange. it was like it only had one line to display the file
    > and the arrow keys where acting strange ?

    Bring up all the file systems manually, and you should be set to edit
    any file with TERM=cons25. This should be something like:

    1. Start in single-user mode. When you enter the root shell of the
    single user mode, there's only one filesystem (the root filesystem) and
    this one is mounted read-only.

    2. If your system clock is set to local time (and not UTC), run
    adjkerntz.

            # adjkerntz -i

    3. Do minimal sanity checks for all file systems:

            # fsck -p

    4. Remount the root file system as read-write:

            # mount -u /

    5. Mount all the rest, and then set your TERM to cons25 (TERM should be
    set IIRC only after termcap is available):

            # mount -va
            # TERM=cons25 ; export TERM

    6. Edit your /etc/rc.local with any editor you prefer.

    7. Exit the single user shell and let the system go on booting in
    multi-user mode, as usual.

    _______________________________________________
    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: Giorgos Keramidas: "Re: sendmail"

    Relevant Pages

    • Re: i did it again
      ... >> In single user mode i wanted to edit the file but joe crashed and vi ... Do minimal sanity checks for all file systems: ...
      (freebsd-questions)
    • [HPADM] file systems mounted in single user mode
      ... On several systems we had to extend ... In the instructions I had the operators reboot the system in single user ... but still all file systems were mounted. ... was brought up in single user mode? ...
      (HP-UX-Admin)
    • [HPADM] SUMMARY file systems mounted in single user mode
      ... "No mount commands are present in scripts where they should not be. ... "When you boot up the system in single user mode, ... but still all file systems were mounted. ...
      (HP-UX-Admin)
    • Re: How to edit the SYSSTARTUP.PUB.SYS file?
      ... How to edit the SYSSTARTUP.PUB.SYS file? ... think of, like booting the machine into Single User mode, ... To join/leave the list, search archives, change list settings, * ...
      (comp.sys.hp.mpe)
    • Re: How to edit the SYSSTARTUP.PUB.SYS file?
      ... Thanks Donna - you and some other folks pointed out the issue for me, in simple enough terms even for a hardhead like me to understand. ... I IPLed the system and it came up without any hassle, and I can now edit that little file to me hearts content. ... listfile sysstart.pub.sys 9, even with the system in Single user mode, ... LOCKS: none ...
      (comp.sys.hp.mpe)