Chapter 26. An Introduction to Disk Partitions
272
/dev/
This is the name of the directory in which all device files reside. Since partitions reside on hard
disks, and hard disks are devices, the files representing all possible partitions reside in
/dev/
.
xx
The first two letters of the partition name indicate the type of device on which the partition resides,
usually either
hd
(for IDE disks) or
sd
(for SCSI disks).
y
This letter indicates which device the partition is on. For example,
/dev/hda
(the first IDE hard
disk) or
/dev/sdb
(the second SCSI disk).
N
The final number denotes the partition. The first four (primary or extended) partitions are
numbered
1
through
4
. Logical partitions start at
5
. So, for example,
/dev/hda3
is the third
primary or extended partition on the first IDE hard disk, and
/dev/sdb6
is the second logical
partition on the second SCSI hard disk.
Note
There is no part of this naming convention that is based on partition type; unlike DOS/
Windows,
all
partitions can be identified under Red Hat Enterprise Linux. Of course,
this does not mean that Red Hat Enterprise Linux can access data on every type of
partition, but in many cases it is possible to access data on a partition dedicated to
another operating system.
Keep this information in mind; it makes things easier to understand when you are setting up the
partitions Red Hat Enterprise Linux requires.
26.1.6. Disk Partitions and Other Operating Systems
If your Red Hat Enterprise Linux partitions are sharing a hard disk with partitions used by other
operating systems, most of the time you will have no problems. However, there are certain
combinations of Linux and other operating systems that require extra care.
26.1.7. Disk Partitions and Mount Points
One area that many people new to Linux find confusing is the matter of how partitions are used and
accessed by the Linux operating system. In DOS/Windows, it is relatively simple: Each partition gets a
"drive letter." You then use the correct drive letter to refer to files and directories on its corresponding
partition.
This is entirely different from how Linux deals with partitions and, for that matter, with disk storage
in general. The main difference is that each partition is used to form part of the storage necessary
to support a single set of files and directories. This is done by associating a partition with a directory
through a process known as
mounting
. Mounting a partition makes its storage available starting at the
specified directory (known as a
mount point
).
For example, if partition
/dev/hda5
is mounted on
/usr/
, that would mean that all files and
directories under
/usr/
physically reside on
/dev/hda5
. So the file
/usr/share/doc/FAQ/txt/
Linux-FAQ
would be stored on
/dev/hda5
, while the file
/etc/gdm/custom.conf
would not.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 12: ...xii ...
Страница 20: ......
Страница 30: ...12 ...
Страница 32: ...14 ...
Страница 82: ...64 ...
Страница 106: ...88 ...
Страница 122: ...104 ...
Страница 124: ...106 ...
Страница 126: ......
Страница 132: ...114 ...
Страница 168: ...150 ...
Страница 182: ...164 ...
Страница 192: ...174 ...
Страница 194: ......
Страница 236: ...218 ...
Страница 238: ...220 ...
Страница 270: ......
Страница 274: ...256 ...
Страница 278: ...260 ...
Страница 292: ...274 ...
Страница 294: ......
Страница 300: ...282 ...
Страница 304: ......
Страница 316: ...298 ...
Страница 357: ...Creating Partitions 339 Figure 32 7 Creating a Software RAID Device 4 Click OK to add the device to the list ...
Страница 370: ...352 ...
Страница 384: ...366 ...
Страница 385: ...Part VII Appendix ...
Страница 386: ......