2 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH sd 4 (date) "Linux man-pages (unreleased)"
8 sd \- driver for SCSI disk drives
11 .BR "#include <linux/hdreg.h> " "/* for HDIO_GETGEO */"
12 .BR "#include <linux/fs.h> " "/* for BLKGETSIZE and BLKRRPART */"
15 The block device name has the following form:
19 is a letter denoting the physical drive, and
21 is a number denoting the partition on that physical drive.
22 Often, the partition number,
24 will be left off when the device corresponds to the whole drive.
26 SCSI disks have a major device number of 8, and a minor device number of
28 .IR drive_number ") + " partition_number ,
31 is the number of the physical drive in order of detection, and
35 partition 0 is the whole drive
37 partitions 1\[en]4 are the DOS "primary" partitions
39 partitions 5\[en]8 are the DOS "extended" (or "logical") partitions
43 will have major 8, minor 0, and will refer to all of the first SCSI drive
46 will have major 8, minor 19, and will refer to the third DOS "primary"
47 partition on the second SCSI drive in the system.
49 At this time, only block devices are provided.
50 Raw devices have not yet been implemented.
57 Returns the BIOS disk parameters in the following structure:
63 unsigned char sectors;
64 unsigned short cylinders;
70 A pointer to this structure is passed as the
74 The information returned in the parameter is the disk geometry of the drive
75 .I "as understood by DOS!"
78 the physical geometry of the drive.
79 It is used when constructing the
80 drive's partition table, however, and is needed for convenient operation
86 If the geometry information is not available, zero will be returned for all
90 Returns the device size in sectors.
93 parameter should be a pointer to a
97 Forces a reread of the SCSI disk partition tables.
98 No parameter is needed.
102 operations are also supported.
105 parameter is required, and it is NULL, then
114 .I /dev/sd[a\-h][0\-8]
115 individual block partitions