Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node72.html
2024-02-19 00:23:35 -05:00

85 lines
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>2.3.2 Drives and partitions under Linux</TITLE>
</HEAD>
<BODY>
<meta name="description" value="2.3.2 Drives and partitions under Linux">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html2616 HREF="node73.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2614 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2608 HREF="node71.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2618 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2619 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html2617 HREF="node73.html">2.3.3 Creating Linux partitions</A>
<B>Up:</B> <A NAME=tex2html2615 HREF="node70.html">2.3 Installing the Linux </A>
<B> Previous:</B> <A NAME=tex2html2609 HREF="node71.html">2.3.1 Booting Linux</A>
<BR> <HR> <P>
<H2><A NAME=SECTION00432000000000000000>2.3.2 Drives and partitions under Linux</A></H2>
<P>
<A NAME=secinstalllinuxpartition>&#160;</A>
<P>
<A NAME=1172>&#160;</A>
<P>
Many distributions require you to create Linux partitions by hand using
the <tt>fdisk</tt> program. Others may automatically create partitions for
you. Either way, you should know the following information about
Linux partitions and device names.
<P>
Drives and partitions under Linux are given different names than their
counterparts under other operating systems. Under MS-DOS, floppy drives are
referred to as
<tt>A:</tt> and <tt>B:</tt>, while hard drive partitions are named <tt>C:</tt>,
<tt>D:</tt>, and so on. Under Linux, the naming convention is quite
different.
<P>
<b>Device drivers</b>, found in the directory <tt>/dev</tt>, are used to
communicate with devices on your system (such as hard drives, mice, and so on).
For example, if you have a mouse on your system, you access it through the
driver <tt>/dev/mouse</tt>. Floppy drives, hard drives, and individual partitions
are all given individual device drivers of their own. Don't worry about
the device driver interface for now; it is important only to understand how
the various devices are named in order to use them.
<P>
Table <A HREF="node72.html#tablepartnames">2.1</A> lists the names of these various device drivers.
<P><A NAME=1204>&#160;</A><A NAME=tablepartnames>&#160;</A><IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img53.gif">
<BR><STRONG>Table 2.1:</STRONG> Linux partition names<BR>
<P>
<P>
A few notes about this table. Note that <tt>/dev/fd0</tt> corresponds to the
first floppy drive (<tt>A:</tt> under MS-DOS) and <tt>/dev/fd1</tt> corresponds to
the second floppy (<tt>B:</tt>).
<P>
Also, SCSI hard drives are named differently than other drives. IDE, MFM,
and RLL drives are accessed through the devices <tt>/dev/hda</tt>,
<tt>/dev/hdb</tt>, and
so on. The individual partitions on the drive <tt>/dev/hda</tt> are
<tt>/dev/hda1</tt>, <tt>/dev/hda2</tt>, and so on. However, SCSI drives are named
<tt>/dev/sda</tt>, <tt>/dev/sdb</tt>, etc., with partition names such as
<tt>/dev/sda1</tt> and <tt>/dev/sda2</tt>.
<P>
Here's an example. Let's say that you have a single IDE hard drive,
with 3 primary partitions. The first two are set aside for MS-DOS, and the
third is an extended partition which contains two logical partitions, both
for use by Linux. The devices referring to these
partitions would be:
<P>
<P><IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img54.gif"><P><P>
<P>
Note that <tt>/dev/hda4</tt> is skipped; it corresponds to the fourth
primary partition, which we don't have in this example.
Logical partitions are named consecutively starting with <tt>/dev/hda5</tt>.
<P>
<A NAME=1233>&#160;</A>
<P>
<BR> <HR><A NAME=tex2html2616 HREF="node73.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2614 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2608 HREF="node71.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2618 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2619 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html2617 HREF="node73.html">2.3.3 Creating Linux partitions</A>
<B>Up:</B> <A NAME=tex2html2615 HREF="node70.html">2.3 Installing the Linux </A>
<B> Previous:</B> <A NAME=tex2html2609 HREF="node71.html">2.3.1 Booting Linux</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>