Jan Stary wrote:
> 
> This is 4.5 trying to create a FAT partition
> on an external (USB) 80G disk.
> 
<snip>
> 
> Also, why does disklabel say '16 partitions'?
> 
>       Thanks
> 
>               Jan

fdisk plays with DOS (windows) partitions. There are 4 of them.
disklabel plays with OpenBSD partitions. There are 16 of them.

This is from a Lenovo T43 booted from 2G USB drive.
Fdisk partition 0 (DOS fdisk will call it partition 1) Dos partition
This is the same disk as disklable partition i (sd0i)
There is also fdisk partition 3 (DOS fdisk would call it partition 4)
OpenBSD partition.
The OpenBSD space is sd0a and sd0b
The c partition refers to the entire disk regardless of who does or does not
own any part of it.

# fdisk sd0
Disk: sd0       geometry: 3949/16/63 [3981312 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
----------------------------------------------------------------------------
---
 0: 0B      0   1   1 -   1928   6  63 [          63:     1943802 ] Win95
FAT-32
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
*3: A6   1928   7   1 -   3936   8  63 [     1943865:     2024190 ] OpenBSD
# disklabel sd0
# /dev/rsd0c:
...
16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:          1992675          1943865  4.2BSD   2048 16384    1 # /
  b:            31515          3936540    swap
  c:          3981312                0  unused
  i:          1943802               63   MSDOS

(This is after several rounds of messing around including completely zeroing
the drive,
so the disk "geometry" may be the worst possible. So far it seems to work,
kinda slow)

Reply via email to