From owner-freebsd-questions@FreeBSD.ORG Wed May 16 12:24:15 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 F1C1D16A401 for ; Wed, 16 May 2007 12:24:15 +0000 (UTC) (envelope-from mailing_lists@evotex.ch) Received: from mail1.heig-vd.ch (mail1.heig-vd.ch [193.134.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id 873CE13C48C for ; Wed, 16 May 2007 12:24:15 +0000 (UTC) (envelope-from mailing_lists@evotex.ch) Received: from localhost (localhost [127.0.0.1]) by mail1.heig-vd.ch (8.13.7/8.13.1/MailGateway 2.01) with ESMTP id l4GCODqK011339; Wed, 16 May 2007 14:24:13 +0200 X-Virus-Scanned: amavisd-new from YCOM SA at heig-vd.ch Received: from mail1.heig-vd.ch ([127.0.0.1]) by localhost (mail1.heig-vd.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u3h2D6kyuJKc; Wed, 16 May 2007 14:24:08 +0200 (CEST) Received: from EINT11.einet.ad.eivd.ch ([10.192.41.28]) by mail1.heig-vd.ch (8.13.7/8.13.1/MailGateway 2.01) with ESMTP id l4GCO54q011334; Wed, 16 May 2007 14:24:05 +0200 Received: from [10.192.60.129] ([10.192.60.129]) by EINT11.einet.ad.eivd.ch with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 May 2007 14:24:06 +0200 Message-ID: <464AF7E6.4000906@evotex.ch> Date: Wed, 16 May 2007 14:24:06 +0200 From: Gabriel Rossetti User-Agent: Thunderbird 1.5.0.10 (X11/20070304) MIME-Version: 1.0 To: Jerry McAllister References: <464448B2.1020901@evotex.ch> <14989d6e0705110751xb9806e2p48c86e465a12de57@mail.gmail.com> <20070511160354.GA4256@gizmo.acns.msu.edu> In-Reply-To: <20070511160354.GA4256@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 May 2007 12:24:06.0192 (UTC) FILETIME=[18A88300:01C797B5] Cc: 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: Wed, 16 May 2007 12:24:16 -0000 Jerry McAllister wrote: > 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 > > > Ok, thanks 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" >> > >