Solved: Lost MBR/wrong disk geometry

Erik Norgaard norgaard at locolomo.org
Sun Nov 28 09:51:15 PST 2004


Erik Norgaard wrote:
> Jeremy Faulkner wrote:
>> 'fdisk -B' didn't work?
> Nope :-( I have installed gpart, it complians*

dd if=/dev/zero of=/dev/ad0 bs=512 count=32
fdisk -BI ad0
dd if=/dev/zero of=/dev/ad0s1 bs=512 count=32
bsdlabel -w -B ad0s1

did the job. I think I shouldn't have specified -w in the last command 
because it created a root partition taking the whole disk which I then 
had to delete.

But, at least I'm up booting :-)

Cheers, Erik

-- 
Ph: +34.666334818                                  web: www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2


More information about the freebsd-questions mailing list