On Sep 11 12:48:40, MERIGHI Marcus wrote:
> Hello, 
> 
> I did a complete deletion of all partitions of an external usb hd by
> means of diskmgmt.msc under windows, followed by partitioning and
> formating to msdos fat32 with kind help of acronis true image since
> windows xp does not do such things natively. 
> 
> Very unexpectedly (to me) under OpenBSD the fdisk output (see below)
> reflects the new layout, but disklabel output (see below) shows the old
> partition size.

What "old size"?

You repartitioned the disk under windows.
So now it has no real BSD label. What does
disklabel do with such disks? The sensible thing:

        Note that when a disk has no real BSD disklabel, the kernel creates
        a default label so that the disk can be used.  This default label will
        include other partitions found on the disk if they are supported on
        your architecture.  For example, on systems that support fdisk(8)
        partitions the default label will also include DOS and Linux
        partitions.

And that's exactly what happened:

> Disk: sd1     geometry: 91201/255/63 [1465149168 Sectors]
> Offset: 0     Signature: 0xAA55
>             Starting         Ending         LBA Info:
>  #: id      C   H   S -      C   H   S [       start:        size ]
> -------------------------------------------------------------------------------
> *0: 0C      0  32  33 -  91201  52  51 [        2048:  1465145344 ] Win95 
> FAT32L
>  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
disklabel recognized the fdisk DOS partition
and created a default disklabel for that:

> # /dev/rsd1c:
> type: SCSI
> disk: SCSI disk
> label: holmer-medien-01
> duid: 94f3e0ef639263f9
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 91201
> total sectors: 1465149168
> boundstart: 0
> boundend: 1465149168
> drivedata: 0 
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   c:       1465149168                0  unused                   
>   i:       1048576000             2048   MSDOS                   # 

Reply via email to