---
name: "scsi_partsize"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_partsize"
---

# scsi\_partsize(9)

Parse cylinders/heads/sectors from PC partition table

## NAME

scsi\_partsize - Parse cylinders/heads/sectors from PC partition table

## SYNOPSIS

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

## DESCRIPTION

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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
