From owner-freebsd-questions@FreeBSD.ORG Fri Apr 1 01:21:18 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA1D616A524 for ; Fri, 1 Apr 2005 01:21:18 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4DEE43D53 for ; Fri, 1 Apr 2005 01:21:16 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a142.otenet.gr [212.205.215.142]) j311KRTl013585; Fri, 1 Apr 2005 04:20:27 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j311L82A057165; Fri, 1 Apr 2005 04:21:08 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j311L7NI057164; Fri, 1 Apr 2005 04:21:07 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 1 Apr 2005 04:21:07 +0300 From: Giorgos Keramidas To: Gert Cuykens Message-ID: <20050401012107.GA57109@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-questions@freebsd.org Subject: Re: i did it again X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 01:21:19 -0000 On 2005-04-01 01:29, Gert Cuykens 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.