scsi_partsize(9)

scsi_partsize9

Parse cylinders/heads/sectors from pc partition table

Usage

int scsi_partsize(unsigned char * buf, unsigned long capacity, unsigned int * cyls, unsigned int * hds, unsigned int * secs);

Arguments

buf

partition table, see scsi_bios_ptable

capacity

size of the disk in sectors

cyls

put cylinders here

hds

put heads here

secs

put sectors here

Overview

determine the BIOS mapping/geometry used to create the partition table, storing the results in *cyls, *hds, and *secs

Return

-1 on failure, 0 on success.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.