.\" 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