Subject: Re: hosed partition table
To: None <netbsd-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-users
Date: 10/23/2006 18:11:06
In article <20061023143323.GA19828@run.galis.org>,
George Georgalis <george@galis.org> wrote:
>On Sun, Oct 22, 2006 at 08:57:18PM -0400, George Georgalis wrote:
>>While I was unloading a disk with errors, I noticed the partition
>>table was odd, I tried to fix it and now, basically the situation
>>can be reduced to the c and d partitions have been deleted.
>
>BTW - I DID get all the needed data off the drive before I started
>mucking with the partition table and this is the output of fdisk
>and disklabel
>
> $ fdisk wd1 
>fdisk: DIOCGDEFLABEL: Inappropriate ioctl for device
>fdisk: DIOCGDINFO: Inappropriate ioctl for device
> $ disklabel wd1                                                        
>
>disklabel: Invalid signature in mbr record 0
>disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
>
>I'm pretty sure this has nothing to do with the disk errors that
>started this journey.  The system happens to be 3.1_RC2, but
>if needed, I could change this box easily enough.  What other
>commands are available to doctor the disk?

what does ls -l /dev/rwd1* say?
Also does disklabel -I -i /dev/rwd1d work?

christos