From owner-freebsd-questions Thu Oct 5 12:37:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ivin.nl (ivin.nl [161.58.235.201]) by hub.freebsd.org (Postfix) with ESMTP id 148CE37B66C for ; Thu, 5 Oct 2000 12:37:20 -0700 (PDT) Received: from roberts4.roberts.nl ([213.73.149.39]) by ivin.nl (8.8.8) id VAA98785; Thu, 5 Oct 2000 21:37:09 +0200 (CEST) Message-Id: <5.0.0.25.2.20001005213008.00a295d0@pop.roberts.nl> X-Sender: lar@pop.roberts.nl X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Thu, 05 Oct 2000 21:36:42 +0200 To: =?iso-8859-1?Q?V=E9ronique?= Huck , freebsd-questions@FreeBSD.ORG From: Luke Roberts Subject: Re: How to fix fstab ? In-Reply-To: <39DCD52C.7F71E519@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Hi, > >After mounting a second hard drive in my box, I have added a wrong entry >in >/etc/fstab/ and my system (FBS 4.0) doesn't boot any longer. I have had this too. Don't worry It's not the end of the world! When the machine stops booting you end up in a single user prompt and the '/' filesystem is mounted read only. You need to mount your file systems manually and the edit the /etc/fstab file. Repare the entry that's causing all the trouble and restart the machine. the commands that should do the trick are: mount /dev/ados1a / mount /dev/ados1f /usr mount /dev/ados1e /var cd /etc vi fstab # repare it shutdown -r now Good luck, Luke >The boot sequence stops with : > .. > ... > (checking and mounting /dev/ad0s.. works fine) > ... > /dev/da0 : the following file system had an unexpected inconsistency > :/dev/da0 (usr/home/backup) > Automatic file system check failed...help ! > Enter full pathname of shell or return for /bin/sh > >I tried to overwrite fstab with fstab(tilde) but here is the >following answer : read-only file system >Is there a way to recover the original file before starting a brand new >installation ? :-( > >Many thanks > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message