From owner-freebsd-questions@FreeBSD.ORG Mon May 22 12:26:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9F57C16A545 for ; Mon, 22 May 2006 12:26:07 +0000 (UTC) (envelope-from mj001@rogers.com) Received: from smtp106.rog.mail.re2.yahoo.com (smtp106.rog.mail.re2.yahoo.com [68.142.225.204]) by mx1.FreeBSD.org (Postfix) with SMTP id 1AF7143D46 for ; Mon, 22 May 2006 12:26:06 +0000 (GMT) (envelope-from mj001@rogers.com) Received: (qmail 79578 invoked from network); 22 May 2006 12:26:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=zpV0GFf8Z/QQIruOEsuisoH/0bZC9xLCrNlkNEEt7iys1lexjDVw2prk8beCegLqREXy9YRfJXA2CmT701pNAyG0P7B74oxF+gvD4nZ586mMgV35Sy3GrO4hcu4QzrHvKgLAcsSEgCQnS0d3aNvPod0squz6xmsi6MLG1uuuSxE= ; Received: from unknown (HELO chaucer.jeays.ca) (mj001@rogers.com@72.139.51.96 with plain) by smtp106.rog.mail.re2.yahoo.com with SMTP; 22 May 2006 12:26:05 -0000 From: Mike Jeays To: Mikhail Goriachev In-Reply-To: <447189AC.7020004@webanoide.org> References: <20060522090248.49882.qmail@web26201.mail.ukl.yahoo.com> <447189AC.7020004@webanoide.org> Content-Type: text/plain Date: Mon, 22 May 2006 08:25:59 -0400 Message-Id: <1148300759.21000.86.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: none none , freebsd-questions@freebsd.org Subject: Re: MESS 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: Mon, 22 May 2006 12:26:14 -0000 On Mon, 2006-05-22 at 19:51 +1000, Mikhail Goriachev wrote: > none none wrote: > > Hi > > I fear that this time a messed up big time. I have two hard drives one with Windows XP (40G) and another with FreeBSD 6.1 (10G). Eveything was ok until I decided i wanted to mount my windows drive to FreBSD (i run KDE as GUI). I followed the instruction from OnLamp.com and since i wanted the whole process to be automated on every boot i added the following lines in /etc/fstab using ee: > > /dev/ad0s1 /windows ntfs rw 1 1 > > > > and everything looked normal until i rebooted! now when i choose FreeBSD on the bootmanager it starts looking ok and ends up with the following: > > fsck: exec fsck-ntfs for /dev/ad0s1 in /sbin:/usr/sbin: No such file or directory > > Unknown error: help! > > init /bin/sh on /etc/rc terminated abnormaly, going to single user mode > > Enter full pathname of shell of RETURN for /bin/sh > > > > if i enter single user mode it dasen't seem to recognize many commands: starrtx, ee, pico, emacs etc so i cannot change my /etc/fstab in case this is the problem. > > > > Moreover now i am unable to enter windows as the bootmanager when i ask him to load the DOS disk it just reboots the system. I even tried to leave only the (40G) on the machine but thens it just crashes right after memeory check. I am seriously in need for some help, if anyone could suggest anything i would appreciate it a lot. Thanks in advance > > andreas Sotriakopoulos > > > Hi, > > This one is gonna sound funny. I once had a mistype in /etc/fstab > myself. I solved it by pulling the hard drive off the box, mounting it > on another one and then I modified the file. I guess you could do the > same if you have a spare FreeBSD box lying around. But there must be a > better way doing it though. > > > Cheers, > Mikhail. > > The 'ed' editor is in /bin, and so is available at single-user boot. It is a real antique, but if you have a copy of the manual it is not too hard to correct /etc/fstab. 'ee' is in /usr/bin -- Mike Jeays http://ca.geocities.com/mike.jeays@rogers.com