From owner-freebsd-questions@FreeBSD.ORG Mon May 28 16:33:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01B0616A400 for ; Mon, 28 May 2007 16:33:51 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from smtp109.rog.mail.re2.yahoo.com (smtp109.rog.mail.re2.yahoo.com [68.142.225.207]) by mx1.freebsd.org (Postfix) with SMTP id AFD1B13C448 for ; Mon, 28 May 2007 16:33:50 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: (qmail 43706 invoked from network); 28 May 2007 16:33:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=Oa1X+xx2Y0p55EKR5wZTOCSulWsBmHAECarOpdbz8ecwxRqhFiAJ/ZYCpdxvcKrbqq7yW9uYp7b4TbDxFwmJ+mJ+Zu78Add30JlvyYd1u4FkbOL5JNExpp/7DPE+Gm6NbyRCdkiPQpUkIOY4zavNoYIR5K5YouWi2jYbUJeKgKg= ; Received: from unknown (HELO ?192.168.2.100?) (mike.jeays@rogers.com@74.104.218.93 with login) by smtp109.rog.mail.re2.yahoo.com with SMTP; 28 May 2007 16:33:49 -0000 X-YMail-OSG: eJH6EZkVM1k3YBQWnY190Me9_6wFQJxRlf5zXVnhQFn5ZD0RquE4QMOo1.1_epWFKQ-- From: Mike Jeays To: freebsd-questions@freebsd.org Date: Mon, 28 May 2007 12:33:48 -0400 User-Agent: KMail/1.9.5 References: <465AFDBB.8050304@gmail.com> In-Reply-To: <465AFDBB.8050304@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705281233.48540.mike.jeays@rogers.com> Subject: Re: machine will no longer boot 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, 28 May 2007 16:33:51 -0000 On Monday 28 May 2007 12:05, WarrenHead wrote: > Hi list, > > Yesterday I installed a new sata disk into my server, which is connected > to a highpoint rocket raid card. I plugged in only one disk, so no raid > yet. > > I ran sysinstall and then fdisk and disklabel. All was fine and I placed > files onto the disk. Then I realized I had made a mistake, I had made > only one partition with fdisk, and two slices with disklabel. > (Mountpoints pointing to /mnt/x and /mnt/y.) > Somehow I got another mountpoint automatically which mounted the entire > disk as one, to /media/z. Weird. > > So I ran sysinstall again and used fdisk to erase everything and create > two partitions. I wrote these changes successfully to the disk. > > I then started disklabel (still from within sysinstall) and created the > two mount points for the two partitions again. > I tried to write these changes to the disk, but that failed. > > Mmm, weird. So, perhaps I needed to reboot first? > Which I did, and now I cannot boot anymore. > > The error messages that show on screen are something like this: > Can't stat /dev/ad4sd1 No such file or directory > Can't stat /dev/ad4se1 No such file or directory > After that I get a bogus shell which can do virtually nothing. I have no > idea what it is. > I can cat /etc/fstab though and noticed that the two lines with > mountpoints for the new disk are indeed the new lines. I guess disklabel > was partially succesfull? > > Perhaps I should simply remove these lines in /etc/fstab? > Unfortunately, with this ridiculous shell, I don't know how to. > > So I tried a livecd (Knoppix 5.1). Since the system disk was formatted > as ufstype=5xbsd, I have trouble writing to it. Bummer. > > But... should I remove these lines in /etc/fstab? Will this matter? > > Luckily I can read the disk, so if necessary I can start over, but I > hope there is something I can do from within that odd shell. > > Please advise, this particular problem is not fun. > > Cheers, Warren > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" You should be able to use the antique line-editor 'ed' from the "ridiculous" shell. Use Knoppix or another machine to read or write down the man pages, and use it to delete the lines from fstab. You might also be able to use 'sed' from the command line to change the offending lines to comments, or delete them. -- Mike Jeays http://www.jeays.ca