2 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
26 .TH SD 4 2017-09-15 "Linux" "Linux Programmer's Manual"
28 sd \- driver for SCSI disk drives
31 .BR "#include <linux/hdreg.h> " "/* for HDIO_GETGEO */"
32 .BR "#include <linux/fs.h> " "/* for BLKGETSIZE and BLKRRPART */"
35 The block device name has the following form:
39 is a letter denoting the physical drive, and
41 is a number denoting the partition on that physical drive.
42 Often, the partition number,
44 will be left off when the device corresponds to the whole drive.
46 SCSI disks have a major device number of 8, and a minor device number of
48 .IR drive_number ") + " partition_number ,
51 is the number of the physical drive in order of detection, and
55 partition 0 is the whole drive
57 partitions 1\(en4 are the DOS "primary" partitions
59 partitions 5\(en8 are the DOS "extended" (or "logical") partitions
63 will have major 8, minor 0, and will refer to all of the first SCSI drive
66 will have major 8, minor 19, and will refer to the third DOS "primary"
67 partition on the second SCSI drive in the system.
69 At this time, only block devices are provided.
70 Raw devices have not yet been implemented.
77 Returns the BIOS disk parameters in the following structure:
83 unsigned char sectors;
84 unsigned short cylinders;
90 A pointer to this structure is passed as the
94 The information returned in the parameter is the disk geometry of the drive
95 .I "as understood by DOS!"
98 the physical geometry of the drive.
99 It is used when constructing the
100 drive's partition table, however, and is needed for convenient operation
106 If the geometry information is not available, zero will be returned for all
110 Returns the device size in sectors.
113 parameter should be a pointer to a
117 Forces a reread of the SCSI disk partition tables.
118 No parameter is needed.
122 operations are also supported.
125 parameter is required, and it is NULL, then
134 .I /dev/sd[a\-h][0\-8]
135 individual block partitions