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...

Nick.

Reply via email to