SGILABEL(1M) — Silicon Graphics
NAME
sgilabel − print or update the SGI disk drive label
SYNOPSIS
sgilabel disk ...
sgilabel [ −b bootfs ] [ −n name ] [ −p fs:base,size ]
[ −r rootfs ] [ −s serial ] [ −S swapfs ] disk
DESCRIPTION
sgilabel has two uses: it either updates the disk label on one drive or prints zero or more disk labels or partition sizes. A disk may be given as a file system device pathname (e.g., /dev/md0a ), a pathname suffix ( md0a ), or a disk drive name ( md0 ).
If disk denotes a drive (e.g., md0 , ip1 ), sgilabel will print out the whole drive label. This information includes the drive name, serial number, type of drive and controller, size (cylinders/heads/sectors), and the sizes of each file system on the drive.
If disk denotes a file system (e.g., md0a , /dev/ip1d ), sgilabel will print out the size of the file system partition and the size of a cylinder (both in 512 byte blocks).
If −n name is given, the drive name in the label is set to name. Using the −p option, a partition (file system) may be created on a disk. The partition parameters are:
fs a file system specification either of the form a through h or 0 through 7 ; the letters correspond to the final character in file system device names, while the numbers correspond to minor devices
base the partition base in sectors
size the partition length in sectors
More than one −p option may be given. If −r rootfs is given, the disk label root file system field is set to rootfs; rootfs is specified as with the −p option. Likewise, −b and −S may be used to set the disk label boot and swap file system fields, respectively. If −s serial is given, the drive serial number in the label is set to serial.
FILES
/dev/md*hThe h partition accesses the label
/dev/ip*hThe h partition accesses the label
Version 2.5r1 — October 29, 1986