Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ diskst(8) — Duplix 5.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DISKST(8)  —  Unix Programmer’s Manual

NAME

diskst − determine and print disk geometry

SYNOPSIS

diskst [ option ] diskname

DESCRIPTION

diskst uses ioctls to determine the geometry of the specified disk.  When invoked in the C-shell, diskst prints the disk geometry on the standard output. 

diskname is a disk name, such as sm0. 

OPTIONS

-nc Prints the number of cylinders for the specified disk. 

-ns Prints the number of sectors per track for the specified disk. 

-nt Prints the number of tracks (heads) per cylinder for the specified disk. 

-o[a-h] Prints the cylinder offset of the specified partition. 

-p[a-h] Prints the size in blocks of the specified partition. 

-q Returns exit status of 0 if specified disk device is present.  This quiet flag is very useful for checking for a disk from within a shell script. 

-t Prints terse output (nt=15 instead of ntracks=15). 

EXAMPLES

diskst sm0
ntracks    =24
nsectors   =48
ncylinders =710
partition a: size=15884, offset=0
partition b: size=66880, offset=14
partition c: size=817920, offset=0
partition d: size=15884, offset=326
partition e: size=307200, offset=340
partition f: size=118464, offset=607
partition g: size=442176, offset=326
partition h: size=291346, offset=73
 if(diskst -q sd0) echo SDO not online

4th Berkeley Distribution  —  20 December 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026