From owner-freebsd-questions@FreeBSD.ORG Tue Jan 7 07:56:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D100FBB9 for ; Tue, 7 Jan 2014 07:56:11 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8F6731B1A for ; Tue, 7 Jan 2014 07:56:11 +0000 (UTC) Received: from r56.edvax.de (port-92-195-149-155.dynamic.qsc.de [92.195.149.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 2997C3CE1E; Tue, 7 Jan 2014 08:56:09 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s077tj0E007071; Tue, 7 Jan 2014 08:55:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 7 Jan 2014 08:55:45 +0100 From: Polytropon To: eras mus Subject: Re: Message-Id: <20140107085545.06310df9.freebsd@edvax.de> In-Reply-To: References: <20140106182826.28018a2f@X220.alogt.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Trond =?ISO-8859-1?Q?Endrest=F8l?= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 07:56:11 -0000 On Tue, 7 Jan 2014 13:05:00 +0530, eras mus wrote: > Dear List, > > I tried editing /etc/rc.conf file in between server hanged . Now the > rc.conf is incomplete. There is a line with incomplete quotes. > So the machine in starting in single user mode . No editor is working . > when /usr is mounter ee editor is there. But The file could not be edited > and saved since it is read only. > > How to overcome this read only mode and edit the file. This indicates a severe error, as you have correctly observed. Step 1 is to make / writeable: # mount -u / which is a "shortcut" for # mount -u -o rw / You will also need to mount partitions like /usr to make your normal editor working (for example /usr/bin/ee): # mount /usr or even # mount -a In case this step is not _possible_, you can still use an editor present on / (typically /rescue/vi): # /rescue/vi /etc/rc.conf Apply the quotes as required and :wq (write file and quit the editor). Then you should be able to let the system reboot normally. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...