~psusi/ubuntu/precise/installation-guide/partitions

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-06-25 10:28:30 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100625102830-nvfcrroep8mvhkeo
Tags: 20100518ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Build only English (for now, until we figure out how to avoid trashing
    translations quite so badly with Ubuntu branding etc.).
  - Build only Ubuntu architectures (amd64, armel, i386, ia64, powerpc,
    sparc).
  - Extensive (although possibly incomplete) Ubuntu branding, adjustments
    for our mirror layout, etc.
  - Add "Ubuntu and Debian" and "What is Ubuntu?" section, text borrowed
    from the Ubuntu web site. Disable the "What is Debian GNU/Linux?"
    section.
  - Direct installation reports to ubuntu-users for now.
  - Adjust various memory and disk space requirements. Talk about the
    default Ubuntu desktop and Ubuntu tasks rather than Debian tasks.
  - Document mounting /sys in various places.
  - Unset supports-floppy-boot for all our architectures.
  - Add a few more supports-floppy-boot and bootable-usb conditionals.
  - Document our root password and sudo arrangements.
  - Document netboot-style USB images. Still mention the hd-media images,
    but they're downplayed since many USB sticks are too small for a full
    Ubuntu ISO image.
  - Document Kickstart installations (currently only the basics, a
    reference to Red Hat's documentation, and the differences from
    Anaconda).
  - Update keyboard preseeding documentation for console-setup.
  - Update chroot-install guide for console-setup and language packs; add
    a bit more advice about installing grub.
  - Disable documentation of win32-loader.
  - Document new simplified partman preseeding.
  - Document mirror/udeb/components.
  - Document apt-setup/security_path.
  - Don't recommend passing http://archive.ubuntu.com/ubuntu to
    debootstrap.
  - Document pkgsel/update-policy.
  - Document preseeding user-setup's home directory encryption facility.
  - Improve examples of tasksel/first preseeding to avoid mentioning
    standard, which is installed by default.
  - Document partman-auto-lvm/guided_size.
  - Document scheme for preseeding the use of CC.archive.ubuntu.com
    mirrors.
  - Document pkgsel/updatedb.
  - Document partman/default_filesystem.
  - Document how to override the weak password check.
  - Remove comments about automatic installation methods that have been
    removed from Ubuntu.
  - Remove documentation of
    base-installer/kernel/linux/initramfs-generators; setting this to
    anything other than the default will cause the installer to fail.
* Adjust list of armel architectures for Ubuntu.
* Bump kernelversion to 2.6.35.
* Bump release version and names for Maverick.
* Update Canonical's copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- retain these comments for translator revision tracking -->
2
 
<!-- original version: 18767 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="x86"><para>
71
 
 
72
 
The first XT disk is named <filename>/dev/xda</filename>.
73
 
 
74
 
</para></listitem>
75
 
<listitem arch="x86"><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="x86">
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 ``Whole Disk''
150
 
partition. This partition references all of the sectors of the disk, and
151
 
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>