Please dont kill me :) I'm really not experienced with this kind of stuff.

Maby this helps:

$ sudo disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 16514001
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6L250R0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
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]
  c:     490234752             0  unused      0     0      # Cyl     0
-486343
  d:     490234688            63  4.2BSD   2048 16384   16 # Cyl    
0*-486343*
$ sudo fdisk wd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: wd0       geometry: 16383/16/63 [490234752 Sectors]
Offset: 0       Signature: 0xAA55
         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: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
*3: A6    0   1  1 - 16382  15 63 [          63:    16514001 ] OpenBSD
$

> Jon Sjvstedt wrote:
>> Hello all!
>>
>> I have an OpenBSD-box with two 250G drives inside (and some SCSI).
>> Trying
>> to use one of the drives as a whole gave this from disklabel
>>
>>
>> $ sudo disklabel -p g wd0
>> [snip]
>
> don't snip.
>
>> 16 partitions:
>> #             size        offset  fstype [fsize bsize  cpg]
>>   c:        233.8G          0.0G  unused      0     0      # Cyl
>> 0-486343
>>   d:        233.8G          0.0G  4.2BSD   2048 16384   16 # Cyl
>> 0*-486343*
>>
>> but df -h says:
>>
>> /dev/wd0d      7.8G    7.4G    4.2M   100%
>>
>> and I cant create any new files on the drive. What could be the problem
>> here? Any hints appreciated.
>>
>> dmesg attached.
>
> thanks for the dmesg.
>
> You tried darned hard to obscure this (I really don't care how many G
> your disk is, I care about which sectors you are using), but it does
> appear that you opted to not properly partition your disk.  The fact
> that you didn't show the output of fdisk causes me to believe you
> knew it, though you may not have recognized the significance. ;)
>
> Your OpenBSD subpartition appears to start at sector zero.  Bad idea.
> This means, whether by design or by accident, you don't have an fdisk
> partition table (aka, MBR) on the disk.  Also a bad idea.
>
> On some platforms, i386 is one of them, you must use fdisk partitions,
> and your disklabel partitions must start at a one track offset (in
> your case, probably 63 sectors).
>
> When you don't follow the rules, ugly things happen.  It isn't the
> size of the disk, it's the way it's laid out that is giving you
> problems.
>
> See faq14.html...
I did, but i probably didnt understand it :P
>
> Nick.
>


<-------------------------------------------->
Jon Sjvstedt           _O_

Reply via email to