Subject: Re: segfault in fdisk, 2.0B
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 05/05/2004 21:40:52
On Mon, May 03, 2004 at 06:28:36PM +0200, Tobias Nygren wrote:
> soyokaze# fdisk -i wd0
> fdisk: primarypartition table invalid, no magic in sector 0
> Segmentation fault (core dumped)
> 
> My guess is the geometry along with the MBR got hosed.
> Any idea on how one might go about to re-initialize this?
> 
> (gdb) bt
> #0  0x0804b621 in intuit_translated_geometry ()
> #1  0x0804acd6 in get_geometry ()
> #2  0x080498c7 in main ()
> #3  0x0804905a in ___start ()
> (gdb) 

What architecture is this?
If i386, what does 'sysctl machdep.diskinfo' report?

There is scope for some divide by zero errors in that routine :-(

	David

-- 
David Laight: david@l8s.co.uk