Is that normal to have a signature of "0x0" reported by fdisk?
On my other disks, signature is 0xAA55.
Thanks for your help!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Xavier Mertens
Sent: jeudi 3 janvier 2008 2:28
To: misc@openbsd.org
Subject: Re: newfs: cg 0: bad magic number

Ok,

I fixed the disk partitions:

# fdisk wd1
Disk: wd1       geometry: 30515/255/63 [490234752 Sectors]
Offset: 0       Signature: 0x0
          Starting         Ending        LBA Info:
 #: id      C   H  S -      C   H  S [       start:        size ]
------------------------------------------------------------------------
 0: 00      0   0  0 -      0   0  0 [           0:           0 ] unused
 1: A6      0   1  1 -  30514 254 63 [          63:   490223412 ] OpenBSD
 2: 00      0   0  0 -      0   0  0 [           0:           0 ] unused
 3: 00      0   0  0 -      0   0  0 [           0:           0 ] unused

# disklabel wd1
# Inside MBR partition 1: type A6 start 63 size 490223412 # /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6B250R0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30515
total sectors: 490234752
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:        490223412               63  4.2BSD   2048 16384   16
  c:        490234752                0  unused      0     0

But I still have the same error at the end of the newfs:

newfs: cg 0: bad magic number
newfs: fsinit1 failed

:(

Xavier
--
Hint: A reload a day, keeps the TAC away .....

On Wed, 2 Jan 2008, Ted Unangst wrote:

> On 1/2/08, Xavier Mertens <[EMAIL PROTECTED]> wrote:
> > 16 partitions:
> > #                size           offset  fstype [fsize bsize  cpg]
> >  a:            48195                0  4.2BSD   2048 16384   16
> 
> your partition is not properly offset from the beginning of the disk, 
> where all the goodies like mbr need to live.

Reply via email to