Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 14:33:08 -0800
From:      Henrik Hudson <lists@rhavenn.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: 8.0 amd64 - Royally screwed up MBR (My own fault)
Message-ID:  <20100324223308.GA6309@alucard.int.rhavenn.net>
In-Reply-To: <20100324212032.M14419@brightstar.bomgardner.net>
References:  <20100324212032.M14419@brightstar.bomgardner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Mar 2010, Gene wrote:

> Greetings - (not a draft notice)
> 
> First thanks to those who responded to my previous question.
> 
> Next...
> 
> I was attempting to install 8.0 amd64 w/ZFS. I used instructions from the wiki
> and when I had trouble, I decided to beat a strategic retreat and just do a
> "vanilla" install. Problem was that either fdisk didn't recognize the mbr
> after all the 'gpart create'-ing or simply couldn't start newfs. (Something
> about not being able to find an initial inode.) I figured 'gpart destroy ad0'
> might fix things but no such luck. fdisk -I ad0 also errors out saying "unable
> to locate class".
> 
> Does anyone know of a simple (brute force?) way to restore simple. standard
> MBRs without having to resort to a hex editor? (I will if I have to, but I'd
> rather not.)

This will wipe the MBR: dd if=/dev/zero of=/dev/sdb bs=446 count=1

replace of=/dev/sdb  without whatever /dev/sd? you need.

henrik
-- 
Henrik Hudson
lists@rhavenn.net
-----------------------------------------
"God, root, what is difference?" Pitr; UF 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100324223308.GA6309>