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 .\"*******************************************************************
28 .\" This file was generated with po4a. Translate the source file.
30 .\"*******************************************************************
32 .\" Japanese Version Copyright (c) 1996,1997 ISHIKAWA Mutsumi
33 .\" all rights reserved.
34 .\" Translated 1997-02-06, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
35 .\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
37 .TH SD 4 2012\-05\-03 Linux "Linux Programmer's Manual"
39 sd \- SCSI ディスクドライブのためのドライバ
42 \fB#include <linux/hdreg.h> \fP/* for HDIO_GETGEO */
43 \fB#include <linux/fs.h> \fP/* for BLKGETSIZE and BLKRRPART */
46 このブロックデバイス (block device) の名前は、次のような形式をとる: \fBsd\fP\fIlp,\fP このうち、 \fIl\fP
47 は物理ドライブを意味する文字であり、 \fIp\fP はその物理ドライブ上のパーティション (partition) を意味する数字である。
48 パーティションナンバー \fIp\fP がない場合は、そのデバイスファイルはドライブ全体をさす。
50 SCSI ディスクはメジャーナンバー 8 を持ち、次のような形式のマイナーナンバー を持つ。(16 * \fIdrive_number\fP) +
51 \fIpartition_number\fP、 この \fIdrive_number\fP は検出された物理ドライブの番号であり、
52 \fIpartition_number\fP は次のようになる:
56 パーティション 1 〜 4 は DOS の "基本 (primary)" パーティション
58 パーティション 5 〜 8 は DOS の "拡張 (extended)" (または、"論理 (logical)") パーティション。
60 例えば、 \fI/dev/sda\fP はメジャーナンバー 8 マイナーナンバー 0 を持ち、システムの最初の SCSI ドライブ全体を参照する。そして、
61 \fI/dev/sdb3\fP はメジャーナンバー 8 マイナーナンバー 19 を持ち、システムの二つ目の SCSI ドライブの三番目の DOS "基本"
64 現在は、ブロックデバイスだけが提供されている。ロー・デバイス (raw device) はまだ実装されていない。
66 次の \fIioctl\fP が提供されている:
70 次のような構造体を用いて BIOS のディスクパラメータを返す:
76 unsigned char sectors;
77 unsigned short cylinders;
83 この構造体へのポインタが \fBioctl\fP(2) へのパラメータとして渡される。
85 このパラメータに入れられて返される情報は、 \fIDOS によって理解されるような\fP ドライブのジオメトリである。
86 このジオメトリは、ドライブの物理的なジオメトリ \fIではない。\fP この情報はドライブのパーティションテーブルを作成する時に用いられる、 また、
87 \fBfdisk\fP(1), \fBefdisk\fP(1), \fBlilo\fP(1) の適切な操作に必要である。
88 もし、ジオメトリの情報が得られなければ、それぞれの値全てにゼロが入れ られて返される。
92 セクタの数で表したデバイスのサイズが返される。 \fBioctl\fP(2) のパラメータは、 \fIlong\fP へのポインタでなければならない。
95 強制的に、SCSI ディスクのパーティションテーブルの再読み込みを行う。 パラメータは必要ない。
97 SCSI の \fBioctl\fP(2) 操作も同様にサポートされる。 \fBioctl\fP(2) の
98 パラメータが必要で、そのパラメータが NULL の場合は、
99 \fBioctl\fP(2) はエラー \fBEINVAL\fP で失敗する。
101 /dev/sd[a\-h]: ドライブ全体
105 /dev/sd[a\-h][0\-8]: 個々のブロックパーティション
107 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
108 である。プロジェクトの説明とバグ報告に関する情報は
109 http://www.kernel.org/doc/man\-pages/ に書かれている。