From owner-freebsd-questions@FreeBSD.ORG Fri May 11 16:07:17 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91D8E16A403 for ; Fri, 11 May 2007 16:07:17 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 5BFDD13C459 for ; Fri, 11 May 2007 16:07:17 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l4BG3sLY004310; Fri, 11 May 2007 12:03:54 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l4BG3sVX004309; Fri, 11 May 2007 12:03:54 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 11 May 2007 12:03:54 -0400 From: Jerry McAllister To: Christian Walther Message-ID: <20070511160354.GA4256@gizmo.acns.msu.edu> References: <464448B2.1020901@evotex.ch> <14989d6e0705110751xb9806e2p48c86e465a12de57@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14989d6e0705110751xb9806e2p48c86e465a12de57@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: Gabriel Rossetti , f-q Subject: Re: edit files in single-user-mode, the output is all messed up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 16:07:17 -0000 On Fri, May 11, 2007 at 04:51:48PM +0200, Christian Walther wrote: > On 11/05/07, Gabriel Rossetti wrote: > >Hello, > > > >I have never been able to figure out how to do this, and I usually end > >up copying the file to be edited to a floppy et be able to edit it from > >another machine, but there has to ba a way to do it! Everytime I go into > >single-user-mode and I have to edit a file, the output to stdout is > >messed up (looks like there are no \n). I tried several editors (vi, ee, > >edit (ee I think), and I get the same thing, useless to say that it's > >impossible to edit the files. The only editor that works, is vim, but > >it's not always installed. Does anyone know why this happens? And does > >anyone know how to fix it? The two main problems are making sure the editors are available and making sure you have a terminal type that will work. Do the following: fsck -p mount -u / mount -a swapon -a To make sure files are available. Then, for termtype, if you are using tcsh which is most common on FreeBSD do set term=vt100 or if in sh do as Christian Walther indicated ////jerry > > You could try to set a decent TERM-variable, such as > > TERM=vt100 > export TERM > > HTH > Christian > _______________________________________________ > 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"