From owner-freebsd-questions@FreeBSD.ORG Tue May 6 03:09:28 2003 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 1958537B401 for ; Tue, 6 May 2003 03:09:28 -0700 (PDT) Received: from mail.cordis.lu (mail.cordis.lu [212.190.217.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B91C743FAF for ; Tue, 6 May 2003 03:09:26 -0700 (PDT) (envelope-from a.carter@cordis.lu) Received: from mailsvr.intrasoft.lu (mail.intrasoft.lu [212.190.217.251]) by mail.cordis.lu (8.12.8/8.12.8) with ESMTP id h46ALa9g022527; Tue, 6 May 2003 12:21:36 +0200 Received: by mail.intrasoft.lu with Internet Mail Service (5.5.2656.59) id ; Tue, 6 May 2003 12:05:39 +0200 Received: from 212.190.217.170 ([212.190.217.170]) by mailsvr.intrasoft.lu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id JS23CHPX; Tue, 6 May 2003 12:05:35 +0200 From: CARTER Anthony To: Matthew Seaman , CARTER Anthony Organization: Intrasoft Date: Tue, 6 May 2003 12:10:06 +0200 User-Agent: KMail/1.5.1 References: <20030506100549.GC95479@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20030506100549.GC95479@happy-idiot-talk.infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305061210.06751.a.carter@intrasoft.lu> X-Spam-Status: No, hits=-131.9 required=4.2 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL,USER_IN_WHITELIST version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) cc: Eduardo Viruena Silva cc: Gary and El Byrnes cc: freebsd-questions@freebsd.org Subject: Re: X Window problem 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: Tue, 06 May 2003 10:09:28 -0000 Strange then...Whenever I have booted into single user mode I have been unable to write to the root partition, even after a mount -a...even with ESC w!q in vi...Maybe I did something wrong...Would it possibly be likely that mount -a doesn't report back that / needs fscking first? Everytime I have had to do this I needed to fsck root first... Just a thought, Anthony On Tuesday 06 May 2003 12:05, Matthew Seaman wrote: > On Tue, May 06, 2003 at 11:31:12AM +0200, CARTER Anthony wrote: > > I think that you should do this first: > > > > mount -u / > > > > this re-mounts root as read-write, otherwise you are in read-only in > > single > > > user mode... > > > > then do: > > > > mount -a > > swapon -a > > Actually, although the handbook recommends 'mount -u /' in > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html > > as does the FAQ in > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FORGOT-R > OOT-PW > > it hasn't strictly been necessary for at least a year now. 'mount -a' > will automatically re-mount the root filesystem read-write anyway. If > the original poster was following the instructions, that wouldn't have > been the cause of their latest problem. > > > On Tuesday 06 May 2003 11:15, Eduardo Viruena Silva wrote: > > > On Tue, 6 May 2003, Gary and El Byrnes wrote: > > > > I got to the point where I edited the /etc/ttys file back to what > > it > > > > > was. When I tried saving it, I got a message that the file is > > read-only > > > > > and use ! to override. > > Seems that your /etc/ttys file has ended up without write permissions > --- that's non-standard: the mode is usually 0644 --- but so long as > everything has read permission that needs it, won't cause any > problems. > > If you're in single user mode then you have superuser powers: you can > just override the filesystem permissions by: > > Esc : w q ! > > from within vi(1) and everything should end up the way you want, and > you can get on with generating a working X configuration. > > Cheers, > > Matthew