.\" Copyright (c) 1993 Michael Haardt (michael@moria.de), Fri Apr 2 11:32:09 MET DST 1993 .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .\" Modified Sat Jul 24 16:56:20 1993 by Rik Faith .\" Modified Mon Oct 21 21:38:51 1996 by Eric S. Raymond .\" (and some more by aeb) .\" .TH HD 4 1992-12-17 "Linux" "Linux Programmer's Manual" .SH NAME hd \- MFM/IDE 硬盤設備 .SH "描述 DESCRIPTION" \fBhd*\fP 開頭的設備是以裸模式(raw mode)訪問MFM/IDE類型硬盤的塊 設備. 第一個IDE驅動控制器上的主盤(主設備號3)是 \fBhda\fR ;從盤是 \fBhdb\fR. 第二個IDE驅動器控制器(主設備號22)是 \fBhdc\fR ,從爲 \fBhdd\fR. .LP 大多數IDE 塊設備以 .BI hd X\c , 或者 .BI hd XP\c 的形式命名, 其中字母 .I X 代表任意字母以表示各個物理設備.其中P表示各個物理設備中分區的代號. .I P 表示各個物理設備中分區的代號。第一種形式 .BI hd X, 代表整個驅動器的地址,而分區號是按照每個分區 被發現的順序分配的,並且只有非空和非擴展分區纔能有這個號碼 然而不管這個分區是未使用過的還是擴展的,在MBR中只紀錄四個分區 號碼依次爲1-4. 因此邏輯分區只能從 .BI hd X 5\c 開始。支持DOS 風格的分區以及BSD-磁盤卷標分區。 你最多可以在一個IDE磁盤上建立63個分區. .LP 例如, .B /dev/hda 代表第一個IDE驅動器的全部; .B /dev/hdb3 代表第二塊IDE硬盤上的第三DOS 主分區. .LP 典型如下建立: .RS .sp mknod -m 660 /dev/hda b 3 0 .br mknod -m 660 /dev/hda1 b 3 1 .br mknod -m 660 /dev/hda2 b 3 2 .br \&... .br mknod -m 660 /dev/hda8 b 3 8 .br mknod -m 660 /dev/hdb b 3 64 .br mknod -m 660 /dev/hdb1 b 3 65 .br mknod -m 660 /dev/hdb2 b 3 66 .br \&... .br mknod -m 660 /dev/hdb8 b 3 72 .br chown root:disk /dev/hd* .RE .SH "文件 FILES" /dev/hd* .SH "參見 SEE ALSO" .BR mknod (1), .BR chown (1), .BR mount (8), .BR sd (4) .SH "[中文版維護人]" .B trcbilg .SH "[中文版最新更新]" .B 2000.11.22 .SH "《中國linux論壇man手冊翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR