From owner-freebsd-questions@FreeBSD.ORG Sat Nov 27 19:36:51 2004 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 D88A216A4CE for ; Sat, 27 Nov 2004 19:36:51 +0000 (GMT) Received: from gldis.ca (constans.gldis.ca [66.11.169.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7655143D1F for ; Sat, 27 Nov 2004 19:36:51 +0000 (GMT) (envelope-from gldisater@gldis.ca) Received: from [IPv6:::1] (localhost [127.0.0.1]) by gldis.ca (8.12.11/8.12.11) with ESMTP id iARJXkog024796; Sat, 27 Nov 2004 14:33:47 -0500 (EST) (envelope-from gldisater@gldis.ca) Message-ID: <41A8D7D0.8020400@gldis.ca> Date: Sat, 27 Nov 2004 14:38:56 -0500 From: Jeremy Faulkner User-Agent: Mozilla Thunderbird 0.9 (X11/20041123) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Norgaard References: <41A8D1FA.8030005@locolomo.org> In-Reply-To: <41A8D1FA.8030005@locolomo.org> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80rc4/561/Fri Oct 29 06:26:00 2004 clamav-milter version 0.80j on constans.gldis.ca X-Virus-Status: Clean cc: "freebsd-questions@freebsd.org" Subject: Re: Lost MBR/wrong disk geometry 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: Sat, 27 Nov 2004 19:36:52 -0000 Erik Norgaard wrote: > Hi, > > It appears that I have screwed my disk (60GB) thoroughly. I had used the > sample install.cfg for sysinstall but it has "partition=exclusive" and > not "all". I did > > dd if=/dev/zero of=/dev/ad0 count=1k > > as explained in the faq, and the exclusive partioning was gone. > > I can run sysinstall, slice up the disk and install stuff. But on reboot > the system doesn't find a usefull mbr. > > I can boot up a rescue disk, mount the partitions, read data stored and > use any programs installed. But I can't recover or create a new mbr with > > dd if=/boot/mbr of=/dev/ad0 > > or with /boot/boot0, or use fdisk to manually set slices and active > slice, run sysinstall and choose a bootmanager or similar. > > Please, how to I get back an mbr and a working partition table? > > Thanks! > > Cheers, Erik > 'fdisk -B' didn't work? -- Jeremy Faulkner Resume: http://www.gldis.ca/gldisater/resume.html