From owner-freebsd-questions@FreeBSD.ORG Tue May 6 03:18:29 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 0A1E837B401 for ; Tue, 6 May 2003 03:18:29 -0700 (PDT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 030EA43FBF for ; Tue, 6 May 2003 03:18:28 -0700 (PDT) (envelope-from elgaz@iprimus.com.au) Received: from rooter (211.26.162.16) by smtp02.syd.iprimus.net.au (7.0.012) id 3E8A16000060AADC; Tue, 6 May 2003 20:18:07 +1000 Message-ID: <00cd01c313b8$de5e7b70$0137a8c0@rooter> From: "Gary and El Byrnes" To: "CARTER Anthony" , "Matthew Seaman" References: <20030506100549.GC95479@happy-idiot-talk.infracaninophile.co.uk> <200305061210.06751.a.carter@intrasoft.lu> Date: Tue, 6 May 2003 20:18:41 +1000 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Eduardo Viruena Silva 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:18:29 -0000 I guess the reason why my system asks for fsck is that being unable to = do anything with non-working X I had to manually restart the machine. I will give my machine a go now with a clean shutdown to see if mount -a = works on it. I did do the clean reboot. After boot -s, mount -a produced the = following error message: /var and /usr were not properly dimounted. ----- Original Message -----=20 From: CARTER Anthony=20 To: Matthew Seaman ; CARTER Anthony=20 Cc: Eduardo Viruena Silva ; Gary and El Byrnes ; = freebsd-questions@freebsd.org=20 Sent: Tuesday, May 06, 2003 8:10 PM Subject: Re: X Window problem Strange then...Whenever I have booted into single user mode I have = been unable=20 to write to the root partition, even after a mount -a...even with ESC = w!q in=20 vi...Maybe I did something wrong...Would it possibly be likely that = mount -a=20 doesn't report back that / needs fscking first? Everytime I have had = to do=20 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