~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to ca/partitioning/device-names.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 28997 untranslated -->
 
3
 
 
4
 
 
5
 <sect1 id="device-names">
 
6
 <title>Device Names in Linux</title>
 
7
<para>
 
8
 
 
9
Linux disks and partition names may be different from other operating
 
10
systems.  You need to know the names that Linux uses when you create
 
11
and mount partitions. Here's the basic naming scheme:
 
12
 
 
13
</para>
 
14
<itemizedlist arch="not-s390">
 
15
<listitem><para>
 
16
 
 
17
The first floppy drive is named <filename>/dev/fd0</filename>.
 
18
 
 
19
</para></listitem>
 
20
<listitem><para>
 
21
 
 
22
The second floppy drive is named <filename>/dev/fd1</filename>.
 
23
 
 
24
</para></listitem>
 
25
<listitem><para>
 
26
 
 
27
The first SCSI disk (SCSI ID address-wise) is named
 
28
<filename>/dev/sda</filename>.
 
29
 
 
30
</para></listitem>
 
31
<listitem><para>
 
32
 
 
33
The second SCSI disk (address-wise) is named
 
34
<filename>/dev/sdb</filename>, and so on.
 
35
 
 
36
</para></listitem>
 
37
<listitem><para>
 
38
 
 
39
The first SCSI CD-ROM is named <filename>/dev/scd0</filename>, also
 
40
known as <filename>/dev/sr0</filename>.
 
41
 
 
42
</para></listitem>
 
43
<listitem><para>
 
44
 
 
45
The master disk on IDE primary controller is named
 
46
<filename>/dev/hda</filename>.
 
47
 
 
48
</para></listitem>
 
49
<listitem><para>
 
50
 
 
51
The slave disk on IDE primary controller is named
 
52
<filename>/dev/hdb</filename>.
 
53
 
 
54
</para></listitem>
 
55
<listitem><para>
 
56
 
 
57
The master and slave disks of the secondary controller can be called
 
58
<filename>/dev/hdc</filename> and <filename>/dev/hdd</filename>,
 
59
respectively.  Newer IDE controllers can actually have two channels,
 
60
effectively acting like two controllers.
 
61
 
 
62
<phrase arch="m68k">
 
63
The letters may differ from what shows in the mac program pdisk
 
64
(i.e. what shows up as <filename>/dev/hdc</filename> on pdisk may show
 
65
up as <filename>/dev/hda</filename> in Debian).
 
66
</phrase>
 
67
 
 
68
</para></listitem>
 
69
 
 
70
<listitem arch="i386"><para>
 
71
 
 
72
The first XT disk is named <filename>/dev/xda</filename>.
 
73
 
 
74
</para></listitem>
 
75
<listitem arch="i386"><para>
 
76
 
 
77
The second XT disk is named <filename>/dev/xdb</filename>.
 
78
 
 
79
</para></listitem>
 
80
<listitem arch="m68k"><para>
 
81
 
 
82
The first ACSI device is named <filename>/dev/ada</filename>, the
 
83
second is named <filename>/dev/adb</filename>.
 
84
 
 
85
</para></listitem>
 
86
</itemizedlist>
 
87
 
 
88
<itemizedlist arch="s390">
 
89
<listitem><para>
 
90
 
 
91
The first DASD device is named
 
92
<filename>/dev/dasda</filename>.
 
93
 
 
94
</para></listitem>
 
95
<listitem><para>
 
96
 
 
97
The second DASD device is named
 
98
<filename>/dev/dasdb</filename>, and so on.
 
99
 
 
100
</para></listitem>
 
101
</itemizedlist>
 
102
 
 
103
<para arch="not-s390">
 
104
 
 
105
The partitions on each disk are represented by appending a decimal
 
106
number to the disk name: <filename>sda1</filename> and
 
107
<filename>sda2</filename> represent the first and
 
108
second partitions of the first SCSI disk drive in your system.
 
109
 
 
110
</para><para arch="not-s390">
 
111
 
 
112
Here is a real-life example.  Let's assume you have a system with 2
 
113
SCSI disks, one at SCSI address 2 and the other at SCSI address 4.
 
114
The first disk (at address 2) is then named <filename>sda</filename>,
 
115
and the second <filename>sdb</filename>.  If the
 
116
<filename>sda</filename> drive has 3 partitions on it, these will be
 
117
named <filename>sda1</filename>, <filename>sda2</filename>, and
 
118
<filename>sda3</filename>.  The same applies to the
 
119
<filename>sdb</filename> disk and its partitions.
 
120
 
 
121
</para><para arch="not-s390">
 
122
 
 
123
Note that if you have two SCSI host bus adapters (i.e., controllers),
 
124
the order of the drives can get confusing.  The best solution in this
 
125
case is to watch the boot messages, assuming you know the drive models
 
126
and/or capacities.
 
127
 
 
128
</para><para arch="i386">
 
129
 
 
130
Linux represents the primary partitions as the drive name, plus the
 
131
numbers 1 through 4.  For example, the first primary partition on the
 
132
first IDE drive is <filename>/dev/hda1</filename>.  The logical partitions are
 
133
numbered starting at 5, so the first logical partition on that same
 
134
drive is <filename>/dev/hda5</filename>.  Remember that the extended
 
135
partition, that is, the primary partition holding the logical
 
136
partitions, is not usable by itself.  This applies to SCSI disks as
 
137
well as IDE disks.
 
138
 
 
139
</para><para arch="m68k">
 
140
 
 
141
VMEbus systems using the TEAC FC-1 SCSI floppy drive will see it as normal
 
142
SCSI disk. To make identification of the drive simpler the installation
 
143
software will create a symbolic link to the appropriate device and name
 
144
it <filename>/dev/sfd0</filename>.
 
145
 
 
146
</para><para arch="sparc">
 
147
 
 
148
Sun disk partitions allow for 8 separate partitions (or slices). The
 
149
third partition is usually (and is preferred to have) the <quote>Whole
 
150
Disk</quote> partition. This partition references all of the sectors of the
 
151
disk, and is used by the boot loader (either SILO, or Sun's).
 
152
 
 
153
</para><para arch="s390">
 
154
 
 
155
The partitions on each disk are represented by appending a decimal
 
156
number to the disk name: <filename>dasda1</filename> and
 
157
<filename>dasda2</filename> represent the first and
 
158
second partitions of the first DASD device in your system.
 
159
 
 
160
</para>
 
161
 </sect1>